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