Package | Description |
---|---|
java.awt |
Contains all of the classes for creating user
interfaces and for painting graphics and images.
|
java.awt.event |
Provides interfaces and classes for dealing with different
types of events fired by AWT 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 |
Rectangle.getLocation()
Returns the location of this
Rectangle . |
Point |
PointerInfo.getLocation()
Returns the
Point that represents the coordinates
of the pointer on the screen. |
Point |
Point.getLocation()
Returns the location of this point.
|
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 |
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 |
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 |
Rectangle.contains(Point p)
Checks whether or not this
Rectangle contains the
specified Point . |
boolean |
Polygon.contains(Point p)
Determines whether the specified
Point is inside this
Polygon . |
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 |
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,
java.lang.String name)
Creates a new custom cursor object.
|
Component |
Container.findComponentAt(Point p)
Locates the visible child component that contains the specified
point.
|
javax.accessibility.Accessible |
MenuComponent.AccessibleAWTMenuComponent.getAccessibleAt(Point p)
Returns the
Accessible child, if one exists,
contained at the local coordinate Point . |
javax.accessibility.Accessible |
List.AccessibleAWTList.getAccessibleAt(Point p)
Returns the Accessible child contained at the local coordinate
Point, if one exists.
|
javax.accessibility.Accessible |
List.AccessibleAWTList.AccessibleAWTListChild.getAccessibleAt(Point p)
Returns the
Accessible child, if one exists,
contained at the local coordinate Point . |
javax.accessibility.Accessible |
Container.AccessibleAWTContainer.getAccessibleAt(Point p)
Returns the
Accessible child, if one exists,
contained at the local coordinate Point . |
javax.accessibility.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 |
Window.setLocation(Point p)
Moves this component to a new location.
|
void |
Rectangle.setLocation(Point p)
Moves this
Rectangle to the specified location. |
void |
Point.setLocation(Point p)
Sets the location of the point to the specified location.
|
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 |
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 |
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 |
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.
|