com.partnersoft.io.formats.rover
Class RoverPolygon
java.lang.Object
com.partnersoft.io.formats.rover.RoverGraphic
com.partnersoft.io.formats.rover.RoverPolygon
- All Implemented Interfaces:
- RoverConstants, java.io.Serializable, java.lang.Comparable
public class RoverPolygon
- extends RoverGraphic
- 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, IMAGE, LIST, MASK_TYPECODE, NAMING, POINT, POINT_COLOR, POLYGON, POLYLINE, POP, PUSH, ROTATION_MULT, TEXEL_COORD_MAX, TEXEL_COORD_SIZE, TEXT, TEXT_LONG, TILE_COORD_MAX, TILE_SIZE_PIXELS, VALUE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RoverPolygon
public RoverPolygon()
RoverPolygon
public RoverPolygon(int graphicType,
long ID,
DoubleBuffer coords)
RoverPolygon
public RoverPolygon(int graphicType,
long ID,
XyPolygon polygon)
reduceDetail
public RoverPolygon reduceDetail(double granularity)
intersects
public boolean intersects(double x,
double y,
double width,
double height)
- Overrides:
intersects in class RoverGraphic
isChaff
public boolean isChaff()
- Description copied from class:
RoverGraphic
- If true then this graphic can be chucked - it is invalid or trivial for
some reason.
- Specified by:
isChaff in class RoverGraphic
lumpCode
public int lumpCode()
- Description copied from class:
RoverGraphic
- 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.
- Specified by:
lumpCode in class RoverGraphic
hasOffset
public boolean hasOffset()
- Specified by:
hasOffset in class RoverGraphic
hasRotation
public boolean hasRotation()
- Specified by:
hasRotation in class RoverGraphic
toXyPolygon
public XyPolygon toXyPolygon()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getPolygon
public XyPolygon getPolygon()
setPolygon
public void setPolygon(XyPolygon polygon)