|
||||||||||
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 add a new raster to the collection stored in this GISFame, but ignored in this case. |
void |
addVectorMap(VectorMap newVect,
int selection)
Would add a new vector map to the collection stored in this GISFrame, but ignored in this case. |
void |
broadcastFootprint(Footprint fp)
Would broadcaststhe 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()
Would return the graphics area used for display of geographic objects, but ignored in this case. |
PrintUtilities |
getPrintUtilities()
Would passes on the printer utilites from the frame, but ignored in this case. |
RasterMap |
getRaster1()
Would return the primary raster surface associated with this GISFrame, but does nothing in this case. |
RasterMap |
getRaster2()
Would return the secondary raster surface associated with this GISFrame, but ignored in this case. |
Vector |
getRasterMaps()
Would return a collection of all the stored raster maps associated with this GISFrame, but ignored in this case. |
VectorMap |
getVectorMap1()
Would return the primary vector map associated with this GISFrame, but ignored in this case. |
VectorMap |
getVectorMap2()
Would return the secondary vector map associated with this GISFrame, but ignored in this case. |
Vector |
getVectorMaps()
Would return a collection of all the stored vector maps associated with this GISFrame, but ignored in this case. |
boolean |
isExperimental()
Reports whether experimental functionality is available to the GUI. |
void |
redisplay(boolean doRecalc)
Would redisplay the contents of this frame, but ignored in this case. |
void |
removeSpatialObject(SpatialObject spObj)
Would remove the given spatial object from those stored by this GISFrame but does nothing in this case. |
void |
setBroadcastPointQuery(boolean queryMode,
FootprintListener fpListener)
Would turn broadcast point query mode on or off, but ignored in this case. |
void |
setBusy(boolean busy)
Would indicate that some process has started or stopped, but ignored in this case. |
void |
setMaxProgress(int maxProgress)
Would display the maximum progress value, but does nothing in this case. |
void |
setMessage(String text)
Displays the given message,in this case to standard output. |
void |
setMinProgress(int minProgress)
Would display the minimum progress value, but does nothing in this case. |
void |
setProgress(int progress)
Would set the current progress (should be between 0 and 100 unless minimum or maximum progress values have been changed. |
void |
setRaster1(RasterMap raster)
Would make the given raster surface the primary one to be processed, but ignored in this case. |
void |
setRaster2(RasterMap raster)
Would make the given raster surface the secondary one to be processed, but ignored in this case. |
void |
setVectorMap1(VectorMap vectorMap)
Would makes the given vector map the primary one associated with this GISFrame, but ignored in this case. |
void |
setVectorMap2(VectorMap vectorMap)
Would make the given vector map the primary one associated with this GISFrame but ignored in this case. |
void |
updateInputGUI()
Would updates this frame's menu/button items according to what is currently stored or displayed, but ignored in this case. |
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 GISFrame
public void redisplay(boolean doRecalc)
redisplay
in interface GISFrame
doRecalc
- If true, contents of frame can be recalculated, but ignored in this case.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, SECONDARY or NOT_SELECTED).public void removeSpatialObject(SpatialObject spObj)
removeSpatialObject
in interface GISFrame
spObj
- Spatial object to remove (ignored).public RasterMap getRaster1()
getRaster1
in interface GISFrame
public RasterMap getRaster2()
getRaster2
in interface GISFrame
public Vector getRasterMaps()
getRasterMaps
in interface GISFrame
public GraphicsArea getGraphicsArea()
getGraphicsArea
in interface GISFrame
public VectorMap getVectorMap1()
getVectorMap1
in interface GISFrame
public VectorMap getVectorMap2()
getVectorMap2
in interface GISFrame
public Vector getVectorMaps()
getVectorMaps
in interface GISFrame
public Frame getFrame()
getFrame
in interface GISFrame
public PrintUtilities getPrintUtilities()
getPrintUtilities
in interface GISFrame
public boolean isExperimental()
isExperimental
in interface GISFrame
public void setRaster1(RasterMap raster)
setRaster1
in interface GISFrame
raster
- New primary raster to be associated with this GISFrame.public void setRaster2(RasterMap raster)
setRaster2
in interface GISFrame
raster
- New secondary raster to be associated with this GISFrame.public void setVectorMap1(VectorMap vectorMap)
setVectorMap1
in interface GISFrame
vectorMap
- New vector map to be associated with this GISFrame.public void setVectorMap2(VectorMap vectorMap)
setVectorMap2
in interface GISFrame
vectorMap
- New vector map to be associated with this GISFrame.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.public void broadcastFootprint(Footprint fp)
broadcastFootprint
in interface GISFrame
fp
- Footprint to broadcast.public void setBusy(boolean busy)
setBusy
in interface GISFrame
busy
- Busy if true.public void setBroadcastPointQuery(boolean queryMode, FootprintListener fpListener)
setBroadcastPointQuery
in interface GISFrame
queryMode
- 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 |