|
||||||||||
| 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 |
| 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. |
void |
broadcastFootprint(Footprint fp)
Broadcasts the given footprint to any footprint listeners, but does nothing in this case. |
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. |
PrintUtilities |
getPrintUtilities()
Passes on the printer utilites from the frame. |
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 |
getVectorMap1()
Returns the primary vector map associated with the window, but ignored in this case. |
VectorMap |
getVectorMap2()
Returns the secondary vector map associated with the window, but ignored in this case. |
boolean |
isExperimental()
Reports whether experimental functionality is available to the GUI. |
void |
redisplay(boolean doRecalc)
Redisplays the contents of the frame, but ignored in this case. |
void |
removeSpatialObject(SpatialObject spObj)
Removes the given spatial object from those stored by the GISFrame but does nothing in this case. |
void |
setBroadcastPointQuery(boolean queryMode,
FootprintListener fpListener)
Turns broadcast point query mode on or off, but ignored in this case. |
void |
setBusy(boolean busy)
Indicates that some process has started or stopped. |
void |
setMaxProgress(int maxProgress)
Displays the maximum progress value, but does nothing in this case. |
void |
setMessage(String text)
Displays the given message in frame, but does nothing in this case. |
void |
setMinProgress(int minProgress)
Displays the minimum progress value, but does nothing in this case. |
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 |
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 primary one associated 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 |
| Constructor Detail |
public GISFrameAdapter(Frame parent)
parent - Parent frame.| Method Detail |
public void updateInputGUI()
updateInputGUI in interface GISFramepublic void redisplay(boolean doRecalc)
redisplay in interface GISFramedoRecalc - If true, contents of frame can be recalculated, but ignored in this case.
public void addRaster(RasterMap newRast,
int selection)
addRaster in interface GISFramenewRast - new Raster to add.selection - Selection type (PRIMARY, SECONDARY or NOT_SELECTED).
public void addVectorMap(VectorMap newVect,
int selection)
addVectorMap in interface GISFramenewVect - new vector map to add.selection - Selection type (PRIMARY, SECONDARY or NOT_SELECTED).public void removeSpatialObject(SpatialObject spObj)
removeSpatialObject in interface GISFramespObj - Spatial object to remove (ignored).public RasterMap getRaster1()
getRaster1 in interface GISFramepublic RasterMap getRaster2()
getRaster2 in interface GISFramepublic GraphicsArea getGraphicsArea()
getGraphicsArea in interface GISFramepublic VectorMap getVectorMap1()
getVectorMap1 in interface GISFramepublic VectorMap getVectorMap2()
getVectorMap2 in interface GISFramepublic Frame getFrame()
getFrame in interface GISFramepublic PrintUtilities getPrintUtilities()
getPrintUtilities in interface GISFramepublic boolean isExperimental()
isExperimental in interface GISFramepublic void setRaster1(RasterMap raster)
setRaster1 in interface GISFrameraster - New primary raster to be associated with this window.public void setRaster2(RasterMap raster)
setRaster2 in interface GISFrameraster - New secondary raster to be associated with this window.public void setVectorMap1(VectorMap vectorMap)
setVectorMap1 in interface GISFramevectorMap - New vector map to be associated with this window.public void setVectorMap2(VectorMap vectorMap)
setVectorMap2 in interface GISFramevectorMap - New vector map to be associated with this window.public void setMessage(String text)
setMessage in interface GISFrametext - Message to display.public void setMinProgress(int minProgress)
setMinProgress in interface GISFrameminProgress - Minimum progress value.public void setMaxProgress(int maxProgress)
setMaxProgress in interface GISFramemaxProgress - Maximum progress value.public void setProgress(int progress)
setProgress in interface GISFrameprogress - progress value.public void broadcastFootprint(Footprint fp)
broadcastFootprint in interface GISFramefp - Footprint to broadcast.public void setBusy(boolean busy)
setBusy in interface GISFramebusy - Busy if true.
public void setBroadcastPointQuery(boolean queryMode,
FootprintListener fpListener)
setBroadcastPointQuery in interface GISFramequeryMode - Point query mode is on if true, otherwise off.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||