com.partnersoft.io.formats.rover
Class RoverGraphic
java.lang.Object
com.partnersoft.io.formats.rover.RoverGraphic
- All Implemented Interfaces:
- RoverConstants, java.io.Serializable, java.lang.Comparable
- Direct Known Subclasses:
- RoverPoint, RoverPointColor, RoverPolygon, RoverPolyline, RoverText
public abstract class RoverGraphic
- extends java.lang.Object
- implements java.lang.Comparable, RoverConstants, java.io.Serializable
- See Also:
- Serialized Form
| Fields inherited from interface com.partnersoft.io.formats.rover.RoverConstants |
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, LIST, MASK_TYPECODE, NAMING, POINT, POINT_COLOR, POLYGON, POLYLINE, POP, PUSH, RENDER_FINDITEM, RENDER_INDICATION, RENDER_NORMAL, RENDER_SELECTION, ROTATION_MULT, TEXEL_COORD_MAX, TEXEL_COORD_SIZE, TEXT, TILE_COORD_MAX, TILE_SIZE_PIXELS, VALUE |
|
Method Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID
public long ID
graphicType
public int graphicType
x
public double x
y
public double y
RoverGraphic
public RoverGraphic()
calculateLumpCode
protected static int calculateLumpCode(int typeCode,
int graphicType,
boolean hasData,
boolean hasOffset,
boolean hasRotation,
int miscellany)
hasData
public boolean hasData()
lumpCode
public abstract int lumpCode()
- This is an integer hash code that indicates both lumpability and sort order.
Items that can be lumped should have the same lumpCode, and the
value of the lumpCode should indicate the order that lumps
should be placed in.
isChaff
public abstract boolean isChaff()
- If true then this graphic can be chucked - it is invalid or
trivial for some reason.
hasOffset
public abstract boolean hasOffset()
hasRotation
public abstract boolean hasRotation()
intersects
public boolean intersects(double x,
double y,
double width,
double height)
compareTo
public int compareTo(java.lang.Object nother)
- This is first based on lumpCode, then if they match is
based on an x/y ordering.
- Specified by:
compareTo in interface java.lang.Comparable