com.partnersoft.maps.model
Class MemoryRoverSet

java.lang.Object
  extended by com.partnersoft.maps.model.RoverSet
      extended by com.partnersoft.maps.model.MemoryRoverSet

public class MemoryRoverSet
extends RoverSet

RoverSet for dynamic map data stored only in memory.

Copyright 2005-2009 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Field Summary
 
Fields inherited from class com.partnersoft.maps.model.RoverSet
areaToGroup, areaTypes, changeGadget, enabled, findItems, groups, imageTypes, legendAliases, lineToGroup, lineTypes, lookups, mapSet, pointToGroup, pointTypes, renderLegends, space, textToGroup, textTypes, viewSettings
 
Constructor Summary
MemoryRoverSet(MapSpace space, MapSet mapSet, int id)
           
 
Method Summary
 MapDataItem dataFor(int dataID)
          This returns the MapDataItem with the given dataID.
 int getDataItemCount()
          This returns the number of data items.
 RoverBytes graphicsFor(int dataID)
          This returns the rover data necessary to render the map data item with the given dataID.
 RoverBytes[] graphicsInside(MapViewFrame frame)
          This returns the rover data necessary to render a given area at the given scale.
 void refresh(MapApp app)
           
 void reload()
           
 
Methods inherited from class com.partnersoft.maps.model.RoverSet
addChangeListener, areaTypeCodeFor, connectivityNamed, drawNameFor, findItemNamed, fireChanged, getAreaTypes, getFindItems, getGroupIDFor, getId, getImageTypes, getLineTypes, getMapSet, getPointTypes, getProfile, getTextTypes, imageTypeCodeFor, isDrawable, isEnabled, lineTypeCodeFor, lookupNamed, pointTypeCodeFor, publish, publish, removeChangeListener, scaleRegionFor, setEnabled, setId, setProfile, textTypeCodeFor, updateGroups
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryRoverSet

public MemoryRoverSet(MapSpace space,
                      MapSet mapSet,
                      int id)
Method Detail

graphicsInside

public RoverBytes[] graphicsInside(MapViewFrame frame)
Description copied from class: RoverSet
This returns the rover data necessary to render a given area at the given scale.

Specified by:
graphicsInside in class RoverSet

graphicsFor

public RoverBytes graphicsFor(int dataID)
Description copied from class: RoverSet
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).

Specified by:
graphicsFor in class RoverSet

dataFor

public MapDataItem dataFor(int dataID)
Description copied from class: RoverSet
This returns the MapDataItem with the given dataID.

Specified by:
dataFor in class RoverSet

getDataItemCount

public int getDataItemCount()
Description copied from class: RoverSet
This returns the number of data items.

Specified by:
getDataItemCount in class RoverSet

reload

public void reload()
            throws java.io.IOException
Specified by:
reload in class RoverSet
Throws:
java.io.IOException

refresh

public void refresh(MapApp app)