public abstract class Dimension2D extends java.awt.geom.Dimension2D
Dimension2D
class is to encapsulate a 2D dimension (X,Y).Modifier and Type | Class and Description |
---|---|
static class |
Dimension2D.Double |
static class |
Dimension2D.Float |
Constructor and Description |
---|
Dimension2D() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.awt.Dimension |
getDimInt()
Returns an integer
Dimension that encloses the double Dimension2D . |
double |
getSizeX()
Returns the size of the X dimension in double precision.
|
double |
getSizeY()
Returns the size of the Y dimension in double precision.
|
abstract boolean |
isInfiniteX()
Returns
true if the X dimension should be considered as infinite. |
abstract boolean |
isInfiniteY()
Returns
true if the Y dimension should be considered as infinite. |
abstract void |
setSize(double sizeX,
double sizeY)
Sets the size of this
Dimension2D object. |
abstract void |
setSizeX(double value)
Sets the size of the X dimension of this
Dimension2D in double
precision. |
abstract void |
setSizeY(double value)
Sets the size of the Y dimension of this
Dimension2D in double
precision. |
java.lang.String |
toString() |
public Dimension2D()
public double getSizeX()
Dimension2D.getWidth()
Dimension2D.getWidth()
public double getSizeY()
Dimension2D.getHeight()
Dimension2D.getHeight()
public abstract void setSizeX(double value)
Dimension2D
in double
precision.public abstract void setSizeY(double value)
Dimension2D
in double
precision.public abstract void setSize(double sizeX, double sizeY)
Dimension2D
object.setSize
in class java.awt.geom.Dimension2D
sizeX
- the new size for the X dimensionsizeY
- the new size for the Y dimensionpublic java.awt.Dimension getDimInt()
Dimension
that encloses the double Dimension2D
.Dimension
might also fail to completely enclose the original double
Dimension2D
if it overflows the limited range of the integer data type.Dimension
that completely encloses
the actual double Dimension2D
.public abstract boolean isInfiniteX()
true
if the X dimension should be considered as infinite.public abstract boolean isInfiniteY()
true
if the Y dimension should be considered as infinite.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object