@JsonObject(value="Geometry")
public final class Geometry
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static Geometry |
GEOMETRY_1536_32X48 |
static Geometry |
GEOMETRY_384_16X24 |
static Geometry |
GEOMETRY_96_8X12 |
Modifier and Type | Method and Description |
---|---|
static Geometry |
createFromCartesianDimensions(int[] cartesianDims)
Creates a new instance from the given cartesian dimensions.
|
static Geometry |
createFromCartesianDimensions(int maxX,
int maxY)
Creates a new instance from the given cartesian dimensions.
|
static Geometry |
createFromPlateGeometryString(java.lang.String plateGeometryStr)
Creates a new instance from the given number of rows and columns.
|
static Geometry |
createFromRowColDimensions(int numberOfRows,
int numberOfColumns)
Creates a new instance from the given number of rows and columns.
|
boolean |
equals(java.lang.Object obj) |
int[] |
getCartesianDimensions()
Returns the cartesian coordinates as an
int[] . |
int |
getDimX()
Returns the dimension on the x-axis.
|
int |
getDimY()
Returns the dimension on the y-axis.
|
int |
getHeight()
Returns the height.
|
int |
getNumberOfColumns()
Returns the number of columns.
|
int |
getNumberOfRows()
Returns the number of rows.
|
int |
getWidth()
Returns the width.
|
int |
hashCode() |
java.lang.String |
toPlateGeometryStr()
Renders this in the form
<width>X<height> . |
java.lang.String |
toString()
Renders this in the form
{<width>,<height>} . |
public static final Geometry GEOMETRY_96_8X12
public static final Geometry GEOMETRY_384_16X24
public static final Geometry GEOMETRY_1536_32X48
public static Geometry createFromCartesianDimensions(int maxX, int maxY)
public static Geometry createFromCartesianDimensions(int[] cartesianDims)
public static Geometry createFromRowColDimensions(int numberOfRows, int numberOfColumns)
public static Geometry createFromPlateGeometryString(java.lang.String plateGeometryStr)
public final int getWidth()
public final int getHeight()
public final int getNumberOfColumns()
public final int getNumberOfRows()
public final int getDimX()
public final int getDimY()
public final int[] getCartesianDimensions()
int[]
. The width is the x-dimension and
the height is the y-dimension.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toPlateGeometryStr()
<width>X<height>
.public java.lang.String toString()
{<width>,<height>}
.toString
in class java.lang.Object