com.partnersoft.maps.model
Class RoverSet

java.lang.Object
  extended by com.partnersoft.maps.model.RoverSet
Direct Known Subclasses:
JobRoverSet, OpsRoverSet, TiledRoverSet

public abstract class RoverSet
extends java.lang.Object

A RoverSet is the published data from one or more MapSets. It is in compact, renderable form, using IDs instead of strings for graphic types and datatypes. Implementators should generally start with AbstractRoverSet. Implementations include TiledRoverSet, DiskRoverSet, MemoryRoverSet, and SQLRoverSet.

Author:
Paul Reavis Copyright 2005 Partner Software, Inc.

Field Summary
 byte[] areaToGroup
           
protected  NamedGoedels areaTypes
           
protected  ChangeGadget changeGadget
           
protected  Naming connectivities
           
protected  Naming detailLegends
           
protected  boolean enabled
           
protected  Naming findItems
           
 NamedGoedels groups
           
protected  Naming legendAliases
           
 byte[] lineToGroup
           
protected  NamedGoedels lineTypes
           
protected  Naming lookups
           
protected  MapSet mapSet
           
 byte[] pointToGroup
           
protected  NamedGoedels pointTypes
           
protected  Naming printDetailLegends
           
protected  Naming printRenderLegends
           
protected  Naming renderLegends
           
 byte[] textToGroup
           
protected  NamedGoedels textTypes
           
 MapSetViewSettings viewSettings
           
 
Constructor Summary
RoverSet(MapSet mapSet)
           
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener nosey)
           
 int areaTypeCodeFor(java.lang.String name)
           
 ElectricalConnectivity connectivityNamed(java.lang.String name)
           
abstract  MapDataItem dataFor(int dataID)
          This returns the MapDataItem with the given dataID.
 RenderLegend detailLegendFor(java.lang.String legendName, MapViewFrame frame)
          Returns the "detail" legend, which is used for highlights and other purposes.
 RenderLegend detailLegendFor(java.lang.String legendName, MapViewFrame frame, boolean printing)
           
 FindItemIndex findItemNamed(java.lang.String name)
           
 void fireChanged()
           
 NamedGoedels getAreaTypes()
          Returns the names and ids for each area graphic type.
abstract  int getDataItemCount()
          This returns the number of data items.
 Naming getFindItems()
           
 byte getGroupIDFor(java.lang.String graphicType)
           
 NamedGoedels getLineTypes()
          Returns the names and ids for each line graphic type.
 MapSet getMapSet()
           
 NamedGoedels getPointTypes()
          Returns the names and ids for each point graphic type.
 Naming getPrintRenderLegends()
           
 Naming getRenderLegends()
           
 NamedGoedels getTextTypes()
          Returns the names and ids for each text graphic type.
abstract  RoverBytes graphicsFor(int dataID)
          This returns the rover data necessary to render the map data item with the given dataID.
abstract  RoverBytes[] graphicsInside(MapViewFrame frame)
          This returns the rover data necessary to render a given area at the given scale.
 boolean isDrawable()
           
 boolean isEnabled()
           
 int lineTypeCodeFor(java.lang.String name)
           
 Lookup lookupNamed(java.lang.String name)
           
 int pointTypeCodeFor(java.lang.String name)
           
 void removeChangeListener(javax.swing.event.ChangeListener nosey)
           
 RenderLegend renderLegendFor(java.lang.String legendName, MapViewFrame frame)
          Returns the proper rendering legend for the given name and frame.
 RenderLegend renderLegendFor(java.lang.String legendName, MapViewFrame frame, boolean printing)
           
 void setEnabled(boolean tizit)
           
 int textTypeCodeFor(java.lang.String name)
           
protected  void updateGroups()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapSet

protected MapSet mapSet

changeGadget

protected ChangeGadget changeGadget

areaTypes

protected NamedGoedels areaTypes

lineTypes

protected NamedGoedels lineTypes

pointTypes

protected NamedGoedels pointTypes

textTypes

protected NamedGoedels textTypes

findItems

protected Naming findItems

lookups

protected Naming lookups

connectivities

protected Naming connectivities

renderLegends

protected Naming renderLegends

printRenderLegends

protected Naming printRenderLegends

detailLegends

protected Naming detailLegends

printDetailLegends

protected Naming printDetailLegends

legendAliases

protected Naming legendAliases

enabled

protected boolean enabled

groups

public NamedGoedels groups

areaToGroup

public byte[] areaToGroup

lineToGroup

public byte[] lineToGroup

pointToGroup

public byte[] pointToGroup

textToGroup

public byte[] textToGroup

viewSettings

public MapSetViewSettings viewSettings
Constructor Detail

RoverSet

public RoverSet(MapSet mapSet)
Method Detail

graphicsInside

public abstract RoverBytes[] graphicsInside(MapViewFrame frame)
This returns the rover data necessary to render a given area at the given scale.


graphicsFor

public abstract RoverBytes graphicsFor(int dataID)
This returns the rover data necessary to render the map data item with the given dataID. This is used for highlight graphics and derived graphics (e.g. in ops mapsets).


dataFor

public abstract MapDataItem dataFor(int dataID)
This returns the MapDataItem with the given dataID.


getDataItemCount

public abstract int getDataItemCount()
This returns the number of data items.


renderLegendFor

public RenderLegend renderLegendFor(java.lang.String legendName,
                                    MapViewFrame frame)
Returns the proper rendering legend for the given name and frame. Generally these are scale-dependent, but subclasses may override.


renderLegendFor

public RenderLegend renderLegendFor(java.lang.String legendName,
                                    MapViewFrame frame,
                                    boolean printing)

detailLegendFor

public RenderLegend detailLegendFor(java.lang.String legendName,
                                    MapViewFrame frame)
Returns the "detail" legend, which is used for highlights and other purposes. Generally these are scale-independent, but subclasses may override.


detailLegendFor

public RenderLegend detailLegendFor(java.lang.String legendName,
                                    MapViewFrame frame,
                                    boolean printing)

areaTypeCodeFor

public int areaTypeCodeFor(java.lang.String name)

lineTypeCodeFor

public int lineTypeCodeFor(java.lang.String name)

pointTypeCodeFor

public int pointTypeCodeFor(java.lang.String name)

textTypeCodeFor

public int textTypeCodeFor(java.lang.String name)

connectivityNamed

public ElectricalConnectivity connectivityNamed(java.lang.String name)

findItemNamed

public FindItemIndex findItemNamed(java.lang.String name)

lookupNamed

public Lookup lookupNamed(java.lang.String name)

getAreaTypes

public NamedGoedels getAreaTypes()
Returns the names and ids for each area graphic type.


getLineTypes

public NamedGoedels getLineTypes()
Returns the names and ids for each line graphic type.


getPointTypes

public NamedGoedels getPointTypes()
Returns the names and ids for each point graphic type.


getTextTypes

public NamedGoedels getTextTypes()
Returns the names and ids for each text graphic type.


getFindItems

public Naming getFindItems()

getRenderLegends

public Naming getRenderLegends()

getPrintRenderLegends

public Naming getPrintRenderLegends()

getMapSet

public MapSet getMapSet()

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener nosey)

removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener nosey)

setEnabled

public void setEnabled(boolean tizit)

isEnabled

public boolean isEnabled()

fireChanged

public void fireChanged()

updateGroups

protected void updateGroups()

getGroupIDFor

public byte getGroupIDFor(java.lang.String graphicType)

isDrawable

public boolean isDrawable()