com.virtuosotechnologies.lib.swing
Class Location2D

java.lang.Object
  extended bycom.virtuosotechnologies.lib.swing.Location2D
Direct Known Subclasses:
Location2D.Double, Location2D.Float, Location2D.Int, Location2D.Long

public abstract class Location2D
extends Object

An immutable alternative to Point2D


Nested Class Summary
static class Location2D.Double
          Double implementation of Location2D
static class Location2D.Float
          Float implementation of Location2D
static class Location2D.Int
          Integer implementation of Location2D
static class Location2D.Long
          Long implementation of Location2D
 
Constructor Summary
protected Location2D()
          Constructor
 
Method Summary
abstract  double getXD()
          Returns the x in double precision.
abstract  float getXF()
          Returns the x in single precision.
abstract  int getXI()
          Returns the x as an int.
abstract  long getXL()
          Returns the x as a long.
abstract  double getYD()
          Returns the y in double precision.
abstract  float getYF()
          Returns the y in single precision.
abstract  int getYI()
          Returns the y as an int.
abstract  long getYL()
          Returns the y as a long.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Location2D

protected Location2D()
Constructor

Method Detail

getXD

public abstract double getXD()
Returns the x in double precision.

Returns:
the x in double precision

getYD

public abstract double getYD()
Returns the y in double precision.

Returns:
the y in double precision

getXF

public abstract float getXF()
Returns the x in single precision.

Returns:
the x in single precision

getYF

public abstract float getYF()
Returns the y in single precision.

Returns:
the y in single precision

getXI

public abstract int getXI()
Returns the x as an int.

Returns:
the x as an int.

getYI

public abstract int getYI()
Returns the y as an int.

Returns:
the y as an int

getXL

public abstract long getXL()
Returns the x as a long.

Returns:
the x as a long.

getYL

public abstract long getYL()
Returns the y as a long.

Returns:
the y as a long