Uses of Class
java.awt.Point
Packages that use Point
Package
Description
Provides a collection of interfaces and classes that compose the Java Accessibility
Utilities.
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Drag and Drop is a direct manipulation gesture found in many Graphical User
Interface systems that provides a mechanism to transfer information between
two entities logically associated with presentation elements in the GUI.
Provides interfaces and classes for dealing with different types of events
fired by AWT components.
Provides classes for creating and modifying images.
Defines a contract between user-interface components and an assistive
technology that provides access to those components.
The main package of the Java Image I/O API.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
Provides user interface objects that combine two or more look and feels.
Provides classes and interfaces for dealing with
javax.swing.JTable.Provides classes and interfaces that deal with editable and noneditable text
components.
-
Uses of Point in com.sun.java.accessibility.util
Methods in com.sun.java.accessibility.util that return PointModifier and TypeMethodDescriptionstatic PointEventQueueMonitor.getCurrentMousePosition()Return the last recorded position of the mouse in screen coordinates.Translator.getLocation()Returns the location of the object relative to parent.Translator.getLocationOnScreen()Returns the location of the object on the screen.Methods in com.sun.java.accessibility.util with parameters of type PointModifier and TypeMethodDescriptionbooleanChecks whether the specifiedPointis within this object's bounds, where thePointis relative to the coordinate system of the object.static AccessibleEventQueueMonitor.getAccessibleAt(Point p) Obtain theAccessibleobject at the given point on the Screen.Translator.getAccessibleAt(Point p) Returns the accessible child contained at the local coordinate Point, if one exists.voidTranslator.setLocation(Point p) Sets the location of the object relative to parent. -
Uses of Point in java.awt
Modifier and TypeMethodDescriptionGraphicsEnvironment.getCenterPoint()Returns the Point where Windows should be centered.GridBagLayout.getLayoutOrigin()Determines the origin of the layout area, in the graphics coordinate space of the target container.Component.AccessibleAWTComponent.getLocation()Gets the location of the object relative to the parent in the form of a point specifying the object's top-left corner in the screen's coordinate space.Component.getLocation()Gets the location of this component in the form of a point specifying the component's top-left corner.Component.getLocation(Point rv) Stores the x,y origin of this component into "return value" rv and return rv.List.AccessibleAWTList.AccessibleAWTListChild.getLocation()Gets the location of the object relative to the parent in the form of a point specifying the object's top-left corner in the screen's coordinate space.MenuComponent.AccessibleAWTMenuComponent.getLocation()Gets the location of the object relative to the parent in the form of a point specifying the object's top-left corner in the screen's coordinate space.Point.getLocation()Returns the location of this point.PointerInfo.getLocation()Returns thePointthat represents the coordinates of the pointer on the screen.Rectangle.getLocation()Returns the location of thisRectangle.Component.AccessibleAWTComponent.getLocationOnScreen()Returns the location of the object on the screen.Component.getLocationOnScreen()Gets the location of this component in the form of a point specifying the component's top-left corner in the screen's coordinate space.List.AccessibleAWTList.AccessibleAWTListChild.getLocationOnScreen()Returns the location of the object on the screen.MenuComponent.AccessibleAWTMenuComponent.getLocationOnScreen()Returns the location of the object on the screen.Component.getMousePosition()Returns the position of the mouse pointer in thisComponent's coordinate space if theComponentis directly under the mouse pointer, otherwise returnsnull.Container.getMousePosition(boolean allowChildren) Returns the position of the mouse pointer in thisContainer's coordinate space if theContaineris under the mouse pointer, otherwise returnsnull.ScrollPane.getScrollPosition()Returns the current x,y position within the child which is displayed at the 0,0 location of the scrolled panel's view port.Component.location()Deprecated.GridBagLayout.location(int x, int y) Determines which cell in the layout grid contains the point specified by(x, y).Modifier and TypeMethodDescriptionvoidAdds the specifiedPointto the bounds of thisRectangle.booleanChecks whether the specified point is within this object's bounds, where the point's x and y coordinates are defined to be relative to the coordinate system of the object.booleanChecks whether this component "contains" the specified point, where the point's x and y coordinates are defined to be relative to the coordinate system of this component.booleanChecks whether the specified point is within this object's bounds, where the point's x and y coordinates are defined to be relative to the coordinate system of the object.booleanChecks whether the specified point is within this object's bounds, where the point's x and y coordinates are defined to be relative to the coordinate system of the object.booleanDetermines whether the specifiedPointis inside thisPolygon.booleanChecks whether or not thisRectanglecontains the specifiedPoint.Toolkit.createCustomCursor(Image cursor, Point hotSpot, String name) Creates a new custom cursor object.Container.findComponentAt(Point p) Locates the visible child component that contains the specified point.Component.AccessibleAWTComponent.getAccessibleAt(Point p) Returns theAccessiblechild, if one exists, contained at the local coordinatePoint.Container.AccessibleAWTContainer.getAccessibleAt(Point p) Returns theAccessiblechild, if one exists, contained at the local coordinatePoint.List.AccessibleAWTList.AccessibleAWTListChild.getAccessibleAt(Point p) Returns theAccessiblechild, if one exists, contained at the local coordinatePoint.List.AccessibleAWTList.getAccessibleAt(Point p) Returns the Accessible child contained at the local coordinate Point, if one exists.MenuComponent.AccessibleAWTMenuComponent.getAccessibleAt(Point p) Returns theAccessiblechild, if one exists, contained at the local coordinatePoint.Component.getComponentAt(Point p) Returns the component or subcomponent that contains the specified point.Container.getComponentAt(Point p) Gets the component that contains the specified point.intTextComponent.AccessibleAWTTextComponent.getIndexAtPoint(Point p) Given a point in local coordinates, return the zero-based index of the character under that Point.Component.getLocation(Point rv) Stores the x,y origin of this component into "return value" rv and return rv.voidComponent.AccessibleAWTComponent.setLocation(Point p) Sets the location of the object relative to the parent.voidComponent.setLocation(Point p) Moves this component to a new location.voidList.AccessibleAWTList.AccessibleAWTListChild.setLocation(Point p) Sets the location of the object relative to the parent.voidMenuComponent.AccessibleAWTMenuComponent.setLocation(Point p) Sets the location of the object relative to the parent.voidPoint.setLocation(Point p) Sets the location of the point to the specified location.voidRectangle.setLocation(Point p) Moves thisRectangleto the specified location.voidWindow.setLocation(Point p) Moves this component to a new location.voidScrollPane.setScrollPosition(Point p) Scrolls to the specified position within the child component.ModifierConstructorDescriptionConstructs and initializes a point with the same location as the specifiedPointobject.Constructs a newRectanglewhose upper-left corner is the specifiedPoint, and whose width and height are both zero. -
Uses of Point in java.awt.dnd
Methods in java.awt.dnd that return PointModifier and TypeMethodDescriptionDragGestureEvent.getDragOrigin()Returns aPointin the coordinates of theComponentover which the drag originated.DragSourceEvent.getLocation()This method returns aPointindicating the cursor location in screen coordinates at the moment this event occurred, ornullif the cursor location is not specified for this event.DropTargetDragEvent.getLocation()This method returns aPointindicating theCursor's current location within theComponent's coordinates.DropTargetDropEvent.getLocation()This method returns aPointindicating theCursor's current location in theComponent's coordinates.Methods in java.awt.dnd with parameters of type PointModifier and TypeMethodDescriptionvoidAutoscroll.autoscroll(Point cursorLocn) notify theComponentto autoscrollprotected DragSourceContextDragSource.createDragSourceContext(DragGestureEvent dgl, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable t, DragSourceListener dsl) Creates theDragSourceContextto handle the current drag operation.protected DropTarget.DropTargetAutoScrollerDropTarget.createDropTargetAutoScroller(Component c, Point p) create an embedded autoscrollerprotected voidDragGestureRecognizer.fireDragGestureRecognized(int dragAction, Point p) Notify the DragGestureListener that a Drag and Drop initiating gesture has occurred.protected voidDropTarget.initializeAutoscrolling(Point p) initialize autoscrollingvoidDragGestureEvent.startDrag(Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl) Start the drag given the initialCursorto display, a dragImage, the offset of theImage, theTransferableobject, and theDragSourceListenerto use.voidDragSource.startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point dragOffset, Transferable transferable, DragSourceListener dsl) Start a drag, given theDragGestureEventthat initiated the drag, the initialCursorto use, theImageto drag, the offset of theImageorigin from the hotspot of theCursorat the instant of the trigger, the subject data of the drag, and theDragSourceListener.voidDragSource.startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap) Start a drag, given theDragGestureEventthat initiated the drag, the initialCursorto use, theImageto drag, the offset of theImageorigin from the hotspot of theCursorat the instant of the trigger, theTransferablesubject data of the drag, theDragSourceListener, and theFlavorMap.protected voidDropTarget.updateAutoscroll(Point dragCursorLocn) update autoscrolling with current cursor locationprotected voidDropTarget.DropTargetAutoScroller.updateLocation(Point newLocn) cause autoscroll to occurConstructors in java.awt.dnd with parameters of type PointModifierConstructorDescriptionDragGestureEvent(DragGestureRecognizer dgr, int act, Point ori, List<? extends InputEvent> evs) Constructs aDragGestureEventobject given by theDragGestureRecognizerinstance firing this event, anactparameter representing the user's preferred action, anoriparameter indicating the origin of the drag, and aListof events that comprise the gesture(evsparameter).DragSourceContext(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point offset, Transferable t, DragSourceListener dsl) Called fromDragSource, this constructor creates a newDragSourceContextgiven theDragSourceContextPeerfor this Drag, theDragGestureEventthat triggered the Drag, the initialCursorto use for the Drag, an (optional)Imageto display while the Drag is taking place, the offset of theImageorigin from the hotspot at the instant of the triggering event, theTransferablesubject data, and theDragSourceListenerto use during the Drag and Drop operation.protectedconstruct a DropTargetAutoScrollerDropTargetDragEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions) Construct aDropTargetDragEventgiven theDropTargetContextfor this operation, the location of the "Drag"Cursor's hotspot in theComponent's coordinates, the user drop action, and the source drop actions.DropTargetDropEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions) Construct aDropTargetDropEventgiven theDropTargetContextfor this operation, the location of the dragCursor's hotspot in theComponent's coordinates, the currently selected user drop action, and the current set of actions supported by the source.DropTargetDropEvent(DropTargetContext dtc, Point cursorLocn, int dropAction, int srcActions, boolean isLocal) Construct aDropTargetEventgiven theDropTargetContextfor this operation, the location of the dragCursor's hotspot in theComponent's coordinates, the currently selected user drop action, the current set of actions supported by the source, and abooleanindicating if the source is in the same JVM as the target. -
Uses of Point in java.awt.event
Methods in java.awt.event that return PointModifier and TypeMethodDescriptionMouseEvent.getLocationOnScreen()Returns the absolute x, y position of the event.MouseEvent.getPoint()Returns the x,y position of the event relative to the source component. -
Uses of Point in java.awt.image
Methods in java.awt.image that return PointModifier and TypeMethodDescriptionPoint[]BufferedImage.getWritableTileIndices()Returns an array ofPointobjects indicating which tiles are checked out for writing.Point[]WritableRenderedImage.getWritableTileIndices()Returns an array of Point objects indicating which tiles are checked out for writing.Methods in java.awt.image with parameters of type PointModifier and TypeMethodDescriptionstatic WritableRasterRaster.createBandedRaster(int dataType, int w, int h, int scanlineStride, int[] bankIndices, int[] bandOffsets, Point location) Creates a Raster based on a BandedSampleModel with the specified data type, width, height, scanline stride, bank indices and band offsets.static WritableRasterRaster.createBandedRaster(int dataType, int w, int h, int bands, Point location) Creates a Raster based on a BandedSampleModel with the specified data type, width, height, and number of bands.static WritableRasterRaster.createBandedRaster(DataBuffer dataBuffer, int w, int h, int scanlineStride, int[] bankIndices, int[] bandOffsets, Point location) Creates a Raster based on a BandedSampleModel with the specified DataBuffer, width, height, scanline stride, bank indices, and band offsets.static WritableRasterRaster.createInterleavedRaster(int dataType, int w, int h, int scanlineStride, int pixelStride, int[] bandOffsets, Point location) Creates a Raster based on a PixelInterleavedSampleModel with the specified data type, width, height, scanline stride, pixel stride, and band offsets.static WritableRasterRaster.createInterleavedRaster(int dataType, int w, int h, int bands, Point location) Creates a Raster based on a PixelInterleavedSampleModel with the specified data type, width, height, and number of bands.static WritableRasterRaster.createInterleavedRaster(DataBuffer dataBuffer, int w, int h, int scanlineStride, int pixelStride, int[] bandOffsets, Point location) Creates a Raster based on a PixelInterleavedSampleModel with the specified DataBuffer, width, height, scanline stride, pixel stride, and band offsets.static WritableRasterRaster.createPackedRaster(int dataType, int w, int h, int[] bandMasks, Point location) Creates a Raster based on a SinglePixelPackedSampleModel with the specified data type, width, height, and band masks.static WritableRasterRaster.createPackedRaster(int dataType, int w, int h, int bands, int bitsPerBand, Point location) Creates a Raster based on a packed SampleModel with the specified data type, width, height, number of bands, and bits per band.static WritableRasterRaster.createPackedRaster(DataBuffer dataBuffer, int w, int h, int scanlineStride, int[] bandMasks, Point location) Creates a Raster based on a SinglePixelPackedSampleModel with the specified DataBuffer, width, height, scanline stride, and band masks.static WritableRasterRaster.createPackedRaster(DataBuffer dataBuffer, int w, int h, int bitsPerPixel, Point location) Creates a Raster based on a MultiPixelPackedSampleModel with the specified DataBuffer, width, height, and bits per pixel.static RasterRaster.createRaster(SampleModel sm, DataBuffer db, Point location) Creates a Raster with the specified SampleModel and DataBuffer.static WritableRasterRaster.createWritableRaster(SampleModel sm, DataBuffer db, Point location) Creates a WritableRaster with the specified SampleModel and DataBuffer.static WritableRasterRaster.createWritableRaster(SampleModel sm, Point location) Creates a WritableRaster with the specified SampleModel.Constructors in java.awt.image with parameters of type PointModifierConstructorDescriptionprotectedRaster(SampleModel sampleModel, DataBuffer dataBuffer, Point origin) Constructs a Raster with the given SampleModel and DataBuffer.protectedRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, Raster parent) Constructs a Raster with the given SampleModel, DataBuffer, and parent.protectedRaster(SampleModel sampleModel, Point origin) Constructs a Raster with the given SampleModel.protectedWritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Point origin) Constructs a WritableRaster with the given SampleModel and DataBuffer.protectedWritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, WritableRaster parent) Constructs a WritableRaster with the given SampleModel, DataBuffer, and parent.protectedWritableRaster(SampleModel sampleModel, Point origin) Constructs a WritableRaster with the given SampleModel. -
Uses of Point in javax.accessibility
Methods in javax.accessibility that return PointModifier and TypeMethodDescriptionAccessibleComponent.getLocation()Gets the location of the object relative to the parent in the form of a point specifying the object's top-left corner in the screen's coordinate space.AccessibleComponent.getLocationOnScreen()Returns the location of the object on the screen.Methods in javax.accessibility with parameters of type PointModifier and TypeMethodDescriptionbooleanChecks whether the specified point is within this object's bounds, where the point's x and y coordinates are defined to be relative to the coordinate system of the object.AccessibleComponent.getAccessibleAt(Point p) Returns theAccessiblechild, if one exists, contained at the local coordinatePoint.intAccessibleText.getIndexAtPoint(Point p) Given a point in local coordinates, return the zero-based index of the character under that point.voidAccessibleComponent.setLocation(Point p) Sets the location of the object relative to the parent. -
Uses of Point in javax.imageio
Fields in javax.imageio declared as PointModifier and TypeFieldDescriptionprotected PointIIOParam.destinationOffsetThe offset in the destination where the upper-left decoded pixel should be placed.Methods in javax.imageio that return PointModifier and TypeMethodDescriptionIIOParam.getDestinationOffset()Returns the offset in the destination image at which pixels are to be placed.Methods in javax.imageio with parameters of type PointModifier and TypeMethodDescriptionvoidIIOParam.setDestinationOffset(Point destinationOffset) Specifies the offset in the destination image at which future decoded pixels are to be placed, when reading, or where a region will be written, when writing. -
Uses of Point in javax.swing
Fields in javax.swing declared as PointModifier and TypeFieldDescriptionprotected PointJViewport.lastPaintPositionThe lastviewPositionthat we've painted, so we know how much of the backing store image is valid.Methods in javax.swing that return PointModifier and TypeMethodDescriptionstatic PointSwingUtilities.convertPoint(Component source, int x, int y, Component destination) Convert the point(x,y)insourcecoordinate system todestinationcoordinate system.static PointSwingUtilities.convertPoint(Component source, Point aPoint, Component destination) Convert aaPointinsourcecoordinate system todestinationcoordinate system.TransferHandler.getDragImageOffset()Returns an anchor offset for the image to drag.final PointTransferHandler.DropLocation.getDropPoint()Returns the drop point, representing the mouse's current location within the component.JComponent.getLocation(Point rv) Stores the x,y origin of this component into "return value"rvand returnsrv.JList.AccessibleJList.AccessibleJListChild.getLocation()JTable.AccessibleJTable.AccessibleJTableCell.getLocation()Gets the location of the object relative to the parent in the form of a point specifying the object's top-left corner in the screen's coordinate space.JTree.AccessibleJTree.AccessibleJTreeNode.getLocation()protected PointJTree.AccessibleJTree.AccessibleJTreeNode.getLocationInJTree()Returns the relative location of the nodeJList.AccessibleJList.AccessibleJListChild.getLocationOnScreen()JTable.AccessibleJTable.AccessibleJTableCell.getLocationOnScreen()Returns the location of the object on the screen.JTree.AccessibleJTree.AccessibleJTreeNode.getLocationOnScreen()JComponent.getPopupLocation(MouseEvent event) Returns the preferred location to display the popup menu in this component's coordinate system.protected PointJMenu.getPopupMenuOrigin()Computes the origin for theJMenu's popup menu.JComponent.getToolTipLocation(MouseEvent event) Returns the tooltip location in this component's coordinate system.JViewport.getViewPosition()Returns the view coordinates that appear in the upper left hand corner of the viewport, or 0,0 if there's no view.JList.indexToLocation(int index) Returns the origin of the specified item in the list's coordinate system.JViewport.toViewCoordinates(Point p) Converts a point in pixel coordinates to view coordinates.Methods in javax.swing with parameters of type PointModifier and TypeMethodDescriptionintJTable.columnAtPoint(Point point) Returns the index of the column thatpointlies in, or -1 if the result is not in the range [0,getColumnCount()-1].MenuSelectionManager.componentForPoint(Component source, Point sourcePoint) Returns the component in the currently selected path which contains sourcePoint.protected booleanJViewport.computeBlit(int dx, int dy, Point blitFrom, Point blitTo, Dimension blitSize, Rectangle blitPaint) Computes the parameters for a blit where the backing store image currently containsoldLocin the upper left hand corner and we're scrolling tonewLoc.booleanbooleanChecks whether the specified point is within this object's bounds, where the point's x and y coordinates are defined to be relative to the coordinate system of the object.booleanstatic PointSwingUtilities.convertPoint(Component source, Point aPoint, Component destination) Convert aaPointinsourcecoordinate system todestinationcoordinate system.static voidSwingUtilities.convertPointFromScreen(Point p, Component c) Convert a point from a screen coordinates to a component's coordinate systemstatic voidSwingUtilities.convertPointToScreen(Point p, Component c) Convert a point from a component's coordinate system to screen coordinates.JEditorPane.AccessibleJEditorPaneHTML.getAccessibleAt(Point p) Returns the Accessible child, if one exists, contained at the local coordinate Point.JList.AccessibleJList.AccessibleJListChild.getAccessibleAt(Point p) JList.AccessibleJList.getAccessibleAt(Point p) Returns theAccessiblechild contained at the local coordinatePoint, if one exists.JTabbedPane.AccessibleJTabbedPane.getAccessibleAt(Point p) Returns theAccessiblechild contained at the local coordinatePoint, if one exists.JTable.AccessibleJTable.AccessibleJTableCell.getAccessibleAt(Point p) JTable.AccessibleJTable.getAccessibleAt(Point p) Returns theAccessiblechild, if one exists, contained at the local coordinatePoint.JTree.AccessibleJTree.AccessibleJTreeNode.getAccessibleAt(Point p) Returns theAccessiblechild, if one exists, contained at the local coordinatePoint.JTree.AccessibleJTree.getAccessibleAt(Point p) Returns theAccessiblechild, if one exists, contained at the local coordinatePoint.static AccessibleSwingUtilities.getAccessibleAt(Component c, Point p) Returns theAccessiblechild contained at the local coordinatePoint, if one exists.intAbstractButton.AccessibleAbstractButton.getIndexAtPoint(Point p) Given a point in local coordinates, return the zero-based index of the character under that Point.intJLabel.AccessibleJLabel.getIndexAtPoint(Point p) Given a point in local coordinates, return the zero-based index of the character under that Point.intJSpinner.AccessibleJSpinner.getIndexAtPoint(Point p) Given a point in local coordinates, return the zero-based index of the character under that Point.intProgressMonitor.AccessibleProgressMonitor.getIndexAtPoint(Point p) Given a point in local coordinates, return the zero-based index of the character under that Point.JComponent.getLocation(Point rv) Stores the x,y origin of this component into "return value"rvand returnsrv.intJList.locationToIndex(Point location) Returns the cell index closest to the given location in the list's coordinate system.intJTable.rowAtPoint(Point point) Returns the index of the row thatpointlies in, or -1 if the result is not in the range [0,getRowCount()-1].voidTransferHandler.setDragImageOffset(Point p) Sets an anchor offset for the image to drag.voidJList.AccessibleJList.AccessibleJListChild.setLocation(Point p) voidJTable.AccessibleJTable.AccessibleJTableCell.setLocation(Point p) Sets the location of the object relative to the parent.voidJTree.AccessibleJTree.AccessibleJTreeNode.setLocation(Point p) voidJViewport.setViewPosition(Point p) Sets the view coordinates that appear in the upper left hand corner of the viewport, does nothing if there's no view.JViewport.toViewCoordinates(Point p) Converts a point in pixel coordinates to view coordinates.Constructors in javax.swing with parameters of type PointModifierConstructorDescriptionprotectedDropLocation(Point dropPoint) Constructs a drop location for the given point. -
Uses of Point in javax.swing.plaf
Methods in javax.swing.plaf that return PointModifier and TypeMethodDescriptionabstract PointListUI.indexToLocation(JList<?> list, int index) Returns the origin in the givenJList, of the specified item, in the list's coordinate system.Methods in javax.swing.plaf with parameters of type PointModifier and TypeMethodDescriptionTextUI.getToolTipText(JTextComponent t, Point pt) Deprecated.replaced byTextUI.getToolTipText2D(JTextComponent, Point2D)abstract intListUI.locationToIndex(JList<?> list, Point location) Returns the cell index in the specifiedJListclosest to the given location in the list's coordinate system.abstract intTextUI.viewToModel(JTextComponent t, Point pt) Deprecated.abstract intTextUI.viewToModel(JTextComponent t, Point pt, Position.Bias[] biasReturn) Deprecated. -
Uses of Point in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic declared as PointModifier and TypeFieldDescriptionprotected PointBasicToolBarUI.DockingListener.originThe origin point.Methods in javax.swing.plaf.basic that return PointModifier and TypeMethodDescriptionBasicToolBarUI.DragWindow.getOffset()Returns the offset.protected PointBasicProgressBarUI.getStringPlacement(Graphics g, String progressString, int x, int y, int width, int height) Designate the place where the progress string will be painted.BasicListUI.indexToLocation(JList<?> list, int index) Returns the origin in the givenJList, of the specified item, in the list's coordinate system.Methods in javax.swing.plaf.basic with parameters of type PointModifier and TypeMethodDescriptionbooleanReturnstrueif theJToolBarcan dock at the given position.protected voidThe method is used to dragDragWindowduring theJToolBaris being dragged.protected voidThe method is called at end of dragging to place the frame in either its original place or in its floating frame.BasicTextUI.getToolTipText(JTextComponent t, Point pt) Returns the string to be used as the tooltip at the passed in location.intBasicListUI.locationToIndex(JList<?> list, Point location) Returns the cell index in the specifiedJListclosest to the given location in the list's coordinate system.voidBasicToolBarUI.setFloating(boolean b, Point p) Sets the floating property.voidSets the offset.intBasicTextUI.viewToModel(JTextComponent tc, Point pt) Deprecated.intBasicTextUI.viewToModel(JTextComponent tc, Point pt, Position.Bias[] biasReturn) Deprecated. -
Uses of Point in javax.swing.plaf.metal
Methods in javax.swing.plaf.metal with parameters of type PointModifier and TypeMethodDescriptionprotected voidMetalToolBarUI.setDragOffset(Point p) Sets the offset of the mouse cursor inside the DragWindow. -
Uses of Point in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi that return PointModifier and TypeMethodDescriptionMultiListUI.indexToLocation(JList<?> a, int b) Invokes theindexToLocationmethod on each UI handled by this object.Methods in javax.swing.plaf.multi with parameters of type PointModifier and TypeMethodDescriptionMultiTextUI.getToolTipText(JTextComponent a, Point b) Invokes thegetToolTipTextmethod on each UI handled by this object.intMultiListUI.locationToIndex(JList<?> a, Point b) Invokes thelocationToIndexmethod on each UI handled by this object.intMultiTextUI.viewToModel(JTextComponent a, Point b) Deprecated.intMultiTextUI.viewToModel(JTextComponent a, Point b, Position.Bias[] c) Deprecated. -
Uses of Point in javax.swing.table
Methods in javax.swing.table that return PointModifier and TypeMethodDescriptionJTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getLocation()JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getLocationOnScreen()Methods in javax.swing.table with parameters of type PointModifier and TypeMethodDescriptionintJTableHeader.columnAtPoint(Point point) Returns the index of the column thatpointlies in, or -1 if it lies out of bounds.booleanJTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getAccessibleAt(Point p) JTableHeader.AccessibleJTableHeader.getAccessibleAt(Point p) Returns the Accessible child, if one exists, contained at the local coordinate Point.voidJTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.setLocation(Point p) -
Uses of Point in javax.swing.text
Methods in javax.swing.text that return PointModifier and TypeMethodDescriptionCaret.getMagicCaretPosition()Gets the current caret visual location.DefaultCaret.getMagicCaretPosition()Gets the saved caret position.Methods in javax.swing.text with parameters of type PointModifier and TypeMethodDescriptionintJTextComponent.AccessibleJTextComponent.getIndexAtPoint(Point p) Given a point in local coordinates, return the zero-based index of the character under that Point.voidCaret.setMagicCaretPosition(Point p) Set the current caret visual location.voidDefaultCaret.setMagicCaretPosition(Point p) Saves the current caret position.intJTextComponent.viewToModel(Point pt) Deprecated.replaced byJTextComponent.viewToModel2D(Point2D)
getLocation().