JHotDraw 7.1

org.jhotdraw.geom
Class Insets2D.Double

java.lang.Object
  extended by org.jhotdraw.geom.Insets2D
      extended by org.jhotdraw.geom.Insets2D.Double
All Implemented Interfaces:
java.lang.Cloneable
Enclosing class:
Insets2D

public static class Insets2D.Double
extends Insets2D

The Double class defines insets specified in double precision.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jhotdraw.geom.Insets2D
Insets2D.Double, Insets2D.Float
 
Field Summary
 double bottom
           
 double left
           
 double right
           
 double top
           
 
Constructor Summary
Insets2D.Double()
          Constructs and initializes an Insets2D with all insets set to 0.
Insets2D.Double(double top, double left, double bottom, double 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.
 
Methods inherited from class org.jhotdraw.geom.Insets2D
add, add, addTo, clone, equals, hashCode, set, subtract, subtract, subtractTo
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

top

public double top

left

public double left

bottom

public double bottom

right

public double right
Constructor Detail

Insets2D.Double

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


Insets2D.Double

public Insets2D.Double(double top,
                       double left,
                       double bottom,
                       double 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.

Copyright 1996-2007 (c) JHotDraw.org.
Some rights reserved.