public class WorkbenchFrame extends javax.swing.JFrame implements LayerViewPanelContext, ViewportListener, ErrorHandlerV2
Modifier and Type | Class and Description |
---|---|
class |
WorkbenchFrame.ExitPlugin |
javax.swing.JFrame.AccessibleJFrame
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DESKTOPSTATUS_DIVIDER_LOCATION |
static java.lang.String |
HEIGHT_KEY |
static java.lang.String |
HORIZONTAL_KEY |
static java.lang.String |
MAXIMIZED_KEY |
static java.lang.String |
STATUSPANEL_DIVIDER_LOCATION_1 |
static java.lang.String |
STATUSPANEL_DIVIDER_LOCATION_2 |
static java.lang.String |
STATUSPANEL_DIVIDER_LOCATION_3 |
static java.lang.String |
STATUSPANEL_DIVIDER_LOCATION_4 |
static java.lang.String |
VERTICAL_KEY |
static java.lang.String |
WIDTH_KEY |
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
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
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
WorkbenchFrame(java.lang.String title,
WorkbenchContext workbenchContext) |
Modifier and Type | Method and Description |
---|---|
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 |
addEasyKeyListenerToComp(java.awt.Component c) |
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 check)
Deprecated.
use addKeyboardShortcut(KeyStroke key, PlugIn plugIn) instead
|
void |
addKeyboardShortcut(javax.swing.KeyStroke stroke,
PlugIn plugIn) |
TaskFrame |
addTaskFrame() |
TaskFrame |
addTaskFrame(Task task) |
TaskFrame |
addTaskFrame(TaskFrame taskFrame) |
void |
addTaskListener(TaskListener l)
Add's a TaskListener, wich will be fired if a Task was added
via the WorkbenchFrame.addTaskFrame(TaskFrame taskFrame) or
the a Task was loaded completly with all his layers.
|
Task |
createTask() |
void |
displayLastStatusMessage() |
void |
flash(HTMLFrame frame) |
javax.swing.JInternalFrame |
getActiveInternalFrame() |
TaskFrame |
getActiveTaskFrame() |
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() |
PlugIn |
getKeyboardShortcutPlugin(javax.swing.KeyStroke key) |
java.util.Set<javax.swing.KeyStroke> |
getKeyboardShortcuts() |
LayerNamePanelListener |
getLayerNamePanelListener() |
TitledPopupMenu |
getLayerNamePopupMenu() |
LayerViewPanelListener |
getLayerViewPanelListener() |
java.lang.String |
getLog() |
int |
getMaximumFeatureExtentForEnvelopeRenderingInPixels() |
java.lang.String |
getMBCommittedMemory() |
int |
getMinimumFeatureExtentForAnyRenderingInPixels() |
java.util.Map |
getNodeClassToPopupMenuMap() |
HTMLFrame |
getOutputFrame() |
java.util.ArrayList<TaskListener> |
getTaskListeners() |
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.
|
void |
handleThrowable(java.lang.Throwable t,
java.awt.Component parent) |
boolean |
hasInternalFrame(javax.swing.JInternalFrame internalFrame) |
java.awt.Point |
initWindowLocation() |
java.awt.Dimension |
initWindowSize() |
void |
log(java.lang.String message) |
void |
log(java.lang.String message,
java.lang.Class clazz) |
void |
removeEasyKeyListener(java.awt.event.KeyListener l) |
void |
removeEasyKeyListenerFromComp(java.awt.Component c) |
void |
removeInternalFrame(javax.swing.JInternalFrame internalFrame) |
void |
removeTaskListener(TaskListener l)
Remove's a TaskListener.
|
void |
restore() |
void |
saveWindowState() |
void |
setActiveTaskFrame(TaskFrame taskFrame) |
void |
setApplicationExitHandler(ApplicationExitHandler value) |
void |
setEnvelopeRenderingThreshold(int newEnvelopeRenderingThreshold) |
void |
setInternalFrameCloseHandler(InternalFrameCloseHandler value) |
void |
setMaximumFeatureExtentForEnvelopeRenderingInPixels(int newMaximumFeatureExtentForEnvelopeRenderingInPixels) |
void |
setMinimumFeatureExtentForAnyRenderingInPixels(int newMinimumFeatureExtentForAnyRenderingInPixels) |
void |
setScaleText(java.lang.String message) |
void |
setStatusMessage(java.lang.String message)
Displays a message indicating the status of current operations, typically
in a status bar.
|
void |
setStatusMessage(java.lang.String message,
java.awt.Color color) |
void |
setStatusMessage(java.lang.String message,
int millis) |
void |
setStatusMessage(java.lang.String msg,
int millis,
java.awt.Color color,
boolean flash) |
void |
setTaskFrameFactory(ComponentFactory<TaskFrame> taskFrameFactory) |
void |
setTimeMessage(java.lang.String message) |
void |
setVisible(boolean b) |
static void |
showThrowable(java.lang.Throwable t,
java.awt.Component parent) |
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) |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, show, toBack, toFront
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, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
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, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, 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, 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, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String MAXIMIZED_KEY
public static final java.lang.String HORIZONTAL_KEY
public static final java.lang.String VERTICAL_KEY
public static final java.lang.String WIDTH_KEY
public static final java.lang.String HEIGHT_KEY
public static final java.lang.String STATUSPANEL_DIVIDER_LOCATION_1
public static final java.lang.String STATUSPANEL_DIVIDER_LOCATION_2
public static final java.lang.String STATUSPANEL_DIVIDER_LOCATION_3
public static final java.lang.String STATUSPANEL_DIVIDER_LOCATION_4
public static final java.lang.String DESKTOPSTATUS_DIVIDER_LOCATION
public WorkbenchFrame(java.lang.String title, WorkbenchContext workbenchContext) throws java.lang.Exception
java.lang.Exception
public void addEasyKeyListener(java.awt.event.KeyListener l)
public void removeEasyKeyListener(java.awt.event.KeyListener l)
public void addEasyKeyListenerToComp(java.awt.Component c)
public void removeEasyKeyListenerFromComp(java.awt.Component c)
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 void log(java.lang.String message, java.lang.Class clazz)
public java.lang.String getLog()
public void setMinimumFeatureExtentForAnyRenderingInPixels(int newMinimumFeatureExtentForAnyRenderingInPixels)
public void displayLastStatusMessage()
public void setStatusMessage(java.lang.String message)
LayerViewPanelContext
setStatusMessage
in interface LayerViewPanelContext
public void setStatusMessage(java.lang.String message, int millis)
public void setStatusMessage(java.lang.String message, java.awt.Color color)
public void setStatusMessage(java.lang.String msg, int millis, java.awt.Color color, boolean flash)
public void setTimeMessage(java.lang.String message)
public void setScaleText(java.lang.String message)
public void setVisible(boolean b)
setVisible
in class java.awt.Window
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 getActiveTaskFrame()
public void setActiveTaskFrame(TaskFrame taskFrame)
public void flash(HTMLFrame frame)
public void handleThrowable(java.lang.Throwable t)
handleThrowable
in interface ErrorHandler
t
- Description of the Parameterpublic void handleThrowable(java.lang.Throwable t, java.awt.Component parent)
handleThrowable
in interface ErrorHandlerV2
public static void showThrowable(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 LayerViewPanelContext
public void zoomChanged(com.vividsolutions.jts.geom.Envelope modelEnvelope)
zoomChanged
in interface ViewportListener
public java.util.Set getChoosableStyleClasses()
public void addChoosableStyleClass(java.lang.Class choosableStyleClass)
public void addKeyboardShortcut(int keyCode, int modifiers, PlugIn plugIn, EnableCheck check)
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 executepublic void addKeyboardShortcut(javax.swing.KeyStroke stroke, PlugIn plugIn)
public PlugIn getKeyboardShortcutPlugin(javax.swing.KeyStroke key)
public final java.util.Set<javax.swing.KeyStroke> getKeyboardShortcuts()
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 setpublic void saveWindowState()
public java.awt.Point initWindowLocation()
public java.awt.Dimension initWindowSize()
public void restore()
public java.util.ArrayList<TaskListener> getTaskListeners()
public void addTaskListener(TaskListener l)
l
- - The TaskListener to add.public void removeTaskListener(TaskListener l)
l
- - The TaskListener to add.