public abstract class RoverGraphic extends java.lang.Object implements java.lang.Comparable, RoverConstants, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
int |
graphicType |
long |
ID |
double |
x |
double |
y |
ALIGN_BOTTOM_CENTER, ALIGN_BOTTOM_FIT, ALIGN_BOTTOM_LEFT, ALIGN_BOTTOM_RIGHT, ALIGN_CENTER, ALIGN_CENTER_LEFT, ALIGN_CENTER_RIGHT, ALIGN_CODE_CENTER, ALIGN_CODE_FIT, ALIGN_CODE_HIGH, ALIGN_CODE_LOW, ALIGN_FIT, ALIGN_FIT_LEFT, ALIGN_FIT_RIGHT, ALIGN_TOP_CENTER, ALIGN_TOP_FIT, ALIGN_TOP_LEFT, ALIGN_TOP_RIGHT, COMMENT, DATA_FIELDS_MAX, EOF, FLOAT_COORDS, GEOMETRY_TYPE_NAMES, HAS_DATA, HAS_OFFSET, HAS_ROTATION, IMAGE, LIST, LUMP_CODE_TYPE_AREA, LUMP_CODE_TYPE_IMAGE, LUMP_CODE_TYPE_LINE, LUMP_CODE_TYPE_POINT, LUMP_CODE_TYPE_TEXT, MASK_TYPECODE, NAMING, POINT, POINT_COLOR, POLYGON, POLYLINE, POP, PUSH, ROTATION_MULT, TEXEL_COORD_MAX, TEXT, TEXT_LONG, TILE_COORD_MAX, TILE_SIZE_PIXELS, VALUE| Constructor and Description |
|---|
RoverGraphic() |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
calculateLumpCode(int typeCode,
int graphicType,
boolean hasData,
boolean hasOffset,
boolean hasRotation,
int miscellany) |
int |
compareTo(java.lang.Object nother)
This is first based on lumpCode, then if they match is based on an x/y
ordering.
|
boolean |
hasData() |
abstract boolean |
hasOffset() |
abstract boolean |
hasRotation() |
boolean |
intersects(double x,
double y,
double width,
double height) |
abstract boolean |
isChaff()
If true then this graphic can be chucked - it is invalid or trivial for
some reason.
|
abstract int |
lumpCode()
This is an integer hash code that indicates both lumpability and sort
order.
|
public long ID
public int graphicType
public double x
public double y
protected static int calculateLumpCode(int typeCode,
int graphicType,
boolean hasData,
boolean hasOffset,
boolean hasRotation,
int miscellany)
public boolean hasData()
public abstract int lumpCode()
public abstract boolean isChaff()
public abstract boolean hasOffset()
public abstract boolean hasRotation()
public boolean intersects(double x,
double y,
double width,
double height)
public int compareTo(java.lang.Object nother)
compareTo in interface java.lang.Comparable