|
||||||||||
| 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
com.vividsolutions.jump.workbench.ui.WorkbenchFrame
public class WorkbenchFrame
This class is responsible for the main window of the JUMP application.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
javax.swing.JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
java.awt.Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
java.awt.Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.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, 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 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 | |
|---|---|
WorkbenchFrame(java.lang.String title,
javax.swing.ImageIcon icon,
WorkbenchContext workbenchContext)
|
|
| Method Summary | |
|---|---|
void |
activateFrame(javax.swing.JInternalFrame frame)
|
void |
addChoosableStyleClass(java.lang.Class choosableStyleClass)
|
void |
addEasyKeyListener(java.awt.event.KeyListener l)
Unlike #add(KeyListener), listeners registered using this method are notified when KeyEvents occur on this frame's child components. |
void |
addInternalFrame(javax.swing.JInternalFrame internalFrame)
If internalFrame is a LayerManagerProxy, the close behaviour will be altered so that the user is prompted if it is the last window on the LayerManager. |
void |
addInternalFrame(javax.swing.JInternalFrame internalFrame,
boolean alwaysOnTop,
boolean autoUpdateToolBar)
|
void |
addKeyboardShortcut(int keyCode,
int modifiers,
PlugIn plugIn,
EnableCheck enableCheck)
Adds a keyboard shortcut for a plugin. logs plugin exceptions. note - attaching to keyCode 'a', modifiers =1 will detect shift-A events. |
TaskFrame |
addTaskFrame()
|
TaskFrame |
addTaskFrame(Task task)
|
TaskFrame |
addTaskFrame(TaskFrame taskFrame)
|
Task |
createTask()
|
void |
displayLastStatusMessage()
|
void |
flash(HTMLFrame frame)
|
javax.swing.JInternalFrame |
getActiveInternalFrame()
|
ApplicationExitHandler |
getApplicationExitHandler()
|
TitledPopupMenu |
getCategoryPopupMenu()
|
java.util.Set |
getChoosableStyleClasses()
Fundamental Style classes (like BasicStyle, VertexStyle, and LabelStyle) cannot be removed, and are thus excluded from the choosable Style classes. |
WorkbenchContext |
getContext()
|
javax.swing.JDesktopPane |
getDesktopPane()
|
int |
getEnvelopeRenderingThreshold()
|
InternalFrameCloseHandler |
getInternalFrameCloseHandler()
|
javax.swing.JInternalFrame[] |
getInternalFrames()
|
LayerNamePanelListener |
getLayerNamePanelListener()
|
TitledPopupMenu |
getLayerNamePopupMenu()
|
LayerViewPanelListener |
getLayerViewPanelListener()
|
java.lang.String |
getLog()
|
int |
getMaximumFeatureExtentForEnvelopeRenderingInPixels()
|
java.lang.String |
getMBCommittedMemory()
|
int |
getMinimumFeatureExtentForAnyRenderingInPixels()
|
java.util.Map |
getNodeClassToPopupMenuMap()
|
HTMLFrame |
getOutputFrame()
|
WorkbenchToolBar |
getToolBar()
|
TitledPopupMenu |
getWMSLayerNamePopupMenu()
|
void |
handleThrowable(java.lang.Throwable t)
Can be called regardless of whether the current thread is the AWT event dispatch thread. |
static void |
handleThrowable(java.lang.Throwable t,
java.awt.Component parent)
|
boolean |
hasInternalFrame(javax.swing.JInternalFrame internalFrame)
|
void |
log(java.lang.String message)
|
void |
removeEasyKeyListener(java.awt.event.KeyListener l)
|
void |
removeInternalFrame(javax.swing.JInternalFrame internalFrame)
|
void |
setApplicationExitHandler(ApplicationExitHandler value)
|
void |
setEnvelopeRenderingThreshold(int newEnvelopeRenderingThreshold)
|
void |
setInternalFrameCloseHandler(InternalFrameCloseHandler value)
|
void |
setMaximumFeatureExtentForEnvelopeRenderingInPixels(int newMaximumFeatureExtentForEnvelopeRenderingInPixels)
|
void |
setMinimumFeatureExtentForAnyRenderingInPixels(int newMinimumFeatureExtentForAnyRenderingInPixels)
|
void |
setStatusMessage(java.lang.String message)
Displays a message indicating the status of current operations, typically in a status bar. |
void |
setTaskFrameFactory(ComponentFactory<TaskFrame> taskFrameFactory)
|
void |
setTimeMessage(java.lang.String message)
|
static java.lang.String |
toMessage(java.lang.Throwable t)
|
void |
warnUser(java.lang.String warning)
Notifies the user about a minor issue. |
void |
zoomChanged(com.vividsolutions.jts.geom.Envelope modelEnvelope)
|
| 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, setIconImage, 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, 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, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, 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, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, 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, getMousePosition, 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, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, 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, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, 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 |
| Constructor Detail |
|---|
public WorkbenchFrame(java.lang.String title,
javax.swing.ImageIcon icon,
WorkbenchContext workbenchContext)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public void addEasyKeyListener(java.awt.event.KeyListener l)
addKeyboardShortcut(int, int, com.vividsolutions.jump.workbench.plugin.PlugIn, com.vividsolutions.jump.workbench.plugin.EnableCheck)public void removeEasyKeyListener(java.awt.event.KeyListener l)
public java.lang.String getMBCommittedMemory()
public void setEnvelopeRenderingThreshold(int newEnvelopeRenderingThreshold)
newEnvelopeRenderingThreshold - the number of on-screen features above
which envelope rendering should occurpublic void setMaximumFeatureExtentForEnvelopeRenderingInPixels(int newMaximumFeatureExtentForEnvelopeRenderingInPixels)
public void log(java.lang.String message)
public java.lang.String getLog()
public void setMinimumFeatureExtentForAnyRenderingInPixels(int newMinimumFeatureExtentForAnyRenderingInPixels)
public void displayLastStatusMessage()
public void setStatusMessage(java.lang.String message)
LayerViewPanelContext
setStatusMessage in interface LayerViewPanelContextpublic void setTimeMessage(java.lang.String message)
public javax.swing.JInternalFrame getActiveInternalFrame()
public javax.swing.JInternalFrame[] getInternalFrames()
public TitledPopupMenu getCategoryPopupMenu()
public WorkbenchContext getContext()
public javax.swing.JDesktopPane getDesktopPane()
public int getEnvelopeRenderingThreshold()
public TitledPopupMenu getLayerNamePopupMenu()
public TitledPopupMenu getWMSLayerNamePopupMenu()
public LayerViewPanelListener getLayerViewPanelListener()
public java.util.Map getNodeClassToPopupMenuMap()
public LayerNamePanelListener getLayerNamePanelListener()
public int getMaximumFeatureExtentForEnvelopeRenderingInPixels()
public int getMinimumFeatureExtentForAnyRenderingInPixels()
public HTMLFrame getOutputFrame()
public WorkbenchToolBar getToolBar()
public void activateFrame(javax.swing.JInternalFrame frame)
public void addInternalFrame(javax.swing.JInternalFrame internalFrame)
public void addInternalFrame(javax.swing.JInternalFrame internalFrame,
boolean alwaysOnTop,
boolean autoUpdateToolBar)
public TaskFrame addTaskFrame()
public Task createTask()
public TaskFrame addTaskFrame(Task task)
public TaskFrame addTaskFrame(TaskFrame taskFrame)
public void flash(HTMLFrame frame)
public void handleThrowable(java.lang.Throwable t)
handleThrowable in interface ErrorHandlert - Description of the Parameter
public static void handleThrowable(java.lang.Throwable t,
java.awt.Component parent)
public static java.lang.String toMessage(java.lang.Throwable t)
public boolean hasInternalFrame(javax.swing.JInternalFrame internalFrame)
public void removeInternalFrame(javax.swing.JInternalFrame internalFrame)
public void warnUser(java.lang.String warning)
LayerViewPanelContext
warnUser in interface LayerViewPanelContextpublic void zoomChanged(com.vividsolutions.jts.geom.Envelope modelEnvelope)
zoomChanged in interface ViewportListenerpublic java.util.Set getChoosableStyleClasses()
public void addChoosableStyleClass(java.lang.Class choosableStyleClass)
public void addKeyboardShortcut(int keyCode,
int modifiers,
PlugIn plugIn,
EnableCheck enableCheck)
keyCode - What key to attach to (See java.awt.event.KeyEvent)modifiers - 0= none, 1=shift, 2= cntrl, 8=alt, 3=shift+cntrl, etc...
See the modifier mask constants in the Event classplugIn - What plugin to executeenableCheck - Is the key enabled at the moment?public InternalFrameCloseHandler getInternalFrameCloseHandler()
public void setInternalFrameCloseHandler(InternalFrameCloseHandler value)
public ApplicationExitHandler getApplicationExitHandler()
public void setApplicationExitHandler(ApplicationExitHandler value)
public void setTaskFrameFactory(ComponentFactory<TaskFrame> taskFrameFactory)
taskFrameFactory - the taskFrameFactory to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||