java.awt.Point (JDK 1.0)
This class holds the X and Y coordinates of a two-dimensional point. The move() method sets the coordinates, and the translate() method adds the specified values to the coordinates. The x and y fields are public and may be manipulated directly.
public classPointextends Object implements Serializable { //Public Constructors1.1 publicPoint(); 1.1 publicPoint(Pointp); publicPoint(intx, inty); //Public Instance Variablespublic intx; public inty; //Public Instance Methodspublic booleanequals(Objectobj); //Overrides Object1.1 public PointgetLocation(); public inthashCode(); //Overrides Objectpublic voidmove(intx, inty); 1.1 public voidsetLocation(Pointp); 1.1 public voidsetLocation(intx, inty); public StringtoString(); //Overrides Objectpublic voidtranslate(intx, inty); }
Passed To:
Component.contains(), Component.getComponentAt(), Component.setLocation(), Container.getComponentAt(), Point(), Point.setLocation(), Polygon.contains(), Rectangle(), Rectangle.add(), Rectangle.contains(), Rectangle.setLocation(), ScrollPane.setScrollPosition()
Returned By:
Component.getLocation(), Component.getLocationOnScreen(), Component.location(), ComponentPeer.getLocationOnScreen(), GridBagLayout.getLayoutOrigin(), GridBagLayout.location(), MouseEvent.getPoint(), Point.getLocation(), Rectangle.getLocation(), ScrollPane.getScrollPosition()