Size2D.Float
Contents
[
Hide
]Inheritance: java.lang.Object, java.awt.geom.Dimension2D, com.aspose.tex.Size2D
All Implemented Interfaces: java.io.Serializable
public static class Size2D.Float extends Size2D implements Serializable
The Float
class defines dimensions specified in float coordinates.
Constructors
Constructor | Description |
---|---|
Float() | Creates the Size2D instance. |
Float(float width, float height) | Creates the Size2D instance. |
Fields
Field | Description |
---|---|
width | The width of this Size2D . |
height | The height of this Size2D . |
Methods
Method | Description |
---|---|
setSize(float w, float h) | Sets the dimensions of this Size2D to the specified float values. |
setSize(double w, double h) | {@inheritDoc} |
getWidth() | {@inheritDoc} |
getHeight() | {@inheritDoc} |
Float()
public Float()
Creates the Size2D instance.
Float(float width, float height)
public Float(float width, float height)
Creates the Size2D instance.
Parameters:
Parameter | Type | Description |
---|---|---|
width | float | The width. |
height | float | The height. |
width
public float width
The width of this Size2D
.
height
public float height
The height of this Size2D
.
setSize(float w, float h)
public void setSize(float w, float h)
Sets the dimensions of this Size2D
to the specified float
values.
Parameters:
Parameter | Type | Description |
---|---|---|
w | float | The width of this Size2D |
h | float | The height of this Size2D |
setSize(double w, double h)
public void setSize(double w, double h)
Parameters:
Parameter | Type | Description |
---|---|---|
w | double | |
h | double |
getWidth()
public double getWidth()
Returns: double
getHeight()
public double getHeight()
Returns: double