public static class Dimension2D.Float extends Dimension2D
Dimension2D.Double, Dimension2D.Float
Constructor and Description |
---|
Dimension2D.Float() |
Dimension2D.Float(float[] sizeXY) |
Dimension2D.Float(float sizeX,
float sizeY) |
Modifier and Type | Method and Description |
---|---|
double |
getHeight() |
double |
getWidth() |
boolean |
isInfiniteX()
Returns
true if the X dimension should be considered as infinite. |
boolean |
isInfiniteY()
Returns
true if the Y dimension should be considered as infinite. |
void |
setSize(double sizeX,
double sizeY)
Sets the size of this
Dimension2D object. |
void |
setSizeX(double value)
Sets the size of the X dimension of this
Dimension2D in double
precision. |
void |
setSizeY(double value)
Sets the size of the Y dimension of this
Dimension2D in double
precision. |
public Dimension2D.Float(float sizeX, float sizeY)
public Dimension2D.Float(float[] sizeXY)
public Dimension2D.Float()
public double getWidth()
getWidth
in class java.awt.geom.Dimension2D
public double getHeight()
getHeight
in class java.awt.geom.Dimension2D
public void setSize(double sizeX, double sizeY)
Dimension2D
Dimension2D
object.setSize
in class Dimension2D
sizeX
- the new size for the X dimensionsizeY
- the new size for the Y dimensionpublic void setSizeX(double value)
Dimension2D
Dimension2D
in double
precision.setSizeX
in class Dimension2D
public void setSizeY(double value)
Dimension2D
Dimension2D
in double
precision.setSizeY
in class Dimension2D
public boolean isInfiniteX()
Dimension2D
true
if the X dimension should be considered as infinite.isInfiniteX
in class Dimension2D
public boolean isInfiniteY()
Dimension2D
true
if the Y dimension should be considered as infinite.isInfiniteY
in class Dimension2D