java.lang.Object
java.awt.geom.Point2D
com.port80.graph.dot.impl.DotPoint
- All Implemented Interfaces:
- java.lang.Cloneable
- public class DotPoint
- extends java.awt.geom.Point2D
Wrapper of a dynamic allocated array of DotPoint.
| Nested classes inherited from class java.awt.geom.Point2D |
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float |
|
Field Summary |
(package private) double |
x
|
(package private) double |
y
|
x
double x
y
double y
DotPoint
public DotPoint()
DotPoint
public DotPoint(double x,
double y)
DotPoint
public DotPoint(IntPoint p)
DotPoint
public DotPoint(DotPoint p)
getX
public double getX()
- Description copied from class:
java.awt.geom.Point2D
- Get the X coordinate, in double precision.
getY
public double getY()
- Description copied from class:
java.awt.geom.Point2D
- Get the Y coordinate, in double precision.
setLocation
public void setLocation(double x,
double y)
- Description copied from class:
java.awt.geom.Point2D
- Set the location of this point to the new coordinates. There may be a
loss of precision.
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).
toString
public java.lang.String toString(java.lang.String format)