public static class Rectangle5D.Integer extends Rectangle5D
Rectangle5D.Double, Rectangle5D.Float, Rectangle5D.Integer
Modifier and Type | Field and Description |
---|---|
int |
c |
int |
sizeC |
int |
sizeT |
int |
sizeX |
int |
sizeY |
int |
sizeZ |
int |
t |
int |
x |
int |
y |
int |
z |
Constructor and Description |
---|
Rectangle5D.Integer() |
Rectangle5D.Integer(int x,
int y,
int z,
int t,
int c,
int sizeX,
int sizeY,
int sizeZ,
int sizeT,
int sizeC) |
Rectangle5D.Integer(Rectangle5D.Integer r) |
Rectangle5D.Integer(Rectangle5D r) |
Modifier and Type | Method and Description |
---|---|
Rectangle5D |
createIntersection(Rectangle5D r)
Returns a new
Rectangle5D object representing the intersection of this
Rectangle5D with the specified Rectangle5D . |
Rectangle5D |
createUnion(Rectangle5D r)
Returns a new
Rectangle5D object representing the union of this
Rectangle5D with the specified Rectangle5D . |
double |
getC()
Returns the minimum C coordinate.
|
Dimension5D.Integer |
getDimension()
Returns the dimension.
|
Point5D.Integer |
getPosition()
Returns the point coordinate.
|
double |
getSizeC()
Returns the size of C dimension.
|
double |
getSizeT()
Returns the size of T dimension.
|
double |
getSizeX()
Returns the size of X dimension.
|
double |
getSizeY()
Returns the size of Y dimension.
|
double |
getSizeZ()
Returns the size of Z dimension.
|
double |
getT()
Returns the minimum T coordinate.
|
double |
getX()
Returns the minimum X coordinate.
|
double |
getY()
Returns the minimum Y coordinate.
|
double |
getZ()
Returns the minimum Z coordinate.
|
void |
setC(double value)
Sets the minimum C coordinate.
|
void |
setRect(double x,
double y,
double z,
double t,
double c,
double sizeX,
double sizeY,
double sizeZ,
double sizeT,
double sizeC)
Sets the bounds of this
Rectangle5D to the integer bounds
which encompass the specified double bounds. |
void |
setRect(int x,
int y,
int z,
int t,
int c,
int sizeX,
int sizeY,
int sizeZ,
int sizeT,
int sizeC)
Sets the position and size of this
Rectangle5D to the specified
integer values. |
void |
setSizeC(double value)
Sets the size of C dimension.
|
void |
setSizeT(double value)
Sets the size of T dimension.
|
void |
setSizeX(double value)
Sets the size of X dimension.
|
void |
setSizeY(double value)
Sets the size of Y dimension.
|
void |
setSizeZ(double value)
Sets the size of Z dimension.
|
void |
setT(double value)
Sets the minimum T coordinate.
|
void |
setX(double value)
Sets the minimum X coordinate.
|
void |
setY(double value)
Sets the minimum Y coordinate.
|
void |
setZ(double value)
Sets the minimum Z coordinate.
|
Rectangle5D.Integer |
toInteger()
Returns an integer
Rectangle5D that completely encloses the
double Rectangle . |
java.awt.geom.Rectangle2D |
toRectangle2D()
Convert to 2D rectangle
|
Rectangle3D |
toRectangle3D()
Convert to 3D rectangle
|
Rectangle4D |
toRectangle4D()
Convert to 4D rectangle
|
add, add, add, clone, contains, contains, contains, equals, getCenterC, getCenterT, getCenterX, getCenterY, getCenterZ, getMaxC, getMaxT, getMaxX, getMaxY, getMaxZ, getMinC, getMinT, getMinX, getMinY, getMinZ, hashCode, intersect, intersects, intersects, isEmpty, isInfiniteC, isInfiniteT, isInfiniteX, isInfiniteY, isInfiniteZ, setInfiniteC, setInfiniteT, setInfiniteX, setInfiniteY, setInfiniteZ, toString, union
public int x
public int y
public int z
public int t
public int c
public int sizeX
public int sizeY
public int sizeZ
public int sizeT
public int sizeC
public Rectangle5D.Integer(int x, int y, int z, int t, int c, int sizeX, int sizeY, int sizeZ, int sizeT, int sizeC)
public Rectangle5D.Integer(Rectangle5D.Integer r)
public Rectangle5D.Integer(Rectangle5D r)
public Rectangle5D.Integer()
public void setRect(double x, double y, double z, double t, double c, double sizeX, double sizeY, double sizeZ, double sizeT, double sizeC)
Rectangle5D
to the integer bounds
which encompass the specified double bounds.setRect
in class Rectangle5D
x
- the X coordinate of the minimum corner position of this Rectangle5D
y
- the Y coordinate of the minimum corner position of this Rectangle5D
z
- the Z coordinate of the minimum corner position of this Rectangle5D
t
- the T coordinate of the minimum corner position of this Rectangle5D
c
- the C coordinate of the minimum corner position of this Rectangle5D
sizeX
- size for X dimension of this Rectangle5D
sizeY
- size for Y dimension of this Rectangle5D
sizeZ
- size for Z dimension of this Rectangle5D
sizeT
- size for T dimension of this Rectangle5D
sizeC
- size for C dimension of this Rectangle5D
public void setRect(int x, int y, int z, int t, int c, int sizeX, int sizeY, int sizeZ, int sizeT, int sizeC)
Rectangle5D
to the specified
integer
values.x
- the X coordinate of the minimum corner position of this Rectangle5D
y
- the Y coordinate of the minimum corner position of this Rectangle5D
z
- the Z coordinate of the minimum corner position of this Rectangle5D
t
- the T coordinate of the minimum corner position of this Rectangle5D
c
- the C coordinate of the minimum corner position of this Rectangle5D
sizeX
- size for X dimension of this Rectangle5D
sizeY
- size for Y dimension of this Rectangle5D
sizeZ
- size for Z dimension of this Rectangle5D
sizeT
- size for T dimension of this Rectangle5D
sizeC
- size for C dimension of this Rectangle5D
public double getX()
Rectangle5D
getX
in class Rectangle5D
public void setX(double value)
Rectangle5D
setX
in class Rectangle5D
public double getY()
Rectangle5D
getY
in class Rectangle5D
public void setY(double value)
Rectangle5D
setY
in class Rectangle5D
public double getZ()
Rectangle5D
getZ
in class Rectangle5D
public void setZ(double value)
Rectangle5D
setZ
in class Rectangle5D
public double getT()
Rectangle5D
getT
in class Rectangle5D
public void setT(double value)
Rectangle5D
setT
in class Rectangle5D
public double getC()
Rectangle5D
getC
in class Rectangle5D
public void setC(double value)
Rectangle5D
setC
in class Rectangle5D
public double getSizeX()
Rectangle5D
getSizeX
in class Rectangle5D
public void setSizeX(double value)
Rectangle5D
setSizeX
in class Rectangle5D
public double getSizeY()
Rectangle5D
getSizeY
in class Rectangle5D
public void setSizeY(double value)
Rectangle5D
setSizeY
in class Rectangle5D
public double getSizeZ()
Rectangle5D
getSizeZ
in class Rectangle5D
public void setSizeZ(double value)
Rectangle5D
setSizeZ
in class Rectangle5D
public double getSizeT()
Rectangle5D
getSizeT
in class Rectangle5D
public void setSizeT(double value)
Rectangle5D
setSizeT
in class Rectangle5D
public double getSizeC()
Rectangle5D
getSizeC
in class Rectangle5D
public void setSizeC(double value)
Rectangle5D
setSizeC
in class Rectangle5D
public Point5D.Integer getPosition()
Rectangle5D
getPosition
in class Rectangle5D
public Dimension5D.Integer getDimension()
Rectangle5D
getDimension
in class Rectangle5D
public Rectangle5D.Integer toInteger()
Rectangle5D
Rectangle5D
that completely encloses the
double Rectangle
. The returned Rectangle
might also fail to
completely enclose the original double Rectangle
if it overflows
the limited range of the integer data type.toInteger
in class Rectangle5D
Rectangle
that completely encloses
the actual double Rectangle
.public Rectangle5D createIntersection(Rectangle5D r)
Rectangle5D
Rectangle5D
object representing the intersection of this
Rectangle5D
with the specified Rectangle5D
.createIntersection
in class Rectangle5D
r
- the Rectangle5D
to be intersected with this Rectangle5D
Rectangle5D
contained in both the specified
Rectangle5D
and in this Rectangle5D
.public Rectangle5D createUnion(Rectangle5D r)
Rectangle5D
Rectangle5D
object representing the union of this
Rectangle5D
with the specified Rectangle5D
.createUnion
in class Rectangle5D
r
- the Rectangle5D
to be combined with this Rectangle5D
Rectangle5D
containing both the specified
Rectangle5D
and this Rectangle5D
.public java.awt.geom.Rectangle2D toRectangle2D()
Rectangle5D
toRectangle2D
in class Rectangle5D
public Rectangle3D toRectangle3D()
Rectangle5D
toRectangle3D
in class Rectangle5D
public Rectangle4D toRectangle4D()
Rectangle5D
toRectangle4D
in class Rectangle5D