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 PointGraphicsEnvironment. getCenterPoint()Returns the Point where Windows should be centered.PointGridBagLayout. getLayoutOrigin()Determines the origin of the layout area, in the graphics coordinate space of the target container.PointRectangle. getLocation()Returns the location of thisRectangle.PointPointerInfo. getLocation()Returns thePointthat represents the coordinates of the pointer on the screen.PointPoint. getLocation()Returns the location of this point.PointMenuComponent.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.PointList.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.PointComponent. getLocation()Gets the location of this component in the form of a point specifying the component's top-left corner.PointComponent.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.PointComponent. getLocation(Point rv)Stores the x,y origin of this component into "return value" rv and return rv.PointMenuComponent.AccessibleAWTMenuComponent. getLocationOnScreen()Returns the location of the object on the screen.PointList.AccessibleAWTList.AccessibleAWTListChild. getLocationOnScreen()Returns the location of the object on the screen.PointComponent. 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.PointComponent.AccessibleAWTComponent. getLocationOnScreen()Returns the location of the object on the screen.PointComponent. getMousePosition()Returns the position of the mouse pointer in thisComponent's coordinate space if theComponentis directly under the mouse pointer, otherwise returnsnull.PointContainer. getMousePosition(boolean allowChildren)Returns the position of the mouse pointer in thisContainer's coordinate space if theContaineris under the mouse pointer, otherwise returnsnull.PointScrollPane. 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.PointComponent. location()Deprecated. As of JDK version 1.1, replaced bygetLocation().PointGridBagLayout. 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 voidRectangle. add(Point pt)Adds the specifiedPointto the bounds of thisRectangle.booleanRectangle. contains(Point p)Checks whether or not thisRectanglecontains the specifiedPoint.booleanPolygon. contains(Point p)Determines whether the specifiedPointis inside thisPolygon.booleanMenuComponent.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.booleanList.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.booleanComponent. 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.booleanComponent.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.CursorToolkit. createCustomCursor(Image cursor, Point hotSpot, java.lang.String name)Creates a new custom cursor object.ComponentContainer. findComponentAt(Point p)Locates the visible child component that contains the specified point.javax.accessibility.AccessibleMenuComponent.AccessibleAWTMenuComponent. getAccessibleAt(Point p)Returns theAccessiblechild, if one exists, contained at the local coordinatePoint.javax.accessibility.AccessibleList.AccessibleAWTList. getAccessibleAt(Point p)Returns the Accessible child contained at the local coordinate Point, if one exists.javax.accessibility.AccessibleList.AccessibleAWTList.AccessibleAWTListChild. getAccessibleAt(Point p)Returns theAccessiblechild, if one exists, contained at the local coordinatePoint.javax.accessibility.AccessibleContainer.AccessibleAWTContainer. getAccessibleAt(Point p)Returns theAccessiblechild, if one exists, contained at the local coordinatePoint.javax.accessibility.AccessibleComponent.AccessibleAWTComponent. getAccessibleAt(Point p)Returns theAccessiblechild, if one exists, contained at the local coordinatePoint.ComponentContainer. getComponentAt(Point p)Gets the component that contains the specified point.ComponentComponent. getComponentAt(Point p)Returns the component or subcomponent 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.PointComponent. getLocation(Point rv)Stores the x,y origin of this component into "return value" rv and return rv.voidWindow. setLocation(Point p)Moves this component to a new location.voidRectangle. setLocation(Point p)Moves thisRectangleto the specified location.voidPoint. setLocation(Point p)Sets the location of the point to the specified location.voidMenuComponent.AccessibleAWTMenuComponent. setLocation(Point p)Sets the location of the object relative to the parent.voidList.AccessibleAWTList.AccessibleAWTListChild. setLocation(Point p)Sets the location of the object relative to the parent.voidComponent. setLocation(Point p)Moves this component to a new location.voidComponent.AccessibleAWTComponent. setLocation(Point p)Sets the location of the object relative to the parent.voidScrollPane. 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 specifiedPointobject.Rectangle(Point p)Constructs a newRectanglewhose 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 PointMouseEvent. getLocationOnScreen()Returns the absolute x, y position of the event.PointMouseEvent. getPoint()Returns the x,y position of the event relative to the source component.
-
