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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleprivate static final longprivate double -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Dimension2DDouble(double width, double height) Main constructor. -
Method Summary
Methods inherited from class java.awt.geom.Dimension2D
clone, setSize
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
width
private double width -
height
private double height
-
-
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:
getWidthin classDimension2D
-
getHeight
public double getHeight()- Specified by:
getHeightin classDimension2D
-
setSize
public void setSize(double w, double h) - Specified by:
setSizein classDimension2D
-
equals
-
hashCode
public int hashCode() -
toString
-