public class DefaultPortableViewToc extends javax.swing.JPanel implements PortableViewToc, LayerListener, javax.swing.event.TreeSelectionListener
Default implementation of PortableViewToc
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponentlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
DefaultPortableViewToc() |
| Modifier and Type | Method and Description |
|---|---|
void |
activationChanged(LayerEvent e)
Called when the activation of a layer has changed.
|
void |
addActiveLayerChangeListener(ActiveLayerChangeEventListener alcel)
Adds a active layer change listener.
|
void |
addLayerActionListener(LayerActionEventListener lel)
Adds a layer action listener.
|
void |
addLegendActionListener(LegendActionEventListener lel)
Adds a legend action listener.
|
void |
attachTo(PortableViewViewer viewer) |
void |
clearSelection()
Clears current layer selection
|
void |
drawValueChanged(LayerEvent e)
Called when a draw value of a layer has changed.
|
void |
editionChanged(LayerEvent e)
Called when the edition of a layer has changed.
|
FLayer |
getActiveLayer() |
javax.swing.JComponent |
getComponent() |
TOCFactory |
getFactory() |
Manager |
getManager()
Returns a reference to the
Manager which manages this server. |
MapContext |
getMapContext() |
DynObject |
getParameters()
Gets the parameters that were used to instantiate this TOC.
|
FLayer[] |
getSelectedLayers() |
javax.swing.JComponent |
getSwingComponent() |
PortableViewViewer |
getViewer() |
void |
hideAll()
Hides as much as possible the graphic representation of the TOC (for
example, collapses all
the nodes to hide all layer details except the list of layers itself)
|
void |
hideAllLegends()
Collapses all graphic representation of layer legends
|
void |
hideLegend(FLayer lyr)
Makes layer legend details not visible
|
void |
invokeAction(FLayer lyr,
java.lang.String action)
Invokes a certain action on a certain layer
|
void |
nameChanged(LayerEvent e)
Called when the name of a layer has changed.
|
protected void |
processTreeMouseEvent(java.awt.event.MouseEvent e) |
void |
removeActiveLayerChangeListener(ActiveLayerChangeEventListener alcel)
Removes a active layer change listener
|
void |
removeLayerActionListener(LayerActionEventListener lel)
Removes a layer action listener
|
void |
removeLegendActionListener(LegendActionEventListener lel)
Removes a legend action listener
|
void |
selectLayer(FLayer lyr)
Add a layer to the set of selected layers
|
void |
setActiveLayer(FLayer lyr)
Sets a layer as active (exclusively: the number of active layers must be
0 or 1)
|
void |
setImageProvider(PortableViewTocImageProvider imageProvider)
Sets the image provider for TOC tree elements
|
void |
show(FLayer lyr,
boolean detailed)
Makes the name and representation of a certain layer visible in the TOC.
|
void |
showAll()
Expands fully the graphic representation of the TOC (for example, expands
all
the nodes to show all layer details)
|
void |
showAllLegends()
Expands all graphic representation of layer legends
|
void |
showLegend(FLayer lyr)
Makes layer legend details visible
|
void |
unselectLayer(FLayer lyr)
Removes a layer from the set of selected layers
|
void |
valueChanged(javax.swing.event.TreeSelectionEvent e) |
void |
visibilityChanged(LayerEvent e)
Called when the visibility of a layer has changed.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic void setImageProvider(PortableViewTocImageProvider imageProvider)
PortableViewTocsetImageProvider in interface PortableViewTocpublic javax.swing.JComponent getSwingComponent()
getSwingComponent in interface PortableViewSwingComponentpublic FLayer[] getSelectedLayers()
getSelectedLayers in interface TOCpublic void attachTo(PortableViewViewer viewer)
attachTo in interface PortableViewTocpublic PortableViewViewer getViewer()
getViewer in interface PortableViewTocpublic DynObject getParameters()
TOCgetParameters in interface TOCpublic TOCFactory getFactory()
getFactory in interface TOCpublic javax.swing.JComponent getComponent()
getComponent in interface TOCpublic MapContext getMapContext()
getMapContext in interface TOCpublic void showAll()
TOCpublic void hideAll()
TOCpublic void showAllLegends()
TOCshowAllLegends in interface TOCpublic void hideAllLegends()
TOChideAllLegends in interface TOCpublic void show(FLayer lyr, boolean detailed)
TOCpublic void showLegend(FLayer lyr)
TOCshowLegend in interface TOClyr - layer whose legend details must be shownpublic void hideLegend(FLayer lyr)
TOChideLegend in interface TOClyr - layer whose legend details must be hiddenpublic void selectLayer(FLayer lyr)
TOCselectLayer in interface TOClyr - layer which must be selected (not exclusively)public void unselectLayer(FLayer lyr)
TOCunselectLayer in interface TOClyr - layer which must be unselectedpublic void clearSelection()
TOCclearSelection in interface TOCpublic void setActiveLayer(FLayer lyr)
TOCsetActiveLayer in interface TOClyr - layer to be set as active or null to have 0 layers activepublic FLayer getActiveLayer()
getActiveLayer in interface TOCpublic void invokeAction(FLayer lyr, java.lang.String action)
TOCinvokeAction in interface TOClyr - the layer on which the action will be performedaction - the action to be performedpublic void addLegendActionListener(LegendActionEventListener lel)
TOCaddLegendActionListener in interface TOClel - new legend action listenerpublic void removeLegendActionListener(LegendActionEventListener lel)
TOCremoveLegendActionListener in interface TOClel - legend action listener to be removedpublic void addLayerActionListener(LayerActionEventListener lel)
TOCaddLayerActionListener in interface TOClel - new layer action listenerpublic void removeLayerActionListener(LayerActionEventListener lel)
TOCremoveLayerActionListener in interface TOClel - layer action listener to be removedpublic void addActiveLayerChangeListener(ActiveLayerChangeEventListener alcel)
TOCaddActiveLayerChangeListener in interface TOCalcel - new active layer change listenerpublic void removeActiveLayerChangeListener(ActiveLayerChangeEventListener alcel)
TOCremoveActiveLayerChangeListener in interface TOCalcel - active layer change listener to be removedpublic Manager getManager()
ServiceManager which manages this server.getManager in interface ServiceManagerpublic void visibilityChanged(LayerEvent e)
LayerListenerCalled when the visibility of a layer has changed.
visibilityChanged in interface LayerListenere - a visibility changed layer event objectpublic void activationChanged(LayerEvent e)
LayerListenerCalled when the activation of a layer has changed.
activationChanged in interface LayerListenere - an activation changed layer event objectpublic void nameChanged(LayerEvent e)
LayerListenerCalled when the name of a layer has changed.
nameChanged in interface LayerListenere - a name changed layer event objectpublic void editionChanged(LayerEvent e)
LayerListenerCalled when the edition of a layer has changed.
editionChanged in interface LayerListenere - an edition changed layer event objectpublic void drawValueChanged(LayerEvent e)
LayerListenerCalled when a draw value of a layer has changed.
drawValueChanged in interface LayerListenere - an edition changed layer event objectprotected void processTreeMouseEvent(java.awt.event.MouseEvent e)
public void valueChanged(javax.swing.event.TreeSelectionEvent e)
valueChanged in interface javax.swing.event.TreeSelectionListener