com.partnersoft.maps.model
Class MapSpace

java.lang.Object
  extended by com.partnersoft.maps.model.MapSpace

public class MapSpace
extends java.lang.Object

A MapSpace represents a set of map data in the same coordinate system that is suitable for viewing as a single map. It consists of a set of MapDataSets, each with its own legends, datatypes, and graphic types.

Copyright 2003-2009 Partner Software, Inc.

Version:
$Id: MapSpace.java 2474 2010-03-13 14:28:43Z paul $
Author:
Paul Reavis

Constructor Summary
MapSpace(MapApp mapApp)
          The applicationObject is passed to all the scripts as the "app" variable.
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener nosey)
           
 MapDataItem dataFor(int roverSetID, int dataID)
           
 FindItemIndex findItemNamed(java.lang.String name)
           
 void fireChanged()
           
 TiledRoverSet getBackgroundMaps()
           
 Script getCoordinateDisplayScript()
           
 CoordinateSystem getCoordinateSystem()
           
 Script getDataDisplayScript()
           
 VfsDirectory getDirectory()
           
 Naming<FindItemIndex> getFindItems()
           
 Naming<java.util.HashSet> getGraphicGroups()
           
 Script getGridDisplayScript()
           
 Naming<MapSpaceLegend> getLegends()
           
 MapApp getMapApp()
           
 Naming<MapSet> getMapSets()
           
 Script getMeasureDisplayScript()
           
 java.lang.String getName()
           
 PolylineStyle getNorthArrowStyle()
           
 TextStyle getNorthArrowTextStyle()
           
 java.lang.String getPath()
           
 Projection getProjection()
          Returns the result projection for this mapspace - the one its coordinates are represented in.
 Naming<RasterSet> getRasterSets()
           
 RasterSet[] getRasterSetsArray()
           
 Naming<RoverSet> getRoverSets()
           
 RoverSet[] getRoverSetsArray()
           
 PolylineStyle getScaleReticuleStyle()
           
 TextStyle getScaleReticuleTextStyle()
           
 java.util.ArrayList<java.lang.String> getScriptLibDirs()
           
 ScriptKeeper getScripts()
           
 boolean getShowInvisibleGraphics()
           
 boolean getShowTiles()
           
 TextStyle getWheelMenuTextStyle()
           
 MapSpaceLegend legendNamed(java.lang.String name)
           
 MapSet mapSetNamed(java.lang.String name)
           
 RasterSet rasterSetAt(int index)
           
 RasterSet rasterSetNamed(java.lang.String name)
           
 void reload()
           
 void removeChangeListener(javax.swing.event.ChangeListener nosey)
           
 RoverSet roverSetAt(int index)
           
 RoverSet roverSetNamed(java.lang.String name)
           
 void setShowInvisibleGraphics(boolean showInvisibleGraphics)
           
 void setShowTiles(boolean showTiles)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapSpace

public MapSpace(MapApp mapApp)
The applicationObject is passed to all the scripts as the "app" variable.

Method Detail

reload

public void reload()
            throws java.io.IOException
Throws:
java.io.IOException

dataFor

public MapDataItem dataFor(int roverSetID,
                           int dataID)

findItemNamed

public FindItemIndex findItemNamed(java.lang.String name)

legendNamed

public MapSpaceLegend legendNamed(java.lang.String name)

getGraphicGroups

public Naming<java.util.HashSet> getGraphicGroups()

mapSetNamed

public MapSet mapSetNamed(java.lang.String name)

roverSetNamed

public RoverSet roverSetNamed(java.lang.String name)

rasterSetNamed

public RasterSet rasterSetNamed(java.lang.String name)

getBackgroundMaps

public TiledRoverSet getBackgroundMaps()

getFindItems

public Naming<FindItemIndex> getFindItems()

getRoverSets

public Naming<RoverSet> getRoverSets()

getWheelMenuTextStyle

public TextStyle getWheelMenuTextStyle()

getScaleReticuleStyle

public PolylineStyle getScaleReticuleStyle()

getScaleReticuleTextStyle

public TextStyle getScaleReticuleTextStyle()

getNorthArrowStyle

public PolylineStyle getNorthArrowStyle()

getNorthArrowTextStyle

public TextStyle getNorthArrowTextStyle()

getShowInvisibleGraphics

public boolean getShowInvisibleGraphics()

setShowInvisibleGraphics

public void setShowInvisibleGraphics(boolean showInvisibleGraphics)

getShowTiles

public boolean getShowTiles()

setShowTiles

public void setShowTiles(boolean showTiles)

addChangeListener

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

removeChangeListener

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

fireChanged

public void fireChanged()

getMapSets

public Naming<MapSet> getMapSets()

getRasterSets

public Naming<RasterSet> getRasterSets()

getRasterSetsArray

public RasterSet[] getRasterSetsArray()

getProjection

public Projection getProjection()
Returns the result projection for this mapspace - the one its coordinates are represented in.

Returns a do-nothing projection if none is set.


rasterSetAt

public RasterSet rasterSetAt(int index)

roverSetAt

public RoverSet roverSetAt(int index)

getName

public java.lang.String getName()

getPath

public java.lang.String getPath()

getCoordinateSystem

public CoordinateSystem getCoordinateSystem()

getLegends

public Naming<MapSpaceLegend> getLegends()

getScripts

public ScriptKeeper getScripts()

getRoverSetsArray

public RoverSet[] getRoverSetsArray()

getMapApp

public MapApp getMapApp()

getCoordinateDisplayScript

public Script getCoordinateDisplayScript()

getMeasureDisplayScript

public Script getMeasureDisplayScript()

getGridDisplayScript

public Script getGridDisplayScript()

getDataDisplayScript

public Script getDataDisplayScript()

getDirectory

public VfsDirectory getDirectory()

getScriptLibDirs

public java.util.ArrayList<java.lang.String> getScriptLibDirs()