public class WorkbenchFrame extends JFrame implements LayerViewPanelContext, ViewportListener
JFrame.AccessibleJFrameFrame.AccessibleAWTFrameWindow.AccessibleAWTWindow, Window.TypeContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyaccessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabledCROSSHAIR_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_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
WorkbenchFrame(String title,
ImageIcon icon,
WorkbenchContext workbenchContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateFrame(JInternalFrame frame) |
void |
addChoosableStyleClass(Class choosableStyleClass) |
void |
addEasyKeyListener(KeyListener l)
Unlike #add(KeyListener), listeners registered using this method are
notified when KeyEvents occur on this frame's child components.
|
void |
addInternalFrame(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(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.
|
TaskFrame |
addTaskFrame() |
TaskFrame |
addTaskFrame(Task task) |
TaskFrame |
addTaskFrame(TaskFrame taskFrame) |
Task |
createTask() |
void |
displayLastStatusMessage() |
void |
flash(HTMLFrame frame) |
JInternalFrame |
getActiveInternalFrame() |
ApplicationExitHandler |
getApplicationExitHandler() |
TitledPopupMenu |
getCategoryPopupMenu() |
Set |
getChoosableStyleClasses()
Fundamental Style classes (like BasicStyle, VertexStyle, and LabelStyle)
cannot be removed, and are thus excluded from the choosable Style
classes.
|
WorkbenchContext |
getContext() |
JDesktopPane |
getDesktopPane() |
int |
getEnvelopeRenderingThreshold() |
InternalFrameCloseHandler |
getInternalFrameCloseHandler() |
JInternalFrame[] |
getInternalFrames() |
LayerNamePanelListener |
getLayerNamePanelListener() |
TitledPopupMenu |
getLayerNamePopupMenu() |
LayerViewPanelListener |
getLayerViewPanelListener() |
String |
getLog() |
int |
getMaximumFeatureExtentForEnvelopeRenderingInPixels() |
String |
getMBCommittedMemory() |
int |
getMinimumFeatureExtentForAnyRenderingInPixels() |
Map |
getNodeClassToPopupMenuMap() |
HTMLFrame |
getOutputFrame() |
WorkbenchToolBar |
getToolBar() |
TitledPopupMenu |
getWMSLayerNamePopupMenu() |
void |
handleThrowable(Throwable t)
Can be called regardless of whether the current thread is the AWT event
dispatch thread.
|
static void |
handleThrowable(Throwable t,
Component parent) |
boolean |
hasInternalFrame(JInternalFrame internalFrame) |
void |
log(String message) |
void |
removeEasyKeyListener(KeyListener l) |
void |
removeInternalFrame(JInternalFrame internalFrame) |
void |
setApplicationExitHandler(ApplicationExitHandler value) |
void |
setEnvelopeRenderingThreshold(int newEnvelopeRenderingThreshold) |
void |
setInternalFrameCloseHandler(InternalFrameCloseHandler value) |
void |
setMaximumFeatureExtentForEnvelopeRenderingInPixels(int newMaximumFeatureExtentForEnvelopeRenderingInPixels) |
void |
setMinimumFeatureExtentForAnyRenderingInPixels(int newMinimumFeatureExtentForAnyRenderingInPixels) |
void |
setStatusMessage(String message)
Displays a message indicating the status of current operations, typically
in a status bar.
|
void |
setTimeMessage(String message) |
static String |
toMessage(Throwable t) |
void |
warnUser(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, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, 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, setVisible, show, toBack, toFrontadd, 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, validateTreeaction, 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, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFont, postEventpublic WorkbenchFrame(String title, ImageIcon icon, WorkbenchContext workbenchContext) throws Exception
Exceptionpublic void addEasyKeyListener(KeyListener l)
public void removeEasyKeyListener(KeyListener l)
public 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(String message)
public String getLog()
public void setMinimumFeatureExtentForAnyRenderingInPixels(int newMinimumFeatureExtentForAnyRenderingInPixels)
public void displayLastStatusMessage()
public void setStatusMessage(String message)
LayerViewPanelContextsetStatusMessage in interface LayerViewPanelContextpublic void setTimeMessage(String message)
public JInternalFrame getActiveInternalFrame()
public JInternalFrame[] getInternalFrames()
public TitledPopupMenu getCategoryPopupMenu()
public WorkbenchContext getContext()
public JDesktopPane getDesktopPane()
public int getEnvelopeRenderingThreshold()
public TitledPopupMenu getLayerNamePopupMenu()
public TitledPopupMenu getWMSLayerNamePopupMenu()
public LayerViewPanelListener getLayerViewPanelListener()
public Map getNodeClassToPopupMenuMap()
public LayerNamePanelListener getLayerNamePanelListener()
public int getMaximumFeatureExtentForEnvelopeRenderingInPixels()
public int getMinimumFeatureExtentForAnyRenderingInPixels()
public HTMLFrame getOutputFrame()
public WorkbenchToolBar getToolBar()
public void activateFrame(JInternalFrame frame)
public void addInternalFrame(JInternalFrame internalFrame)
public void addInternalFrame(JInternalFrame internalFrame, boolean alwaysOnTop, boolean autoUpdateToolBar)
public TaskFrame addTaskFrame()
public Task createTask()
public void flash(HTMLFrame frame)
public void handleThrowable(Throwable t)
handleThrowable in interface ErrorHandlert - Description of the Parameterpublic boolean hasInternalFrame(JInternalFrame internalFrame)
public void removeInternalFrame(JInternalFrame internalFrame)
public void warnUser(String warning)
LayerViewPanelContextwarnUser in interface LayerViewPanelContextpublic void zoomChanged(com.vividsolutions.jts.geom.Envelope modelEnvelope)
zoomChanged in interface ViewportListenerpublic Set getChoosableStyleClasses()
public void addChoosableStyleClass(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)
Copyright © 2015. All rights reserved.