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.1, 4th June, 2004.
Author:
Jo Wood.

Field Summary
 
Fields inherited from interface jwo.landserf.gui.GISFrame
NOT_SELECTED, PRIMARY, SECONDARY
 
Constructor Summary
SimpleGISFrame()
           
 
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.
 VectorMap getVectorMap1()
          Returns the primary vector map associated with the GISFrame.
 VectorMap getVectorMap2()
          Returns the secondary vector map associated with the GISFrame.
 void setRaster1(RasterMap raster)
          Makes the given raster surface the primary one to be processed.
 void setRaster2(RasterMap raster)
          Makes the given raster surface the secondary one to be processed.
 void setVectorMap1(VectorMap vectorMap)
          Makes the given vector map the primary one associated with the window.
 void setVectorMap2(VectorMap vectorMap)
          Makes the given vector map the secondary one associated with the window.
 
Methods inherited from class jwo.landserf.gui.GISFrameAdapter
broadcastFootprint, getFrame, getGraphicsArea, getPrintUtilities, isExperimental, redisplay, removeSpatialObject, 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()
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.

setRaster1

public void setRaster1(RasterMap raster)
Makes the given raster surface the primary one to be processed.

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

setRaster2

public void setRaster2(RasterMap raster)
Makes the given raster surface the secondary one to be processed.

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

setVectorMap1

public void setVectorMap1(VectorMap vectorMap)
Makes the given vector map the primary one associated with the window.

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

setVectorMap2

public void setVectorMap2(VectorMap vectorMap)
Makes the given vector map the secondary one associated with the window.

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

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.

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.


Copyright Jo Wood, 1996-2004, last modified, 3rd September, 2004