jwo.landserf.gui
Class GISFrameAdapter

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

public abstract class GISFrameAdapter
extends Object
implements GISFrame

An abstract adapter class for creating GISFrames. The methods in this class are empty. This class exists as convenience for GISFrames. Extend this class to create a GISFrame and override the methods for the bahaviour of interest.

Version:
2.0, 10th January, 2003.
Author:
Jo Wood.

Field Summary
 
Fields inherited from interface jwo.landserf.gui.GISFrame
NOT_SELECTED, PRIMARY, SECONDARY, SELECTED
 
Constructor Summary
GISFrameAdapter(Frame parent)
          Creats a new GISFrame with the given parent.
 
Method Summary
 void addRaster(RasterMap newRast, int selection)
          Would adds a new raster to the collection stored in the GIS frame, but ignored in this case.
 void addVectorMap(VectorMap newVect, int selection)
          Adds a new vector map to the collection stored in the GIS frame, but ignored in this case.
 JFileChooser getFileChooser()
          Reports file chooser associated with this frame.
 Frame getFrame()
          Reports the AWT frame in which this should be embedded.
 GraphicsArea getGraphicsArea()
          Returns the graphics area used for display of geographic objects, but ignored in this case.
 RasterMap getRaster1()
          Returns the primary raster surface associated with the window, but does nothing in this case.
 RasterMap getRaster2()
          Returns the secondary raster surface associated with the window, but ignored in this case.
 VectorMap getVectorMap()
          Returns the vector map associated with the window, but ignored in this case.
 void redisplay()
          Redisplays the contents of the frame, but ignored in this case.
 void setMaxProgress(int maxProgress)
          Displays the maximum progress value.
 void setMessage(String text)
          Displays the given message in frame.
 void setMinProgress(int minProgress)
          Displays the minimum progress value.
 void setProgress(int progress)
          Sets the current progress (should be between 0 and 100 unless minimum or maximum progress values have been changed.
 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 setVectorMap(VectorMap vectorMap)
          Associates the given vector map with the window.
 void updateInputGUI()
          Updates the window's menu/button items according to what is currently stored or displayed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jwo.landserf.gui.GISFrame
broadcastFootprint, getPrintUtilities, removeSpatialObject, setBroadcastPointQuery, setBusy
 

Constructor Detail

GISFrameAdapter

public GISFrameAdapter(Frame parent)
Creats a new GISFrame with the given parent.

Parameters:
parent - Parent frame.
Method Detail

updateInputGUI

public void updateInputGUI()
Updates the window's menu/button items according to what is currently stored or displayed.

Specified by:
updateInputGUI in interface GISFrame

redisplay

public void redisplay()
Redisplays the contents of the frame, but ignored in this case.

Specified by:
redisplay in interface GISFrame

addRaster

public void addRaster(RasterMap newRast,
                      int selection)
Would adds a new raster to the collection stored in the GIS frame, but ignored in this case.

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

addVectorMap

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

Specified by:
addVectorMap in interface GISFrame
Parameters:
newVect - new vector map to add.
selection - Selection type (PRIMARY or NOT_SELECTED).

getRaster1

public RasterMap getRaster1()
Returns the primary raster surface associated with the window, but does nothing in this case.

Specified by:
getRaster1 in interface GISFrame
Returns:
Primary raster surface associated with this window.

getRaster2

public RasterMap getRaster2()
Returns the secondary raster surface associated with the window, but ignored in this case.

Specified by:
getRaster2 in interface GISFrame
Returns:
Secondary raster surface associated with this window.

getGraphicsArea

public GraphicsArea getGraphicsArea()
Returns the graphics area used for display of geographic objects, but ignored in this case.

Specified by:
getGraphicsArea in interface GISFrame
Returns:
Graphics area.

getVectorMap

public VectorMap getVectorMap()
Returns the vector map associated with the window, but ignored in this case.

Specified by:
getVectorMap in interface GISFrame
Returns:
Vector map associated with this window.

getFrame

public Frame getFrame()
Reports the AWT frame in which this should be embedded.

Specified by:
getFrame in interface GISFrame
Returns:
AWT frame in which this is embedded.

getFileChooser

public JFileChooser getFileChooser()
Reports file chooser associated with this frame.

Returns:
file chooser used for selecting files. Useful when file choosing properties (e.g. last directory) are to be shared.

setRaster1

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

Specified by:
setRaster1 in interface GISFrame
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
Parameters:
raster - New secondary raster to be associated with this window.

setVectorMap

public void setVectorMap(VectorMap vectorMap)
Associates the given vector map with the window.

Specified by:
setVectorMap in interface GISFrame
Parameters:
vectorMap - New vector map to be associated with this window.

setMessage

public void setMessage(String text)
Displays the given message in frame.

Specified by:
setMessage in interface GISFrame
Parameters:
text - Message to display.

setMinProgress

public void setMinProgress(int minProgress)
Displays the minimum progress value.

Specified by:
setMinProgress in interface GISFrame
Parameters:
minProgress - Minimum progress value.

setMaxProgress

public void setMaxProgress(int maxProgress)
Displays the maximum progress value.

Specified by:
setMaxProgress in interface GISFrame
Parameters:
maxProgress - Maximum progress value.

setProgress

public void setProgress(int progress)
Sets the current progress (should be between 0 and 100 unless minimum or maximum progress values have been changed.

Specified by:
setProgress in interface GISFrame
Parameters:
progress - progress value.


Copyright Jo Wood, 1996-2004, last modified, 19th March, 2004