de.erichseifert.gral.util
Class Insets2D.Double

java.lang.Object
  extended by de.erichseifert.gral.util.Insets2D
      extended by de.erichseifert.gral.util.Insets2D.Double
Enclosing class:
Insets2D

public static class Insets2D.Double
extends Insets2D

Class that stores insets as double values.


Nested Class Summary
 
Nested classes/interfaces inherited from class de.erichseifert.gral.util.Insets2D
Insets2D.Double
 
Constructor Summary
Insets2D.Double()
          Creates a new Insets2D object with zero insets.
Insets2D.Double(double inset)
          Creates a new Insets2D object with the specified insets in all directions.
Insets2D.Double(double top, double left, double bottom, double right)
          Creates a new Insets2D object with the specified insets.
 
Method Summary
 boolean equals(Object obj)
           
 double getBottom()
          Returns the insets at the bottom.
 double getLeft()
          Returns the insets at the left.
 double getRight()
          Returns the insets at the right.
 double getTop()
          Returns the insets at the top.
 int hashCode()
           
 void setInsets(double top, double left, double bottom, double right)
          Sets the insets to the specified values.
 void setInsets(Insets2D insets)
          Sets the insets according to the specified insets.
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Insets2D.Double

public Insets2D.Double()
Creates a new Insets2D object with zero insets.


Insets2D.Double

public Insets2D.Double(double inset)
Creates a new Insets2D object with the specified insets in all directions.

Parameters:
inset - Inset value.

Insets2D.Double

public Insets2D.Double(double top,
                       double left,
                       double bottom,
                       double right)
Creates a new Insets2D object with the specified insets.

Parameters:
top - Top insets.
left - Left insets.
bottom - Bottom insets.
right - Right insets.
Method Detail

getTop

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

Specified by:
getTop in class Insets2D
Returns:
Top insets.

getLeft

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

Specified by:
getLeft in class Insets2D
Returns:
Left insets.

getBottom

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

Specified by:
getBottom in class Insets2D
Returns:
Bottom insets.

getRight

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

Specified by:
getRight in class Insets2D
Returns:
Right insets.

setInsets

public void setInsets(Insets2D insets)
Description copied from class: Insets2D
Sets the insets according to the specified insets.

Specified by:
setInsets in class Insets2D
Parameters:
insets - Insets to be set.

setInsets

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

Specified by:
setInsets in class Insets2D
Parameters:
top - Top insets.
left - Left insets.
bottom - Bottom insets.
right - Right insets.

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009-2010. All Rights Reserved.