com.virtuosotechnologies.lib.swing
Class Size2D.Float

java.lang.Object
  extended bycom.virtuosotechnologies.lib.swing.Size2D
      extended bycom.virtuosotechnologies.lib.swing.Size2D.Float
All Implemented Interfaces:
Cloneable, Serializable
Enclosing class:
Size2D

public static class Size2D.Float
extends Size2D
implements Serializable, Cloneable

Float implementation of Size2D

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.virtuosotechnologies.lib.swing.Size2D
Size2D.Double, Size2D.Float, Size2D.Int, Size2D.Long
 
Constructor Summary
Size2D.Float()
          Constructor.
Size2D.Float(float width, float height)
          Constructor
Size2D.Float(Size2D orig)
          Constructor that takes a Size2D
 
Method Summary
 Object clone()
           
 boolean equals(Object obj)
           
 double getHeightD()
          Returns the height in double precision.
 float getHeightF()
          Returns the height in single precision.
 int getHeightI()
          Returns the height as an int.
 long getHeightL()
          Returns the height as a long.
 double getWidthD()
          Returns the width in double precision.
 float getWidthF()
          Returns the width in single precision.
 int getWidthI()
          Returns the width as an int.
 long getWidthL()
          Returns the width as a long.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Size2D.Float

public Size2D.Float(float width,
                    float height)
Constructor

Parameters:
width - width
height - height

Size2D.Float

public Size2D.Float()
Constructor. Creates a size object with value 0,0.


Size2D.Float

public Size2D.Float(Size2D orig)
Constructor that takes a Size2D

Parameters:
orig - original object
Method Detail

getWidthD

public double getWidthD()
Description copied from class: Size2D
Returns the width in double precision.

Specified by:
getWidthD in class Size2D
Returns:
the width in double precision

getHeightD

public double getHeightD()
Description copied from class: Size2D
Returns the height in double precision.

Specified by:
getHeightD in class Size2D
Returns:
the height in double precision

getWidthF

public float getWidthF()
Description copied from class: Size2D
Returns the width in single precision.

Specified by:
getWidthF in class Size2D
Returns:
the width in single precision

getHeightF

public float getHeightF()
Description copied from class: Size2D
Returns the height in single precision.

Specified by:
getHeightF in class Size2D
Returns:
the height in single precision

getWidthI

public int getWidthI()
Description copied from class: Size2D
Returns the width as an int.

Specified by:
getWidthI in class Size2D
Returns:
the width as an int.

getHeightI

public int getHeightI()
Description copied from class: Size2D
Returns the height as an int.

Specified by:
getHeightI in class Size2D
Returns:
the height as an int

getWidthL

public long getWidthL()
Description copied from class: Size2D
Returns the width as a long.

Specified by:
getWidthL in class Size2D
Returns:
the width as a long.

getHeightL

public long getHeightL()
Description copied from class: Size2D
Returns the height as a long.

Specified by:
getHeightL in class Size2D
Returns:
the height as a long

clone

public Object clone()

equals

public boolean equals(Object obj)

hashCode

public int hashCode()

toString

public String toString()