de.erichseifert.gral.util
Class Dimension2D.Double

java.lang.Object
  extended by java.awt.geom.Dimension2D
      extended by de.erichseifert.gral.util.Dimension2D
          extended by de.erichseifert.gral.util.Dimension2D.Double
All Implemented Interfaces:
Cloneable
Enclosing class:
Dimension2D

public static class Dimension2D.Double
extends Dimension2D

Class that stores double values.


Nested Class Summary
 
Nested classes/interfaces inherited from class de.erichseifert.gral.util.Dimension2D
Dimension2D.Double
 
Constructor Summary
Dimension2D.Double()
          Creates a new Dimension2D object with zero width and height.
Dimension2D.Double(double width, double height)
          Creates a new Dimension2D object with the specified width and height.
 
Method Summary
 boolean equals(Object obj)
           
 double getHeight()
           
 double getWidth()
           
 int hashCode()
           
 void setSize(double width, double height)
           
 String toString()
           
 
Methods inherited from class java.awt.geom.Dimension2D
clone, setSize
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dimension2D.Double

public Dimension2D.Double()
Creates a new Dimension2D object with zero width and height.


Dimension2D.Double

public Dimension2D.Double(double width,
                          double height)
Creates a new Dimension2D object with the specified width and height.

Parameters:
width - Width.
height - Height.
Method Detail

getHeight

public double getHeight()
Specified by:
getHeight in class Dimension2D

getWidth

public double getWidth()
Specified by:
getWidth in class Dimension2D

setSize

public void setSize(double width,
                    double height)
Specified by:
setSize in class Dimension2D

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.