Size2D.Float

Inheritance: java.lang.Object, java.awt.geom.Dimension2D, com.aspose.xps.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

ConstructorDescription
Float()Creates the Size2D instance.
Float(float width, float height)Creates the Size2D instance.

Fields

FieldDescription
widthThe width of this Size2D.
heightThe height of this Size2D.

Methods

MethodDescription
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:

ParameterTypeDescription
widthfloatThe width.
heightfloatThe 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:

ParameterTypeDescription
wfloatThe width of this Size2D
hfloatThe height of this Size2D

setSize(double w, double h)

public void setSize(double w, double h)

Parameters:

ParameterTypeDescription
wdouble
hdouble

getWidth()

public double getWidth()

Returns: double

getHeight()

public double getHeight()

Returns: double