public static class Size2D.Float extends Size2D implements Serializable
Float
class defines dimensions specified in float
coordinates.Size2D.Float
Modifier and Type | Field and Description |
---|---|
float |
height
The height of this
Size2D . |
float |
width
The width of this
Size2D . |
Constructor and Description |
---|
Float()
Creates the Size2D instance.
|
Float(float width,
float height)
Creates the Size2D instance.
|
Modifier and Type | Method and Description |
---|---|
double |
getHeight() |
double |
getWidth() |
void |
setSize(double w,
double h) |
void |
setSize(float w,
float h)
Sets the dimensions of this
Size2D
to the specified float values. |
clone, setSize
public float width
Size2D
.public float height
Size2D
.public Float()
Creates the Size2D instance.
public Float(float width, float height)
Creates the Size2D instance.
width
- The width.height
- The height.public void setSize(float w, float h)
Size2D
to the specified float
values.w
- The width of this Size2D
h
- The height of this Size2D
public void setSize(double w, double h)
setSize
in class Dimension2D
public double getWidth()
getWidth
in class Dimension2D
public double getHeight()
getHeight
in class Dimension2D
Copyright © 2019 Aspose. All Rights Reserved.