public static final class XDimension2D.Float 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 |
|---|---|
float |
height
The height.
|
float |
width
The width.
|
| Constructor and Description |
|---|
Float()
Construct a new dimension initialized to (0,0).
|
Float(float w,
float 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 Float()
public Float(float w,
float 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.