public static final class XDimension2D.Double extends Dimension2D implements Serializable
Dimension2D. This class is temporary; it will disappear
if JavaSoft implements Dimension2D.Float and Dimension2D.Double.| Modifier and Type | Field and Description |
|---|---|
double |
height
The height.
|
double |
width
The width.
|
| Constructor and Description |
|---|
Double()
Construct a new dimension initialized to (0,0).
|
Double(double w,
double h)
Construct a new dimension with the specified values.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getHeight()
Returns the height.
|
double |
getWidth()
Returns the width.
|
void |
setSize(double w,
double h)
Set width and height for this dimension.
|
String |
toString()
Returns a string representation of this dimension.
|
clone, setSizepublic Double()
public Double(double w,
double h)
w - The width.h - The height.public void setSize(double w,
double h)
setSize in class Dimension2Dw - The width.h - The height.public double getWidth()
getWidth in class Dimension2Dpublic double getHeight()
getHeight in class Dimension2DCopyright © 1996–2019 Geotools. All rights reserved.