jwo.landserf.gui
Class SimpleGISFrame

java.lang.Object
  extended byjwo.landserf.gui.GISFrameAdapter
      extended byjwo.landserf.gui.SimpleGISFrame
All Implemented Interfaces:
GISFrame

public class SimpleGISFrame
extends GISFrameAdapter

A simple implementation of a GISFrame for small footprint GUIs that need to take advantage of GISFrame functionality.

Version:
2.2, 15th November, 2004.
Author:
Jo Wood.

Field Summary
 
Fields inherited from interface jwo.landserf.gui.GISFrame
NOT_SELECTED, PRIMARY, SECONDARY
 
Constructor Summary
SimpleGISFrame()
          Creates a simple GISFrame that can hold a collection of spatial objects.
 
Method Summary
 void addRaster(RasterMap newRast)
          Adds a new primary raster to the collection stored in the GIS frame.
 void addRaster(RasterMap newRast, int selection)
          Adds a new raster to the collection stored in the GIS frame.
 void addVectorMap(VectorMap newVect)
          Adds a new primary vector map to the collection stored in the GIS frame.
 void addVectorMap(VectorMap newVect, int selection)
          Adds a new vector map to the collection stored in the GIS frame.
 RasterMap getRaster1()
          Returns the primary raster associated with the GISFrame.
 RasterMap getRaster2()
          Returns the secondary raster associated with the GISFrame.
 Vector getRasterMaps()
          Returns a collection of all the stored raster maps associated with this GISFrame.
 VectorMap getVectorMap1()
          Returns the primary vector map associated with the GISFrame.
 VectorMap getVectorMap2()
          Returns the secondary vector map associated with the GISFrame.
 Vector getVectorMaps()
          Returns a collection of all the stored vector maps associated with this GISFrame.
 void removeSpatialObject(SpatialObject spObj)
          Removes the given spatial object from those stored by this GISFrame
 void setRaster1(RasterMap raster)
          Makes the given raster map the primary one to be processed.
 void setRaster2(RasterMap raster)
          Makes the given raster map the secondary one to be processed.
 void setVectorMap1(VectorMap vectorMap)
          Makes the given vector map the primary one associated with this GISFrame.
 void setVectorMap2(VectorMap vectorMap)
          Makes the given vector map the secondary one associated with this GISFrame.
 
Methods inherited from class jwo.landserf.gui.GISFrameAdapter
broadcastFootprint, getFrame, getGraphicsArea, getPrintUtilities, isExperimental, redisplay, setBroadcastPointQuery, setBusy, setMaxProgress, setMessage, setMinProgress, setProgress, updateInputGUI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleGISFrame

public SimpleGISFrame()
Creates a simple GISFrame that can hold a collection of spatial objects.

Method Detail

addRaster

public void addRaster(RasterMap newRast)
Adds a new primary raster to the collection stored in the GIS frame.

Parameters:
newRast - new Raster to add.

addRaster

public void addRaster(RasterMap newRast,
                      int selection)
Adds a new raster to the collection stored in the GIS frame.

Specified by:
addRaster in interface GISFrame
Overrides:
addRaster in class GISFrameAdapter
Parameters:
newRast - new Raster to add.
selection - Selection type (PRIMARY or SECONDARY).

addVectorMap

public void addVectorMap(VectorMap newVect)
Adds a new primary vector map to the collection stored in the GIS frame.

Parameters:
newVect - new vector map to add.

addVectorMap

public void addVectorMap(VectorMap newVect,
                         int selection)
Adds a new vector map to the collection stored in the GIS frame.

Specified by:
addVectorMap in interface GISFrame
Overrides:
addVectorMap in class GISFrameAdapter
Parameters:
newVect - new vector map to add.
selection - Selection type (PRIMARY or SECONDARY.

removeSpatialObject

public void removeSpatialObject(SpatialObject spObj)
Removes the given spatial object from those stored by this GISFrame

Specified by:
removeSpatialObject in interface GISFrame
Overrides:
removeSpatialObject in class GISFrameAdapter
Parameters:
spObj - Spatial object to remove.

setRaster1

public void setRaster1(RasterMap raster)
Makes the given raster map the primary one to be processed. If the given raster is not already part of the collection stored by this GISFrame, it will be added. If it is already stored, it is simply recorded as being the primary raster.

Specified by:
setRaster1 in interface GISFrame
Overrides:
setRaster1 in class GISFrameAdapter
Parameters:
raster - New primary raster to be associated with this GISFrame.

setRaster2

public void setRaster2(RasterMap raster)
Makes the given raster map the secondary one to be processed. If the given raster is not already part of the collection stored by this GISFrame, it will be added. If it is already stored, it is simply recorded as being the secondary raster.

Specified by:
setRaster2 in interface GISFrame
Overrides:
setRaster2 in class GISFrameAdapter
Parameters:
raster - New secondary raster to be associated with this GISFrame.

setVectorMap1

public void setVectorMap1(VectorMap vectorMap)
Makes the given vector map the primary one associated with this GISFrame. If the given vector map is not already part of the collection stored by this GISFrame, it will be added. If it is already stored, it is simply recorded as being the primary vector map.

Specified by:
setVectorMap1 in interface GISFrame
Overrides:
setVectorMap1 in class GISFrameAdapter
Parameters:
vectorMap - New primary vector map to be associated with this GISFrame.

setVectorMap2

public void setVectorMap2(VectorMap vectorMap)
Makes the given vector map the secondary one associated with this GISFrame. If the given vector map is not already part of the collection stored by this GISFrame, it will be added. If it is already stored, it is simply recorded as being the secondary vector map.

Specified by:
setVectorMap2 in interface GISFrame
Overrides:
setVectorMap2 in class GISFrameAdapter
Parameters:
vectorMap - New secondary vector map to be associated with this GISFrame.

getRaster1

public RasterMap getRaster1()
Returns the primary raster associated with the GISFrame.

Specified by:
getRaster1 in interface GISFrame
Overrides:
getRaster1 in class GISFrameAdapter
Returns:
Primary raster map associated with this window.

getRaster2

public RasterMap getRaster2()
Returns the secondary raster associated with the GISFrame.

Specified by:
getRaster2 in interface GISFrame
Overrides:
getRaster2 in class GISFrameAdapter
Returns:
Secondary raster map associated with this window.

getRasterMaps

public Vector getRasterMaps()
Returns a collection of all the stored raster maps associated with this GISFrame.

Specified by:
getRasterMaps in interface GISFrame
Overrides:
getRasterMaps in class GISFrameAdapter
Returns:
Collection of raster maps associated with this GISFrame.

getVectorMap1

public VectorMap getVectorMap1()
Returns the primary vector map associated with the GISFrame.

Specified by:
getVectorMap1 in interface GISFrame
Overrides:
getVectorMap1 in class GISFrameAdapter
Returns:
Primary vector map associated with this window.

getVectorMap2

public VectorMap getVectorMap2()
Returns the secondary vector map associated with the GISFrame.

Specified by:
getVectorMap2 in interface GISFrame
Overrides:
getVectorMap2 in class GISFrameAdapter
Returns:
Secondary vector map associated with this window.

getVectorMaps

public Vector getVectorMaps()
Returns a collection of all the stored vector maps associated with this GISFrame.

Specified by:
getVectorMaps in interface GISFrame
Overrides:
getVectorMaps in class GISFrameAdapter
Returns:
Collection of vector maps associated with this GISFrame.


Copyright Jo Wood, 1996-2005, last modified, 11th March, 2005