Package com.levigo.jadice.document.util
Class FloatDimension
java.lang.Object
java.awt.geom.Dimension2D
com.levigo.jadice.document.util.FloatDimension
- All Implemented Interfaces:
Cloneable
A float-based extension of
Dimension2D
, because there is none in the JDK RT library. Can
you believe it?-
Constructor Summary
ConstructorsConstructorDescriptionFloatDimension
(double w, double h) Using this constructor will down-cast the provided double-arguments.FloatDimension
(float w, float h) -
Method Summary
Methods inherited from class java.awt.geom.Dimension2D
clone, setSize
-
Constructor Details
-
FloatDimension
public FloatDimension() -
FloatDimension
public FloatDimension(float w, float h) -
FloatDimension
-
FloatDimension
public FloatDimension(double w, double h) Using this constructor will down-cast the provided double-arguments.- Parameters:
w
-h
-
-
-
Method Details
-
getWidth
public double getWidth()- Specified by:
getWidth
in classDimension2D
-
getHeight
public double getHeight()- Specified by:
getHeight
in classDimension2D
-
setSize
public void setSize(double width, double height) - Specified by:
setSize
in classDimension2D
-
hashCode
public int hashCode() -
equals
-