public static class Dimension2D.Double extends Dimension2D
Dimension2D.Double
Constructor and Description |
---|
Double()
Constructor to build a Dimension2D.Double with size 0x0.
|
Double(Dimension2D d)
Constructor to build a Dimension2D.Double.
|
Double(double width,
double height)
Constructor to build a Dimension2D.Double.
|
Modifier and Type | Method and Description |
---|---|
double |
getHeight()
Method to return the Y size of this Dimension2D.Double.
|
double |
getWidth()
Method to return the X size of this Dimension2D.Double.
|
void |
setSize(java.awt.geom.Dimension2D d)
Method to set the size of this Dimension2D.Double.
|
void |
setSize(double width,
double height)
Method to set the size of this Dimension2D.Double.
|
java.lang.String |
toString()
Returns a printable version of this Dimension2D.Double.
|
public Double()
public Double(Dimension2D d)
d
- the size of this Dimension2D.Double.public Double(double width, double height)
width
- the width of this Dimension2D.Double.height
- the height of this Dimension2D.Double.public double getHeight()
getHeight
in class Dimension2D
public double getWidth()
getWidth
in class Dimension2D
public void setSize(java.awt.geom.Dimension2D d)
setSize
in class Dimension2D
public void setSize(double width, double height)
setSize
in class Dimension2D
public java.lang.String toString()
toString
in class java.lang.Object