Package org.apache.xmlgraphics.java2d
Class Dimension2DDouble
java.lang.Object
java.awt.geom.Dimension2D
org.apache.xmlgraphics.java2d.Dimension2DDouble
- All Implemented Interfaces:
Serializable
,Cloneable
Subclass of Dimension2D which takes double values.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Dimension2DDouble
(double width, double height) Main constructor. -
Method Summary
Methods inherited from class java.awt.geom.Dimension2D
clone, setSize
-
Constructor Details
-
Dimension2DDouble
public Dimension2DDouble()Default constructor. -
Dimension2DDouble
public Dimension2DDouble(double width, double height) Main constructor.- Parameters:
width
- initial widthheight
- initial height
-
-
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 w, double h) - Specified by:
setSize
in classDimension2D
-
equals
-
hashCode
public int hashCode() -
toString
-