Package | Description |
---|---|
java.awt |
Contains all of the classes for creating user
interfaces and for painting graphics and images.
|
java.awt.dnd |
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.
|
java.awt.event |
Provides interfaces and classes for dealing with different
types of events fired by AWT components.
|
java.awt.image |
Provides classes for creating and modifying images.
|
javax.accessibility |
Defines a contract between user-interface components and an assistive technology
that provides access to those components.
|
javax.imageio |
The main package of the Java Image I/O API.
|
javax.swing |
Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms.
|
javax.swing.plaf |
Provides one interface and many abstract classes that
Swing uses to provide its pluggable look-and-feel capabilities.
|
javax.swing.plaf.basic |
Provides user interface objects built according to the
Basic look and feel.
|
javax.swing.plaf.metal |
Provides user interface objects built according to
the Java look and feel (once codenamed Metal),
which is the default look and feel.
|
javax.swing.plaf.multi |
Provides user interface objects that combine two or more look and feels.
|
javax.swing.table |
Provides classes and interfaces for dealing with
javax.swing.JTable . |
javax.swing.text |
Provides classes and interfaces that deal with editable
and noneditable text components.
|
Modifier and Type | Method and Description |
---|---|
Point |
GraphicsEnvironment.getCenterPoint()
Returns the Point where Windows should be centered.
|
Point |
GridBagLayout.getLayoutOrigin()
Determines the origin of the layout area, in the graphics coordinate
space of the target container.
|
Point |
PointerInfo.getLocation()
Returns the
Point that represents the coordinates
of the pointer on the screen. |
Point |
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 |
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.
|
Point |
Rectangle.getLocation()
Returns the location of this
Rectangle . |
Point |
Component.getLocation()
Gets the location of this component in the form of a
point specifying the component's top-left corner.
|
Point |
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.
|
Point |
Point.getLocation()
Returns the location of this point.
|
Point |
Component.getLocation(Point rv)
Stores the x,y origin of this component into "return value" rv
and return rv.
|
Point |
MenuComponent.AccessibleAWTMenuComponent.getLocationOnScreen()
Returns the location of the object on the screen.
|
Point |
List.AccessibleAWTList.AccessibleAWTListChild.getLocationOnScreen()
Returns the location of the object on the screen.
|
Point |
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.
|
Point |
Component.AccessibleAWTComponent.getLocationOnScreen()
Returns the location of the object on the screen.
|
Point |
Component.getMousePosition()
Returns the position of the mouse pointer in this
Component 's
coordinate space if the Component is directly under the mouse
pointer, otherwise returns null . |
Point |
Container.getMousePosition(boolean allowChildren)
Returns the position of the mouse pointer in this
Container 's
coordinate space if the Container is under the mouse pointer,
otherwise returns null . |
Point |
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.
|
Point |
Component.location()
Deprecated.
As of JDK version 1.1,
replaced by
getLocation() . |
Point |
GridBagLayout.location(int x,
int y)
Determines which cell in the layout grid contains the point
specified by
(x, y) . |
Modifier and Type | Method and Description |
---|---|
void |
Rectangle.add(Point pt)
Adds the specified
Point to the bounds of this
Rectangle . |
boolean |
MenuComponent.AccessibleAWTMenuComponent.contains(Point p)
Checks 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.
|
boolean |
List.AccessibleAWTList.AccessibleAWTListChild.contains(Point p)
Checks 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.
|
boolean |
Polygon.contains(Point p)
Determines whether the specified
Point is inside this
Polygon . |
boolean |
Rectangle.contains(Point p)
Checks whether or not this
Rectangle contains the
specified Point . |
boolean |
Component.contains(Point p)
Checks 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.
|
boolean |
Component.AccessibleAWTComponent.contains(Point p)
Checks 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.
|
Cursor |
Toolkit.createCustomCursor(Image cursor,
Point hotSpot,
String name)
Creates a new custom cursor object.
|
Component |
Container.findComponentAt(Point p)
Locates the visible child component that contains the specified
point.
|
Accessible |
MenuComponent.AccessibleAWTMenuComponent.getAccessibleAt(Point p)
Returns the
Accessible child, if one exists,
contained at the local coordinate Point . |
Accessible |
Container.AccessibleAWTContainer.getAccessibleAt(Point p)
Returns the
Accessible child, if one exists,
contained at the local coordinate Point . |
Accessible |
List.AccessibleAWTList.getAccessibleAt(Point p)
Returns the Accessible child contained at the local coordinate
Point, if one exists.
|
Accessible |
List.AccessibleAWTList.AccessibleAWTListChild.getAccessibleAt(Point p)
Returns the
Accessible child, if one exists,
contained at the local coordinate Point . |
Accessible |
Component.AccessibleAWTComponent.getAccessibleAt(Point p)
Returns the
Accessible child,
if one exists, contained at the local
coordinate Point . |
Component |
Container.getComponentAt(Point p)
Gets the component that contains the specified point.
|
Component |
Component.getComponentAt(Point p)
Returns the component or subcomponent that contains the
specified point.
|
int |
TextComponent.AccessibleAWTTextComponent.getIndexAtPoint(Point p)
Given a point in local coordinates, return the zero-based index
of the character under that Point.
|
Point |
Component.getLocation(Point rv)
Stores the x,y origin of this component into "return value" rv
and return rv.
|
void |
MenuComponent.AccessibleAWTMenuComponent.setLocation(Point p)
Sets the location of the object relative to the parent.
|
void |
List.AccessibleAWTList.AccessibleAWTListChild.setLocation(Point p)
Sets the location of the object relative to the parent.
|
void |
Rectangle.setLocation(Point p)
Moves this
Rectangle to the specified location. |
void |
Component.setLocation(Point p)
Moves this component to a new location.
|
void |
Component.AccessibleAWTComponent.setLocation(Point p)
Sets the location of the object relative to the parent.
|
void |
Point.setLocation(Point p)
Sets the location of the point to the specified location.
|
void |
ScrollPane.setScrollPosition(Point p)
Scrolls to the specified position within the child component.
|
Constructor and Description |
---|
Point(Point p)
Constructs and initializes a point with the same location as
the specified
Point object. |
Rectangle(Point p)
Constructs a new
Rectangle whose upper-left corner is the
specified Point , and whose width and height are both zero. |
Rectangle(Point p,
Dimension d)
|
Modifier and Type | Method and Description |
---|---|
Point |
DragGestureEvent.getDragOrigin()
Returns a
Point in the coordinates
of the Component over which the drag originated. |
Point |
DropTargetDropEvent.getLocation()
This method returns a
Point
indicating the Cursor 's current
location in the Component 's coordinates. |
Point |
DropTargetDragEvent.getLocation()
This method returns a
Point
indicating the Cursor 's current
location within the Component' s
coordinates. |
Point |
DragSourceEvent.getLocation()
This method returns a
Point indicating the cursor
location in screen coordinates at the moment this event occured, or
null if the cursor location is not specified for this
event. |
Modifier and Type | Method and Description |
---|---|
void |
Autoscroll.autoscroll(Point cursorLocn)
notify the
Component to autoscroll |
protected DragSourceContext |
DragSource.createDragSourceContext(java.awt.dnd.peer.DragSourceContextPeer dscp,
DragGestureEvent dgl,
Cursor dragCursor,
Image dragImage,
Point imageOffset,
Transferable t,
DragSourceListener dsl)
Creates the
DragSourceContext to handle the current drag
operation. |
protected DropTarget.DropTargetAutoScroller |
DropTarget.createDropTargetAutoScroller(Component c,
Point p)
create an embedded autoscroller
|
protected void |
DragGestureRecognizer.fireDragGestureRecognized(int dragAction,
Point p)
Notify the DragGestureListener that a Drag and Drop initiating
gesture has occurred.
|
protected void |
DropTarget.initializeAutoscrolling(Point p)
initialize autoscrolling
|
void |
DragGestureEvent.startDrag(Cursor dragCursor,
Image dragImage,
Point imageOffset,
Transferable transferable,
DragSourceListener dsl)
Start the drag given the initial
Cursor to display,
a drag Image , the offset of
the Image ,
the Transferable object, and
the DragSourceListener to use. |
void |
DragSource.startDrag(DragGestureEvent trigger,
Cursor dragCursor,
Image dragImage,
Point dragOffset,
Transferable transferable,
DragSourceListener dsl)
Start a drag, given the
DragGestureEvent
that initiated the drag, the initial Cursor
to use,
the Image to drag,
the offset of the Image origin
from the hotspot of the Cursor
at the instant of the trigger,
the subject data of the drag, and
the DragSourceListener . |
void |
DragSource.startDrag(DragGestureEvent trigger,
Cursor dragCursor,
Image dragImage,
Point imageOffset,
Transferable transferable,
DragSourceListener dsl,
FlavorMap flavorMap)
Start a drag, given the
DragGestureEvent
that initiated the drag, the initial
Cursor to use,
the Image to drag,
the offset of the Image origin
from the hotspot of the Cursor at
the instant of the trigger,
the Transferable subject data
of the drag, the DragSourceListener ,
and the FlavorMap . |
protected void |
DropTarget.updateAutoscroll(Point dragCursorLocn)
update autoscrolling with current cursor locn
|
protected void |
DropTarget.DropTargetAutoScroller.updateLocation(Point newLocn)
cause autoscroll to occur
|
Constructor and Description |
---|
DragGestureEvent(DragGestureRecognizer dgr,
int act,
Point ori,
List<? extends InputEvent> evs)
Constructs a
DragGestureEvent object given by the
DragGestureRecognizer instance firing this event,
an act parameter representing
the user's preferred action, an ori parameter
indicating the origin of the drag, and a List of
events that comprise the gesture(evs parameter). |
DragSourceContext(java.awt.dnd.peer.DragSourceContextPeer dscp,
DragGestureEvent trigger,
Cursor dragCursor,
Image dragImage,
Point offset,
Transferable t,
DragSourceListener dsl)
Called from
DragSource , this constructor creates a new
DragSourceContext given the
DragSourceContextPeer for this Drag, the
DragGestureEvent that triggered the Drag, the initial
Cursor to use for the Drag, an (optional)
Image to display while the Drag is taking place, the offset
of the Image origin from the hotspot at the instant of the
triggering event, the Transferable subject data, and the
DragSourceListener to use during the Drag and Drop
operation. |
DropTarget.DropTargetAutoScroller(Component c,
Point p)
construct a DropTargetAutoScroller
|
DropTargetDragEvent(DropTargetContext dtc,
Point cursorLocn,
int dropAction,
int srcActions)
Construct a
DropTargetDragEvent given the
DropTargetContext for this operation,
the location of the "Drag" Cursor 's hotspot
in the Component 's coordinates, the
user drop action, and the source drop actions. |
DropTargetDropEvent(DropTargetContext dtc,
Point cursorLocn,
int dropAction,
int srcActions)
Construct a
DropTargetDropEvent given
the DropTargetContext for this operation,
the location of the drag Cursor 's
hotspot in the Component '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 a
DropTargetEvent given the
DropTargetContext for this operation,
the location of the drag Cursor 's hotspot
in the Component 's
coordinates, the currently selected user drop action,
the current set of actions supported by the source,
and a boolean indicating if the source is in the same JVM
as the target. |
Modifier and Type | Method and Description |
---|---|
Point |
MouseEvent.getLocationOnScreen()
Returns the absolute x, y position of the event.
|
Point |
MouseEvent.getPoint()
Returns the x,y position of the event relative to the source component.
|
Modifier and Type | Method and Description |
---|---|
Point[] |
WritableRenderedImage.getWritableTileIndices()
Returns an array of Point objects indicating which tiles
are checked out for writing.
|
Point[] |
BufferedImage.getWritableTileIndices()
Returns an array of
Point objects indicating which tiles
are checked out for writing. |
Modifier and Type | Method and Description |
---|---|
static WritableRaster |
Raster.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 WritableRaster |
Raster.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 WritableRaster |
Raster.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 WritableRaster |
Raster.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 WritableRaster |
Raster.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 WritableRaster |
Raster.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 WritableRaster |
Raster.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 WritableRaster |
Raster.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 WritableRaster |
Raster.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 WritableRaster |
Raster.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 Raster |
Raster.createRaster(SampleModel sm,
DataBuffer db,
Point location)
Creates a Raster with the specified SampleModel and DataBuffer.
|
static WritableRaster |
Raster.createWritableRaster(SampleModel sm,
DataBuffer db,
Point location)
Creates a WritableRaster with the specified SampleModel and DataBuffer.
|
static WritableRaster |
Raster.createWritableRaster(SampleModel sm,
Point location)
Creates a WritableRaster with the specified SampleModel.
|
Constructor and Description |
---|
Raster(SampleModel sampleModel,
DataBuffer dataBuffer,
Point origin)
Constructs a Raster with the given SampleModel and DataBuffer.
|
Raster(SampleModel sampleModel,
DataBuffer dataBuffer,
Rectangle aRegion,
Point sampleModelTranslate,
Raster parent)
Constructs a Raster with the given SampleModel, DataBuffer, and
parent.
|
Raster(SampleModel sampleModel,
Point origin)
Constructs a Raster with the given SampleModel.
|
WritableRaster(SampleModel sampleModel,
DataBuffer dataBuffer,
Point origin)
Constructs a WritableRaster with the given SampleModel and DataBuffer.
|
WritableRaster(SampleModel sampleModel,
DataBuffer dataBuffer,
Rectangle aRegion,
Point sampleModelTranslate,
WritableRaster parent)
Constructs a WritableRaster with the given SampleModel, DataBuffer,
and parent.
|
WritableRaster(SampleModel sampleModel,
Point origin)
Constructs a WritableRaster with the given SampleModel.
|
Modifier and Type | Method and Description |
---|---|
Point |
AccessibleComponent.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 |
AccessibleComponent.getLocationOnScreen()
Returns the location of the object on the screen.
|
Modifier and Type | Method and Description |
---|---|
boolean |
AccessibleComponent.contains(Point p)
Checks 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.
|
Accessible |
AccessibleComponent.getAccessibleAt(Point p)
Returns the Accessible child, if one exists, contained at the local
coordinate Point.
|
int |
AccessibleText.getIndexAtPoint(Point p)
Given a point in local coordinates, return the zero-based index
of the character under that Point.
|
void |
AccessibleComponent.setLocation(Point p)
Sets the location of the object relative to the parent.
|
Modifier and Type | Field and Description |
---|---|
protected Point |
IIOParam.destinationOffset
The offset in the destination where the upper-left decoded
pixel should be placed.
|
Modifier and Type | Method and Description |
---|---|
Point |
IIOParam.getDestinationOffset()
Returns the offset in the destination image at which pixels are
to be placed.
|
Modifier and Type | Method and Description |
---|---|
void |
IIOParam.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.
|
Modifier and Type | Field and Description |
---|---|
protected Point |
JViewport.lastPaintPosition
The last
viewPosition that we've painted, so we know how
much of the backing store image is valid. |
Modifier and Type | Method and Description |
---|---|
static Point |
SwingUtilities.convertPoint(Component source,
int x,
int y,
Component destination)
Convert the point
(x,y) in source coordinate system to
destination coordinate system. |
static Point |
SwingUtilities.convertPoint(Component source,
Point aPoint,
Component destination)
Convert a
aPoint in source coordinate system to
destination coordinate system. |
Point |
TransferHandler.getDragImageOffset()
Returns an anchor offset for the image to drag.
|
Point |
TransferHandler.DropLocation.getDropPoint()
Returns the drop point, representing the mouse's
current location within the component.
|
Point |
JTree.AccessibleJTree.AccessibleJTreeNode.getLocation() |
Point |
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.
|
Point |
JList.AccessibleJList.AccessibleJListChild.getLocation() |
Point |
JComponent.getLocation(Point rv)
Stores the x,y origin of this component into "return value"
rv and returns rv . |
protected Point |
JTree.AccessibleJTree.AccessibleJTreeNode.getLocationInJTree() |
Point |
JTree.AccessibleJTree.AccessibleJTreeNode.getLocationOnScreen() |
Point |
JTable.AccessibleJTable.AccessibleJTableCell.getLocationOnScreen()
Returns the location of the object on the screen.
|
Point |
JList.AccessibleJList.AccessibleJListChild.getLocationOnScreen() |
Point |
JComponent.getPopupLocation(MouseEvent event)
Returns the preferred location to display the popup menu in this
component's coordinate system.
|
protected Point |
JMenu.getPopupMenuOrigin()
Computes the origin for the
JMenu 's popup menu. |
Point |
JComponent.getToolTipLocation(MouseEvent event)
Returns the tooltip location in this component's coordinate system.
|
Point |
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.
|
Point |
JList.indexToLocation(int index)
Returns the origin of the specified item in the list's coordinate
system.
|
Point |
JViewport.toViewCoordinates(Point p)
Converts a point in pixel coordinates to view coordinates.
|
Modifier and Type | Method and Description |
---|---|
int |
JTable.columnAtPoint(Point point)
Returns the index of the column that
point lies in,
or -1 if the result is not in the range
[0, getColumnCount() -1]. |
Component |
MenuSelectionManager.componentForPoint(Component source,
Point sourcePoint)
Returns the component in the currently selected path
which contains sourcePoint.
|
protected boolean |
JViewport.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 contains
oldLoc in the upper left hand corner
and we're scrolling to newLoc . |
boolean |
JTree.AccessibleJTree.AccessibleJTreeNode.contains(Point p) |
boolean |
JTable.AccessibleJTable.AccessibleJTableCell.contains(Point p)
Checks 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.
|
boolean |
JList.AccessibleJList.AccessibleJListChild.contains(Point p) |
static Point |
SwingUtilities.convertPoint(Component source,
Point aPoint,
Component destination)
Convert a
aPoint in source coordinate system to
destination coordinate system. |
static void |
SwingUtilities.convertPointFromScreen(Point p,
Component c)
Convert a point from a screen coordinates to a component's
coordinate system
|
static void |
SwingUtilities.convertPointToScreen(Point p,
Component c)
Convert a point from a component's coordinate system to
screen coordinates.
|
static Accessible |
SwingUtilities.getAccessibleAt(Component c,
Point p)
Returns the
Accessible child contained at the
local coordinate Point , if one exists. |
Accessible |
JTabbedPane.AccessibleJTabbedPane.getAccessibleAt(Point p)
Returns the
Accessible child contained at
the local coordinate Point , if one exists. |
Accessible |
JTree.AccessibleJTree.getAccessibleAt(Point p)
Returns the
Accessible child, if one exists,
contained at the local coordinate Point . |
Accessible |
JTree.AccessibleJTree.AccessibleJTreeNode.getAccessibleAt(Point p)
Returns the
Accessible child, if one exists,
contained at the local coordinate Point . |
Accessible |
JTable.AccessibleJTable.getAccessibleAt(Point p)
Returns the
Accessible child, if one exists,
contained at the local coordinate Point . |
Accessible |
JTable.AccessibleJTable.AccessibleJTableCell.getAccessibleAt(Point p) |
Accessible |
JList.AccessibleJList.getAccessibleAt(Point p)
Returns the
Accessible child contained at
the local coordinate Point , if one exists. |
Accessible |
JList.AccessibleJList.AccessibleJListChild.getAccessibleAt(Point p) |
Accessible |
JEditorPane.AccessibleJEditorPaneHTML.getAccessibleAt(Point p)
Returns the Accessible child, if one exists, contained at the local
coordinate Point.
|
int |
ProgressMonitor.AccessibleProgressMonitor.getIndexAtPoint(Point p)
Given a point in local coordinates, return the zero-based index
of the character under that Point.
|
int |
JSpinner.AccessibleJSpinner.getIndexAtPoint(Point p)
Given a point in local coordinates, return the zero-based index
of the character under that Point.
|
int |
JLabel.AccessibleJLabel.getIndexAtPoint(Point p)
Given a point in local coordinates, return the zero-based index
of the character under that Point.
|
int |
AbstractButton.AccessibleAbstractButton.getIndexAtPoint(Point p)
Given a point in local coordinates, return the zero-based index
of the character under that Point.
|
Point |
JComponent.getLocation(Point rv)
Stores the x,y origin of this component into "return value"
rv and returns rv . |
int |
JList.locationToIndex(Point location)
Returns the cell index closest to the given location in the list's
coordinate system.
|
int |
JTable.rowAtPoint(Point point)
Returns the index of the row that
point lies in,
or -1 if the result is not in the range
[0, getRowCount() -1]. |
void |
TransferHandler.setDragImageOffset(Point p)
Sets an anchor offset for the image to drag.
|
void |
JTree.AccessibleJTree.AccessibleJTreeNode.setLocation(Point p) |
void |
JTable.AccessibleJTable.AccessibleJTableCell.setLocation(Point p)
Sets the location of the object relative to the parent.
|
void |
JList.AccessibleJList.AccessibleJListChild.setLocation(Point p) |
void |
JViewport.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.
|
Point |
JViewport.toViewCoordinates(Point p)
Converts a point in pixel coordinates to view coordinates.
|
Constructor and Description |
---|
TransferHandler.DropLocation(Point dropPoint)
Constructs a drop location for the given point.
|
Modifier and Type | Method and Description |
---|---|
abstract Point |
ListUI.indexToLocation(JList list,
int index)
Returns the origin in the given
JList , of the specified item,
in the list's coordinate system. |
Modifier and Type | Method and Description |
---|---|
String |
TextUI.getToolTipText(JTextComponent t,
Point pt)
Returns the string to be used as the tooltip at the passed in location.
|
abstract int |
ListUI.locationToIndex(JList list,
Point location)
Returns the cell index in the specified
JList closest to the
given location in the list's coordinate system. |
abstract int |
TextUI.viewToModel(JTextComponent t,
Point pt)
Converts the given place in the view coordinate system
to the nearest representative location in the model.
|
abstract int |
TextUI.viewToModel(JTextComponent t,
Point pt,
Position.Bias[] biasReturn)
Provides a mapping from the view coordinate space to the logical
coordinate space of the model.
|
Modifier and Type | Field and Description |
---|---|
protected Point |
BasicToolBarUI.DockingListener.origin |
Modifier and Type | Method and Description |
---|---|
Point |
BasicToolBarUI.DragWindow.getOffset() |
protected Point |
BasicProgressBarUI.getStringPlacement(Graphics g,
String progressString,
int x,
int y,
int width,
int height)
Designate the place where the progress string will be painted.
|
Point |
BasicListUI.indexToLocation(JList list,
int index)
Returns the origin in the given
JList , of the specified item,
in the list's coordinate system. |
Modifier and Type | Method and Description |
---|---|
boolean |
BasicToolBarUI.canDock(Component c,
Point p) |
protected void |
BasicToolBarUI.dragTo(Point position,
Point origin) |
protected void |
BasicToolBarUI.floatAt(Point position,
Point origin) |
String |
BasicTextUI.getToolTipText(JTextComponent t,
Point pt)
Returns the string to be used as the tooltip at the passed in location.
|
int |
BasicListUI.locationToIndex(JList list,
Point location)
Returns the cell index in the specified
JList closest to the
given location in the list's coordinate system. |
void |
BasicToolBarUI.setFloating(boolean b,
Point p) |
void |
BasicToolBarUI.DragWindow.setOffset(Point p) |
int |
BasicTextUI.viewToModel(JTextComponent tc,
Point pt)
Converts the given place in the view coordinate system
to the nearest representative location in the model.
|
int |
BasicTextUI.viewToModel(JTextComponent tc,
Point pt,
Position.Bias[] biasReturn)
Converts the given place in the view coordinate system
to the nearest representative location in the model.
|
Modifier and Type | Method and Description |
---|---|
protected void |
MetalToolBarUI.setDragOffset(Point p) |
Modifier and Type | Method and Description |
---|---|
Point |
MultiListUI.indexToLocation(JList a,
int b)
Invokes the
indexToLocation method on each UI handled by this object. |
Modifier and Type | Method and Description |
---|---|
String |
MultiTextUI.getToolTipText(JTextComponent a,
Point b)
Invokes the
getToolTipText method on each UI handled by this object. |
int |
MultiListUI.locationToIndex(JList a,
Point b)
Invokes the
locationToIndex method on each UI handled by this object. |
int |
MultiTextUI.viewToModel(JTextComponent a,
Point b)
Invokes the
viewToModel method on each UI handled by this object. |
int |
MultiTextUI.viewToModel(JTextComponent a,
Point b,
Position.Bias[] c)
Invokes the
viewToModel method on each UI handled by this object. |
Modifier and Type | Method and Description |
---|---|
Point |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getLocation() |
Point |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getLocationOnScreen() |
Modifier and Type | Method and Description |
---|---|
int |
JTableHeader.columnAtPoint(Point point)
Returns the index of the column that
point lies in, or -1 if it
lies out of bounds. |
boolean |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.contains(Point p) |
Accessible |
JTableHeader.AccessibleJTableHeader.getAccessibleAt(Point p)
Returns the Accessible child, if one exists, contained at the local
coordinate Point.
|
Accessible |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getAccessibleAt(Point p) |
void |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.setLocation(Point p) |
Modifier and Type | Method and Description |
---|---|
Point |
DefaultCaret.getMagicCaretPosition()
Gets the saved caret position.
|
Point |
Caret.getMagicCaretPosition()
Gets the current caret visual location.
|
Modifier and Type | Method and Description |
---|---|
int |
JTextComponent.AccessibleJTextComponent.getIndexAtPoint(Point p)
Given a point in local coordinates, return the zero-based index
of the character under that Point.
|
void |
DefaultCaret.setMagicCaretPosition(Point p)
Saves the current caret position.
|
void |
Caret.setMagicCaretPosition(Point p)
Set the current caret visual location.
|
int |
JTextComponent.viewToModel(Point pt)
Converts the given place in the view coordinate system
to the nearest representative location in the model.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2011, Oracle and/or its affiliates. All rights reserved.
DRAFT ea-b138