Uses of Class
java.awt.Point
-
Packages that use Point 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. -
-
Uses of Point in java.awt
Methods in java.awt that return Point 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 thisRectangle
.Point
PointerInfo. getLocation()
Returns thePoint
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 thisComponent
's coordinate space if theComponent
is directly under the mouse pointer, otherwise returnsnull
.Point
Container. getMousePosition(boolean allowChildren)
Returns the position of the mouse pointer in thisContainer
's coordinate space if theContainer
is under the mouse pointer, otherwise returnsnull
.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 bygetLocation()
.Point
GridBagLayout. location(int x, int y)
Determines which cell in the layout grid contains the point specified by(x, y)
.Methods in java.awt with parameters of type Point Modifier and Type Method and Description void
Rectangle. add(Point pt)
Adds the specifiedPoint
to the bounds of thisRectangle
.boolean
Rectangle. contains(Point p)
Checks whether or not thisRectangle
contains the specifiedPoint
.boolean
Polygon. contains(Point p)
Determines whether the specifiedPoint
is inside thisPolygon
.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 theAccessible
child, if one exists, contained at the local coordinatePoint
.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 theAccessible
child, if one exists, contained at the local coordinatePoint
.javax.accessibility.Accessible
Container.AccessibleAWTContainer. getAccessibleAt(Point p)
Returns theAccessible
child, if one exists, contained at the local coordinatePoint
.javax.accessibility.Accessible
Component.AccessibleAWTComponent. getAccessibleAt(Point p)
Returns theAccessible
child, if one exists, contained at the local coordinatePoint
.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 thisRectangle
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.Constructors in java.awt with parameters of type Point Constructor and Description Point(Point p)
Constructs and initializes a point with the same location as the specifiedPoint
object.Rectangle(Point p)
Constructs a newRectangle
whose upper-left corner is the specifiedPoint
, and whose width and height are both zero.Rectangle(Point p, Dimension d)
-
Uses of Point in java.awt.event
Methods in java.awt.event that return Point 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.
-