java.awt

Class Point

  • java.lang.Object
    • java.awt.geom.Point2D
      • java.awt.Point
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable
    public class Point extends java.awt.geom.Point2D implements java.io.Serializable
    A point representing a location in (x,y) coordinate space, specified in integer precision.
    Since:
    1.0
    See Also:
    Serialized Form
    • Nested Classes 
      Modifier and Type Class and Description
      Inherited member indicator awt.geom.Point2D.Double Reveal DetailHide Detail
      The Double class defines a point specified in double precision.
      Inherited member indicator awt.geom.Point2D.Float Reveal DetailHide Detail
      The Float class defines a point specified in float precision.
    • Fields 
      Modifier and Type Field and Description
      Ordinary member indicator x Reveal DetailHide Detail
      The X coordinate of this Point.
      Ordinary member indicator y Reveal DetailHide Detail
      The Y coordinate of this Point.
    • Static Methods 
      Modifier and Type Static Method and Description
      Inherited member indicator distance Reveal DetailHide Detail
      Returns the distance between two points.
      Inherited member indicator distanceSq Reveal DetailHide Detail
      Returns the square of the distance between two points.
    • Constructors 
      Constructor and Description
      Ordinary member indicator Point Reveal DetailHide Detail
      Constructs and initializes a point at the origin (0, 0) of the coordinate space.
      Ordinary member indicator Point Reveal DetailHide Detail
      Constructs and initializes a point at the specified (x,y) location in the coordinate space.
      Ordinary member indicator Point Reveal DetailHide Detail
      Constructs and initializes a point with the same location as the specified Point object.
    • Methods 
      Modifier and Type Method and Description
      Inherited member indicator clone Reveal DetailHide Detail
      Creates a new object of the same class and with the same contents as this object.
      Inherited member indicator distance Reveal DetailHide Detail
      Returns the distance from this Point2D to a specified point.
      Inherited member indicator distance Reveal DetailHide Detail
      Returns the distance from this Point2D to a specified Point2D.
      Inherited member indicator distanceSq Reveal DetailHide Detail
      Returns the square of the distance from this Point2D to a specified point.
      Inherited member indicator distanceSq Reveal DetailHide Detail
      Returns the square of the distance from this Point2D to a specified Point2D.
      Overridden member indicator equals Reveal DetailHide Detail
      Determines whether or not two points are equal.
      Ordinary member indicator getLocation Reveal DetailHide Detail
      Returns the location of this point.
      Overridden member indicator getX Reveal DetailHide Detail
      Returns the X coordinate of this Point2D in double precision.
      Overridden member indicator getY Reveal DetailHide Detail
      Returns the Y coordinate of this Point2D in double precision.
      Inherited member indicator hashCode Reveal DetailHide Detail
      Returns the hashcode for this Point2D.
      Ordinary member indicator move Reveal DetailHide Detail
      Moves this point to the specified location in the (x,y) coordinate plane.
      Overridden member indicator setLocation Reveal DetailHide Detail
      Sets the location of this point to the specified double coordinates.
      Ordinary member indicator setLocation Reveal DetailHide Detail
      Changes the point to have the specified location.
      Ordinary member indicator setLocation Reveal DetailHide Detail
      Sets the location of the point to the specified location.
      Inherited member indicator setLocation Reveal DetailHide Detail
      Sets the location of this Point2D to the same coordinates as the specified Point2D object.
      Overridden member indicator toString Reveal DetailHide Detail
      Returns a string representation of this point and its location in the (x,y) coordinate space.
      Ordinary member indicator translate Reveal DetailHide Detail
      Translates this point, at location (x,y), by dx along the x axis and dy along the y axis so that it now represents the point (x+dx,y+dy).
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
This document was created by Dulcet from the OpenJDK sources. Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.

SourceForge