Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.graph.dot.impl
Class DotPoint  view DotPoint download DotPoint.java

java.lang.Object
  extended byjava.awt.geom.Point2D
      extended bycom.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 Class Summary
 
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
           
 
Constructor Summary
DotPoint()
           
DotPoint(DotPoint p)
           
DotPoint(double x, double y)
           
DotPoint(IntPoint p)
           
 
Method Summary
 double getX()
          Get the X coordinate, in double precision.
 double getY()
          Get the Y coordinate, in double precision.
 void setLocation(double x, double y)
          Set the location of this point to the new coordinates.
 java.lang.String toString()
          Convert this Object to a human-readable String.
 java.lang.String toString(java.lang.String format)
           
 
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

x

double x

y

double y
Constructor Detail

DotPoint

public DotPoint()

DotPoint

public DotPoint(double x,
                double y)

DotPoint

public DotPoint(IntPoint p)

DotPoint

public DotPoint(DotPoint p)
Method Detail

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)