com.partnersoft.maps.translator
Class MapDataGraphic

java.lang.Object
  extended by com.partnersoft.maps.translator.MapDataGraphic
All Implemented Interfaces:
RoverConstants, java.io.Serializable
Direct Known Subclasses:
MapDataGraphicList, MapDataImage, MapDataPoint, MapDataPointColor, MapDataPolygon, MapDataPolyline, MapDataText

public abstract class MapDataGraphic
extends java.lang.Object
implements java.io.Serializable, RoverConstants

A graphic with attached data, style name, and datatype name. Used throughout the translator to describe GIS/map data. Therefore some fields (especially style, datatype, and reduced data) may be null in early stages of the translation pipeline.

Author:
Paul Reavis Copyright 2002 Partner Software, Inc.
See Also:
Serialized Form

Field Summary
 boolean derived
           
 
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
 
Constructor Summary
MapDataGraphic()
           
 
Method Summary
 java.lang.Object clone()
           
 RoverEntity convertToEntity(int dataId, RoverSet roverSet)
           
abstract  java.util.List<RoverShape> convertToShapes(int dataId, RoverSet roverSet)
           
 void copyStateFrom(MapDataGraphic nother)
           
 Naming<java.lang.Object> getData()
          Data set for this graphic.
 java.lang.String getDataType()
          Name of this graphic's datatype.
 TranslatorElectricalConnectivityNode getElectricalNode()
           
abstract  Rectangle getExtents()
           
abstract  java.lang.String getGeometryType()
          The type of the graphic (e.g.
 java.lang.String getGraphicType()
          Name of this graphic's graphictype.
 Naming<NameSet> getIndexValues()
          Gets the value of indexValues
 java.util.ArrayList getReducedData()
          Reduced data set for this graphic.
 boolean isIndexed()
           
 boolean isSelectable()
           
 void pickleData(ByteBuffer buffer)
           
 void pickleGraphic(ByteBuffer buffer)
           
 void pickleObject(java.lang.Object victim, ByteBuffer output)
           
 void setData(Naming<java.lang.Object> argData)
           
 void setDataType(java.lang.String argDataType)
           
 void setElectricalNode(TranslatorElectricalConnectivityNode electricalNode)
           
 void setGraphicType(java.lang.String argGraphicType)
           
 void setIndexed(boolean tizit)
           
 void setIndexValues(Naming<NameSet> argIndexValues)
          Sets the value of indexValues
 void setReducedData(java.util.ArrayList argReducedData)
           
 void setSelectable(boolean selectable)
           
 void unpickleData(ByteBuffer buffer)
           
 void unpickleGraphic(ByteBuffer buffer)
           
 java.lang.Object unpickleObject(ByteBuffer input)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

derived

public boolean derived
Constructor Detail

MapDataGraphic

public MapDataGraphic()
Method Detail

pickleGraphic

public void pickleGraphic(ByteBuffer buffer)

unpickleGraphic

public void unpickleGraphic(ByteBuffer buffer)

pickleData

public void pickleData(ByteBuffer buffer)

unpickleData

public void unpickleData(ByteBuffer buffer)

pickleObject

public void pickleObject(java.lang.Object victim,
                         ByteBuffer output)

unpickleObject

public java.lang.Object unpickleObject(ByteBuffer input)

getGeometryType

public abstract java.lang.String getGeometryType()
The type of the graphic (e.g. "point", "polyline", etc.)


getDataType

public java.lang.String getDataType()
Name of this graphic's datatype. May be null for early stages of translation.


setDataType

public void setDataType(java.lang.String argDataType)

getGraphicType

public java.lang.String getGraphicType()
Name of this graphic's graphictype. May be null for early stages of translation.


setGraphicType

public void setGraphicType(java.lang.String argGraphicType)

getData

public Naming<java.lang.Object> getData()
Data set for this graphic. Data is a case-insensitive map indexed on the name of the data field. Field contents vary widely. Always present.


setData

public void setData(Naming<java.lang.Object> argData)

getReducedData

public java.util.ArrayList getReducedData()
Reduced data set for this graphic. Expressed as a list of values; order and name of fields is determined by the datatype configuration. This is null until the reduction stage of translation.


setReducedData

public void setReducedData(java.util.ArrayList argReducedData)

getIndexValues

public Naming<NameSet> getIndexValues()
Gets the value of indexValues

Returns:
the value of indexValues

setIndexValues

public void setIndexValues(Naming<NameSet> argIndexValues)
Sets the value of indexValues

Parameters:
argIndexValues - Value to assign to this.indexValues

isIndexed

public boolean isIndexed()

setIndexed

public void setIndexed(boolean tizit)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

copyStateFrom

public void copyStateFrom(MapDataGraphic nother)

getExtents

public abstract Rectangle getExtents()

convertToEntity

public RoverEntity convertToEntity(int dataId,
                                   RoverSet roverSet)

convertToShapes

public abstract java.util.List<RoverShape> convertToShapes(int dataId,
                                                           RoverSet roverSet)

getElectricalNode

public TranslatorElectricalConnectivityNode getElectricalNode()

setElectricalNode

public void setElectricalNode(TranslatorElectricalConnectivityNode electricalNode)

isSelectable

public boolean isSelectable()

setSelectable

public void setSelectable(boolean selectable)