org.jhotdraw.geom
Class Insets2D.Float

java.lang.Object
  extended by org.jhotdraw.geom.Insets2D
      extended by org.jhotdraw.geom.Insets2D.Float
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Enclosing class:
Insets2D

public static class Insets2D.Float
extends Insets2D

The Float class defines insets specified in float precision.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jhotdraw.geom.Insets2D
Insets2D.Double, Insets2D.Float
 
Field Summary
 float bottom
           
 float left
           
 float right
           
 float top
           
 
Constructor Summary
Insets2D.Float()
          Constructs and initializes an Insets2D with all insets set to 0.
Insets2D.Float(float top, float left, float bottom, float right)
          Constructs and initializes an Insets2D with the specified insets.
 
Method Summary
 double getBottom()
          Returns the bottom insets in double precision.
 double getLeft()
          Returns the left insets in double precision.
 double getRight()
          Returns the right insets in double precision.
 double getTop()
          Returns the top insets in double precision.
 void set(double top, double left, double bottom, double right)
          Sets the insets.
 void set(float top, float left, float bottom, float right)
           
 
Methods inherited from class org.jhotdraw.geom.Insets2D
add, add, addTo, clone, equals, hashCode, set, subtract, subtract, subtractTo, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

top

public float top

left

public float left

bottom

public float bottom

right

public float right
Constructor Detail

Insets2D.Float

public Insets2D.Float()
Constructs and initializes an Insets2D with all insets set to 0.


Insets2D.Float

public Insets2D.Float(float top,
                      float left,
                      float bottom,
                      float right)
Constructs and initializes an Insets2D with the specified insets.

Parameters:
top - The top insets.
left - The left insets.
bottom - The bottom insets.
right - The right insets.
Method Detail

getTop

public double getTop()
Description copied from class: Insets2D
Returns the top insets in double precision.

Specified by:
getTop in class Insets2D
Returns:
the top insets of this Insets2D.

getLeft

public double getLeft()
Description copied from class: Insets2D
Returns the left insets in double precision.

Specified by:
getLeft in class Insets2D
Returns:
the left insets of this Insets2D.

getBottom

public double getBottom()
Description copied from class: Insets2D
Returns the bottom insets in double precision.

Specified by:
getBottom in class Insets2D
Returns:
the bottom insets of this Insets2D.

getRight

public double getRight()
Description copied from class: Insets2D
Returns the right insets in double precision.

Specified by:
getRight in class Insets2D
Returns:
the right insets of this Insets2D.

set

public void set(double top,
                double left,
                double bottom,
                double right)
Description copied from class: Insets2D
Sets the insets.

Specified by:
set in class Insets2D
Parameters:
top - The top insets.
left - The left insets.
bottom - The bottom insets.
right - The right insets.

set

public void set(float top,
                float left,
                float bottom,
                float right)