gistoolkit.application
Class GISEditor

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Frame
                  extended byjavax.swing.JFrame
                      extended bygistoolkit.application.GISEditor
All Implemented Interfaces:
javax.accessibility.Accessible, GISDisplayListener, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class GISEditor
extends javax.swing.JFrame
implements GISDisplayListener

Main Editor class.

The editor allows the user to view geographc data, edit geographic data, and delete geographic data. The editor is very powerfull on its own even thought it was orrigionally created as a convenient place to test the features of the underlying toolkit.

See Also:
Serialized Form

Nested Class Summary
(package private)  class GISEditor.WindowHandler
          A class for handling messages from the window especially the window closing event to end the process when the window closes.
 
Nested classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Nested classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 LegendDialog myLegendDialog
          Reference to the legend dialog.
 
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, 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.Window
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
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
GISEditor()
          Creates a new test display with the default constructor.
GISEditor(java.lang.String title)
          Creates a new test display frame with the given title.
 
Method Summary
 void addButton(java.awt.Component inComponent)
          Add a button to the display.
 void envelopeChanged(Envelope inEnvelope)
          Extents have changed
 javax.swing.JPanel getAuxillaryPanel()
          Returns a panel on the display where additional information can be displayed for information or edit.
 Record[] getCopyBuffer()
          Get the records that are in the copy buffer.
 GISDisplay getDisplay()
          Return the display used in this editor, mostly used for commands.
 javax.swing.JToolBar getGISToolBar()
          Create the tool bar for the application
 javax.swing.Icon getIcon(java.lang.String inName)
          Retrieve an Icon from the Images Directory.
 LayerPanel getLayerPanel()
          Retrieve the LayerPanel from the display
static java.lang.String getVersion()
          The version of this editor.
 void initPanel()
          Sets the initial state of this panel, creating any objects needed for display such as combo boxes, text boxes, and buttons.
 boolean isJTSAvailable()
          Check if JTS is available.
 boolean isLegendVisible()
          Returns true if the legend is visible, false if not.
 void loadConfig(java.lang.String inFilename)
          Load the configuration information for the application.
static void main(java.lang.String[] args)
          Main entry point of the editor.
 void refresh()
          refresh the display
 void removeButton(java.awt.Component inComponent)
          Remove a button from the display.
 void saveConfig()
          Save the configuration information for the application.
 void setCopyBuffer(Record[] inRecords)
          Set the records into the copy buffer.
 void setLegendVisible(boolean inVisible)
          Show or hide the legend dialog.
 void updateInfo()
          Update the info message.
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
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
 

Field Detail

myLegendDialog

public LegendDialog myLegendDialog
Reference to the legend dialog.

Constructor Detail

GISEditor

public GISEditor()
Creates a new test display with the default constructor.


GISEditor

public GISEditor(java.lang.String title)
Creates a new test display frame with the given title.

Parameters:
title - java.lang.String
Method Detail

getVersion

public static java.lang.String getVersion()
The version of this editor.


getLayerPanel

public LayerPanel getLayerPanel()
Retrieve the LayerPanel from the display


refresh

public void refresh()
refresh the display


initPanel

public void initPanel()
Sets the initial state of this panel, creating any objects needed for display such as combo boxes, text boxes, and buttons.


isLegendVisible

public boolean isLegendVisible()
Returns true if the legend is visible, false if not.


setLegendVisible

public void setLegendVisible(boolean inVisible)
Show or hide the legend dialog.


main

public static void main(java.lang.String[] args)
Main entry point of the editor.


addButton

public void addButton(java.awt.Component inComponent)
Add a button to the display.


getIcon

public javax.swing.Icon getIcon(java.lang.String inName)
Retrieve an Icon from the Images Directory.


getAuxillaryPanel

public javax.swing.JPanel getAuxillaryPanel()
Returns a panel on the display where additional information can be displayed for information or edit.


getDisplay

public GISDisplay getDisplay()
Return the display used in this editor, mostly used for commands.


removeButton

public void removeButton(java.awt.Component inComponent)
Remove a button from the display.


envelopeChanged

public void envelopeChanged(Envelope inEnvelope)
Extents have changed

Specified by:
envelopeChanged in interface GISDisplayListener

updateInfo

public void updateInfo()
Update the info message.


getGISToolBar

public javax.swing.JToolBar getGISToolBar()
Create the tool bar for the application


getCopyBuffer

public Record[] getCopyBuffer()
Get the records that are in the copy buffer.


setCopyBuffer

public void setCopyBuffer(Record[] inRecords)
Set the records into the copy buffer.


isJTSAvailable

public boolean isJTSAvailable()
Check if JTS is available.


saveConfig

public void saveConfig()
Save the configuration information for the application.


loadConfig

public void loadConfig(java.lang.String inFilename)
Load the configuration information for the application.