public abstract class Dimension3D extends java.lang.Object implements java.lang.Cloneable
Dimension3D
class is to encapsulate a 3D dimension (X,Y,Z).Modifier and Type | Class and Description |
---|---|
static class |
Dimension3D.Double |
static class |
Dimension3D.Float |
static class |
Dimension3D.Integer |
Constructor and Description |
---|
Dimension3D() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Creates a new object of the same class as this object.
|
boolean |
equals(java.lang.Object obj) |
abstract double |
getSizeX()
Returns the size of the X dimension in double precision.
|
abstract double |
getSizeY()
Returns the size of the Y dimension in double precision.
|
abstract double |
getSizeZ()
Returns the size of the Z 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 boolean |
isInfiniteZ()
Returns
true if the Z dimension should be considered as infinite. |
void |
setSize(Dimension3D d)
Sets the size of this
Dimension3D object to match the specified size. |
abstract void |
setSize(double sizeX,
double sizeY,
double sizeZ)
Sets the size of this
Dimension3D object. |
abstract void |
setSizeX(double value)
Sets the size of the X dimension of this
Dimension3D in double
precision. |
abstract void |
setSizeY(double value)
Sets the size of the Y dimension of this
Dimension3D in double
precision. |
abstract void |
setSizeZ(double value)
Sets the size of the Z dimension of this
Dimension3D in double
precision. |
abstract java.awt.geom.Dimension2D |
toDimension2D()
Convert to 2D dimension.
|
Dimension3D.Integer |
toInteger()
Returns an integer
Dimension3D that encloses the double Dimension3D . |
java.lang.String |
toString() |
public Dimension3D()
public abstract double getSizeX()
public abstract double getSizeY()
public abstract double getSizeZ()
public abstract void setSizeX(double value)
Dimension3D
in double
precision.public abstract void setSizeY(double value)
Dimension3D
in double
precision.public abstract void setSizeZ(double value)
Dimension3D
in double
precision.public abstract void setSize(double sizeX, double sizeY, double sizeZ)
Dimension3D
object.sizeX
- the new size for the X dimensionsizeY
- the new size for the Y dimensionsizeZ
- the new size for the Z dimensionpublic void setSize(Dimension3D d)
Dimension3D
object to match the specified size.d
- the new size for the Dimension3D
objectpublic 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 abstract boolean isInfiniteZ()
true
if the Z dimension should be considered as infinite.public abstract java.awt.geom.Dimension2D toDimension2D()
public Dimension3D.Integer toInteger()
Dimension3D
that encloses the double Dimension3D
.Dimension3D.Integer
might also fail to completely enclose the
original double Dimension3D
if it overflows the limited range of the integer
data type.Dimension3D
that completely encloses
the actual double Dimension3D
.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
java.lang.OutOfMemoryError
- if there is not enough memory.Cloneable
public java.lang.String toString()
toString
in class java.lang.Object