com.virtuosotechnologies.lib.swing
Class Size2D

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

public abstract class Size2D
extends Object

An immutable alternative to Dimension2D


Nested Class Summary
static class Size2D.Double
          Double implementation of Size2D
static class Size2D.Float
          Float implementation of Size2D
static class Size2D.Int
          Integer implementation of Size2D
static class Size2D.Long
          Long implementation of Size2D
 
Constructor Summary
protected Size2D()
          Constructor
 
Method Summary
abstract  double getHeightD()
          Returns the height in double precision.
abstract  float getHeightF()
          Returns the height in single precision.
abstract  int getHeightI()
          Returns the height as an int.
abstract  long getHeightL()
          Returns the height as a long.
abstract  double getWidthD()
          Returns the width in double precision.
abstract  float getWidthF()
          Returns the width in single precision.
abstract  int getWidthI()
          Returns the width as an int.
abstract  long getWidthL()
          Returns the width as a long.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Size2D

protected Size2D()
Constructor

Method Detail

getWidthD

public abstract double getWidthD()
Returns the width in double precision.

Returns:
the width in double precision

getHeightD

public abstract double getHeightD()
Returns the height in double precision.

Returns:
the height in double precision

getWidthF

public abstract float getWidthF()
Returns the width in single precision.

Returns:
the width in single precision

getHeightF

public abstract float getHeightF()
Returns the height in single precision.

Returns:
the height in single precision

getWidthI

public abstract int getWidthI()
Returns the width as an int.

Returns:
the width as an int.

getHeightI

public abstract int getHeightI()
Returns the height as an int.

Returns:
the height as an int

getWidthL

public abstract long getWidthL()
Returns the width as a long.

Returns:
the width as a long.

getHeightL

public abstract long getHeightL()
Returns the height as a long.

Returns:
the height as a long