|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--java.awt.Window | +--java.awt.Frame | +--jwo.landserf.gui.GUIFrame
Class for creating and managing main user interface window and menus. Main Program control rests here.
Nested Class Summary |
Nested classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
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, NORMAL, 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 java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
GUIFrame(String title)
Creates a menu-based graphical user interface. |
|
GUIFrame(String title,
String[] args)
Creates a menu-based graphical user interface and loads the given files supplied as command line arguments.Control of the program is implemented via menu options. |
Method Summary | |
void |
actionPerformed(ActionEvent event)
Scans all delegated action events (menu option selections) and calls appropriate actions. |
void |
combineRasters()
Compares the boundaries of the surface and drape. |
void |
enableMenus()
Disables/enables menu options depending on current state of of the class (eg raster present/absent etc). |
String |
fileDialogue(String message,
String filter,
int type)
Creates a file dialogue for input or output. |
ColourTable |
getDefaultColours()
Sets up a default colour scheme based on the range of values in the current object. |
RastSurf |
getDrape()
Returns the draped surface currently selected by the GUI. |
GraphicsArea |
getGraphicsArea()
Returns the graphics area used for displaying rasters etc. |
ClientBean |
getHubClient()
Returns the hub client associated with this frame. |
GraphNetwork |
getMSN()
Reports the metric surface network associated with the GUI. |
int |
getParamType()
Returns the currently selected parameter type. |
Route3D |
getRoute3d()
Reports the currently defined 3d route. |
StatusBar |
getStatusBar()
Returns the status bar used for reporting progress. |
RastSurf |
getSurf()
Returns the main surface currently selected by the GUI. |
VectorMap |
getVectorMap()
Returns the vector map associated with the GUI. |
void |
itemStateChanged(ItemEvent event)
Looks for checkbox events (from the menu) and performs the necessary actions. |
void |
loadImage(String fileName)
Loads a given image and displays it in the window, but does nothing in this case. |
void |
redisplay()
Recalculates and displays any rasters or vectors in the guiFrame. |
void |
setDrape(RastSurf newDrape)
Sets the main surface currently selected by the GUI. |
void |
setMSN(GraphNetwork msn)
Sets the metric surface network associated with the GUI. |
void |
setParamType(int pType)
Sets the current morphometric parameter type. |
void |
setRoute3d(Route3D route)
Associates the given 3d route with the window, but does nothing in this case. |
void |
setSurf(RastSurf newSurf)
Sets the main surface currently selected by the GUI. |
void |
setVectorDisplay(boolean display)
Turns the vector display on or off. |
void |
setVectorMap(VectorMap vectMap)
Sets the vector map associated with the GUI. |
void |
updateFromDialogue(JWDialogue dialogueBox)
Update from dialogue box. |
Methods inherited from class java.awt.Frame |
addNotify, finalize, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, 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 java.awt.MenuContainer |
getFont, postEvent |
Constructor Detail |
public GUIFrame(String title)
title
- Title of the window.public GUIFrame(String title, String[] args)
title
- Title of the window.args
- Command line arguments representing files to load. Available
arguments include 'surface', 'drape' and 'vector'.Method Detail |
public void actionPerformed(ActionEvent event)
actionPerformed
in interface ActionListener
event
- Menu selection event.public RastSurf getSurf()
getSurf
in interface GISFrame
public void setSurf(RastSurf newSurf)
setSurf
in interface GISFrame
newSurf
- The new surface surface for processing.public RastSurf getDrape()
getDrape
in interface GISFrame
public void setDrape(RastSurf newDrape)
setDrape
in interface GISFrame
public VectorMap getVectorMap()
getVectorMap
in interface GISFrame
public void setVectorMap(VectorMap vectMap)
setVectorMap
in interface GISFrame
vectMap
- The new vector map associated with GUI.public void setMSN(GraphNetwork msn)
msn
- The new metric surface network associated with GUI.public GraphNetwork getMSN()
public GraphicsArea getGraphicsArea()
public StatusBar getStatusBar()
getStatusBar
in interface GISFrame
public int getParamType()
RastSurf
public ClientBean getHubClient()
public void setParamType(int pType)
pType
- New morphometric parameter type.RastSurf
public void setVectorDisplay(boolean display)
display
- True will turn vector display on, false will turn it off.public void itemStateChanged(ItemEvent event)
itemStateChanged
in interface ItemListener
event
- - Checkbox item event.public void updateFromDialogue(JWDialogue dialogueBox)
JWDialogueListener
updateFromDialogue
in interface JWDialogueListener
dialogueBox
- Dialogue box from which to update.public void enableMenus()
enableMenus
in interface GISFrame
public void redisplay()
redisplay
in interface GISFrame
public Route3D getRoute3d()
getRoute3d
in interface GISFrame
public void setRoute3d(Route3D route)
setRoute3d
in interface GISFrame
route
- New route to be associated with this window.public void loadImage(String fileName)
loadImage
in interface GISFrame
fileName
- Name of graphics file to load.public String fileDialogue(String message, String filter, int type)
message
- Message to appear in dialogue window.filter
- File filter for selected files.type
- Type of dialogue to create (FileDialog.LOAD or FileDialog.SAVE).
public ColourTable getDefaultColours()
public void combineRasters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |