com.partnersoft.maps.translator
Class MapDataPolyline
java.lang.Object
com.partnersoft.maps.translator.MapDataGraphic
com.partnersoft.maps.translator.MapDataPolyline
- All Implemented Interfaces:
- RoverConstants, java.io.Serializable
public class MapDataPolyline
- extends MapDataGraphic
A polyline with attached data.
- Author:
- Paul Reavis Copyright 2003 Partner Software, Inc.
- 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 com.partnersoft.maps.translator.MapDataGraphic |
clone, convertToEntity, getData, getDataType, getElectricalNode, getGraphicType, getIndexValues, getReducedData, isIndexed, isSelectable, pickleData, pickleObject, setData, setDataType, setElectricalNode, setGraphicType, setIndexed, setIndexValues, setReducedData, setSelectable, unpickleData, unpickleObject |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MapDataPolyline
public MapDataPolyline()
MapDataPolyline
public MapDataPolyline(DoubleBuffer coords,
Naming data)
MapDataPolyline
public MapDataPolyline(java.lang.String datatype,
java.lang.String graphicType,
DoubleBuffer coords,
Naming data)
MapDataPolyline
public MapDataPolyline(java.lang.String datatype,
java.lang.String graphicType,
XyPolyline xyPolyline,
Naming data)
- This constructor uses the more modern
com.partnersoft.geometry.xy.XyPolyline type.
- Parameters:
datatype - graphicType - xyPolyline - data -
MapDataPolyline
public MapDataPolyline(XyPoint... points)
MapDataPolyline
public MapDataPolyline(XyPolyline polyline)
pickleGraphic
public void pickleGraphic(ByteBuffer buffer)
- Overrides:
pickleGraphic in class MapDataGraphic
unpickleGraphic
public void unpickleGraphic(ByteBuffer buffer)
- Overrides:
unpickleGraphic in class MapDataGraphic
getGeometryType
public java.lang.String getGeometryType()
- Description copied from class:
MapDataGraphic
- The type of the graphic (e.g. "point", "polyline", etc.)
- Specified by:
getGeometryType in class MapDataGraphic
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object nother)
- Overrides:
equals in class java.lang.Object
convertToShapes
public java.util.List<RoverShape> convertToShapes(int dataId,
RoverSet roverSet)
- Specified by:
convertToShapes in class MapDataGraphic
clippedTo
public java.util.List<MapDataPolyline> clippedTo(XyBounds bounds)
getPolyline
public Polyline getPolyline()
- The actual polyline graphic.
setPolyline
public void setPolyline(Polyline argPolyline)
copyStateFrom
public void copyStateFrom(MapDataGraphic nother)
- Overrides:
copyStateFrom in class MapDataGraphic
getExtents
public Rectangle getExtents()
- Specified by:
getExtents in class MapDataGraphic
super_copyStateFrom
public void super_copyStateFrom(MapDataGraphic nother)