com.partnersoft.maps.model
Class MapGraphic

java.lang.Object
  extended by com.partnersoft.maps.model.MapGraphic
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MapPolyline

public abstract class MapGraphic
extends java.lang.Object
implements java.io.Serializable

A graphical GIS map entity consisting of geometry, data, style, and datatype.

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

Constructor Summary
MapGraphic()
           
 
Method Summary
 java.lang.Object clone()
          Clones this object.
 void copyStateFrom(MapGraphic nother)
          Override to implement state copying and cloning.
 int getDataID()
          Gets the value of dataID
 java.lang.String getDataType()
          Data type of the graphic, used to define the data fields, labels, etc.
abstract  java.lang.String getGeometryType()
          The type of geometry the graphic represents (e.g.
 java.lang.String getGraphicType()
          Thematic category of the graphic, used for legending.
 void setDataID(int argDataID)
          Sets the value of dataID
 void setDataType(java.lang.String newType)
           
 void setGraphicType(java.lang.String newType)
           
 java.lang.String toString()
          Returns the graphic type plus the text of the standard properties.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapGraphic

public MapGraphic()
Method Detail

getGeometryType

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


toString

public java.lang.String toString()
Returns the graphic type plus the text of the standard properties. You can easily extend this by calling super.toString and appending additional information.

Overrides:
toString in class java.lang.Object

clone

public java.lang.Object clone()
Clones this object. Don't override this method in subclasses; instead override copyStateFrom.

Overrides:
clone in class java.lang.Object

copyStateFrom

public void copyStateFrom(MapGraphic nother)
Override to implement state copying and cloning. Call super.copyStateFrom first to handle superclass state. Deep-copies data values and graphics information; only copies references to datatype, style, and legend.


getGraphicType

public java.lang.String getGraphicType()
Thematic category of the graphic, used for legending.


setGraphicType

public void setGraphicType(java.lang.String newType)

getDataType

public java.lang.String getDataType()
Data type of the graphic, used to define the data fields, labels, etc.


setDataType

public void setDataType(java.lang.String newType)

getDataID

public int getDataID()
Gets the value of dataID

Returns:
the value of dataID

setDataID

public void setDataID(int argDataID)
Sets the value of dataID

Parameters:
argDataID - Value to assign to this.dataID