|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjwo.landserf.gui.GISFrameAdapter
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.
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 |
public GISFrameAdapter(Frame parent)
parent
- Parent frame.Method Detail |
public void updateInputGUI()
updateInputGUI
in interface GISFrame
public void redisplay()
redisplay
in interface GISFrame
public void addRaster(RasterMap newRast, int selection)
addRaster
in interface GISFrame
newRast
- new Raster to add.selection
- Selection type (PRIMARY, SECONDARY or NOT_SELECTED).public void addVectorMap(VectorMap newVect, int selection)
addVectorMap
in interface GISFrame
newVect
- new vector map to add.selection
- Selection type (PRIMARY or NOT_SELECTED).public RasterMap getRaster1()
getRaster1
in interface GISFrame
public RasterMap getRaster2()
getRaster2
in interface GISFrame
public GraphicsArea getGraphicsArea()
getGraphicsArea
in interface GISFrame
public VectorMap getVectorMap()
getVectorMap
in interface GISFrame
public Frame getFrame()
getFrame
in interface GISFrame
public JFileChooser getFileChooser()
public void setRaster1(RasterMap raster)
setRaster1
in interface GISFrame
raster
- New primary raster to be associated with this window.public void setRaster2(RasterMap raster)
setRaster2
in interface GISFrame
raster
- New secondary raster to be associated with this window.public void setVectorMap(VectorMap vectorMap)
setVectorMap
in interface GISFrame
vectorMap
- New vector map to be associated with this window.public void setMessage(String text)
setMessage
in interface GISFrame
text
- Message to display.public void setMinProgress(int minProgress)
setMinProgress
in interface GISFrame
minProgress
- Minimum progress value.public void setMaxProgress(int maxProgress)
setMaxProgress
in interface GISFrame
maxProgress
- Maximum progress value.public void setProgress(int progress)
setProgress
in interface GISFrame
progress
- progress value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |