|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
jwo.utils.gui.JWFrame
jwo.landserf.gui.GUIFrame
public class GUIFrame
Creates the main GUI window for controlling LandSerf.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface jwo.landserf.gui.GISFrame |
|---|
NOT_SELECTED, PRIMARY, SECONDARY |
| Fields inherited from interface java.awt.print.Printable |
|---|
NO_SUCH_PAGE, PAGE_EXISTS |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
GUIFrame(String title)
Creates the LandSerf main GUI window, ignoring any command line parameters. |
|
GUIFrame(String title,
String[] args)
Creates the LandSerf main GUI window and initialises it with the given command line arguments. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent event)
Responds to a selection of menu item or button press. |
void |
addFootprintListener(FootprintListener fpListener)
Adds a footprint listener to the list of objects to be informed when a footprint is broadcast. |
void |
addRaster(RasterMap newRast,
int selection)
Adds a new raster map to the collection shown in the GUIFrame. |
void |
addVectorMap(VectorMap newVect,
int selection)
Adds a new vector map to the collection stored in the GUIFrame. |
void |
broadcastFootprint(Footprint fp)
Broadcasts the given footprint to any footprint listeners. |
void |
closeDown()
Closes down the application neatly. |
void |
footprintReceived(Footprint highlightArea)
Highlights the given area in any relevant thumbnail views. |
Frame |
getFrame()
Reports the AWT frame in which this should be embedded. |
GraphicsArea |
getGraphicsArea()
Returns the graphics area used for display of geographic objects. |
PrintUtilities |
getPrintUtilities()
Passes on the printer utilities from the frame. |
RasterMap |
getRaster1()
Returns the primary raster surface associated with the window. |
RasterMap |
getRaster2()
Returns the secondary raster surface associated with the window. |
Vector |
getRasterMaps()
Returns a collection of all the stored raster maps associated with this GUIFrame. |
VectorMap |
getVectorMap1()
Returns the primary vector map associated with the window. |
VectorMap |
getVectorMap2()
Returns the secondary vector map associated with the window. |
Vector |
getVectorMaps()
Returns a collection of all the stored vector maps associated with this GUIFrame. |
protected void |
initWindow()
Updates the initial display to take into account, any command line options that have loaded spatial objects or set display types at initialisation. |
boolean |
isExperimental()
Reports whether experimental functionality is available to the GUI. |
void |
objectSelected(SpatialObject spObject)
Responds to the selection of a spatial object in the thumbnail view by bringing up the editor window for that object. |
int |
print(Graphics g,
PageFormat pageFormat,
int pageIndex)
Creates a printable version of the current LandSerf display. |
void |
redisplay(boolean recalcRaster)
Redisplays the contents of the frame. |
void |
removeFootprintListener(FootprintListener fpListener)
Removes a given listener from the list of objects to be informed when a footprint is broadcast. |
void |
removeSpatialObject(SpatialObject spObj)
Removes the given spatial object from those stored by the GISFrame |
void |
removeSpatialObjects()
Clears all stored objects from the GISFrame. |
void |
setBroadcastPointQuery(boolean queryMode,
FootprintListener fpListener)
Turns broadcast point query mode on or off. |
void |
setBusy(boolean busy)
Indicates that some process has started or stopped. |
void |
setMessage(String message)
Displays the given message in the window and also logs the message for possible error diagnosis. |
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. |
void |
updateFromDialogue(JWDialogue dialogue)
Responds to the closing of non-modal dialogues. |
void |
updateInputGUI()
Updates the window's menu/button items according to what is currently stored or displayed. |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jwo.landserf.gui.GISFrame |
|---|
setMaxProgress, setMinProgress, setProgress |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Constructor Detail |
|---|
public GUIFrame(String title)
title - Title of window (should contain current version number).
public GUIFrame(String title,
String[] args)
title - Title of window (should contain current version number).args - Command line arguments, or null if none provided.| Method Detail |
|---|
protected void initWindow()
initWindow in class JWFramepublic void updateFromDialogue(JWDialogue dialogue)
updateFromDialogue in interface JWDialogueListenerdialogue - The dialogue window that has been closed.public GraphicsArea getGraphicsArea()
getGraphicsArea in interface GISFramepublic void updateInputGUI()
updateInputGUI in interface GISFramepublic void redisplay(boolean recalcRaster)
reclacRaster is true, the raster
image is recalculated (can take some time for shaded relief), if not, the
vector, if set to draw, will be redrawn.
redisplay in interface GISFramerecalcRaster - If true, raster image is recalculated before redisplaying. If
false, then only vector is redrawn (if displayed at all).public void footprintReceived(Footprint highlightArea)
footprintReceived in interface FootprintListenerhighlightArea - Area to highlight in thumbnail view.
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 setBroadcastPointQuery(boolean queryMode,
FootprintListener fpListener)
setBroadcastPointQuery in interface GISFramequeryMode - Point query mode is on if true, otherwise off.fpListener - Listener to respond to a point query.public void broadcastFootprint(Footprint fp)
broadcastFootprint in interface GISFramefp - Footprint to broadcast.public void addFootprintListener(FootprintListener fpListener)
fpListener - Object listening out for a footprint event.public void removeFootprintListener(FootprintListener fpListener)
fpListener - Object to be removed from listeners.public RasterMap getRaster1()
getRaster1 in interface GISFramepublic RasterMap getRaster2()
getRaster2 in interface GISFramepublic Vector getRasterMaps()
getRasterMaps 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 VectorMap getVectorMap1()
getVectorMap1 in interface GISFramepublic VectorMap getVectorMap2()
getVectorMap2 in interface GISFramepublic Vector getVectorMaps()
getVectorMaps in interface GISFramepublic void setVectorMap1(VectorMap vectorMap)
setVectorMap1 in interface GISFramevectorMap - New primary vector map to be associated with this window.public void setVectorMap2(VectorMap vectorMap)
setVectorMap2 in interface GISFramevectorMap - New secondary vector map to be associated with this window.public Frame getFrame()
getFrame in interface GISFramepublic boolean isExperimental()
isExperimental in interface GISFramepublic void objectSelected(SpatialObject spObject)
objectSelected in interface SelectionListenerspObject - Spatial object selected.public void actionPerformed(ActionEvent event)
actionPerformed in interface ActionListenerevent - Menu/button selection event.public void setMessage(String message)
setMessage in interface GISFramesetMessage in class JWFramemessage - Message to display and log.public void setBusy(boolean busy)
setBusy in interface GISFramebusy - Busy if true.
public int print(Graphics g,
PageFormat pageFormat,
int pageIndex)
print in interface Printableg - Graphics to print.pageFormat - Format of page on which to print.pageIndex - Page to print.
public PrintUtilities getPrintUtilities()
getPrintUtilities in interface GISFramepublic void removeSpatialObject(SpatialObject spObj)
removeSpatialObject in interface GISFramespObj - Spatial object to remove.public void removeSpatialObjects()
removeSpatialObjects in interface GISFramepublic void closeDown()
closeDown in class JWFrame
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||