de.erichseifert.gral.util
Class Dimension2D.Double
java.lang.Object
java.awt.geom.Dimension2D
de.erichseifert.gral.util.Dimension2D
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.
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. |
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.
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.