public class IlvLayerTreePanel extends JSplitPane implements PropertyChangeListener, ManagerSelectionListener, InheritListener, TreeSelectionListener, TreeModelListener, NamedPropertyListener, TreeEditionListener
IlvLayerTree
at the top and a property sheet at the bottom to display and edit the property of the layer
selected in the tree.JSplitPane.AccessibleJSplitPane
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
BOTTOM, CONTINUOUS_LAYOUT_PROPERTY, continuousLayout, DIVIDER, DIVIDER_LOCATION_PROPERTY, DIVIDER_SIZE_PROPERTY, dividerSize, HORIZONTAL_SPLIT, LAST_DIVIDER_LOCATION_PROPERTY, lastDividerLocation, LEFT, leftComponent, ONE_TOUCH_EXPANDABLE_PROPERTY, oneTouchExpandable, orientation, ORIENTATION_PROPERTY, RESIZE_WEIGHT_PROPERTY, RIGHT, rightComponent, TOP, VERTICAL_SPLIT
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
IlvLayerTreePanel()
Constructs an IlvLayerTreePanel.
|
Modifier and Type | Method and Description |
---|---|
boolean |
editionPerformed(TreeEditionEvent e)
Implements
TreeEditionListener . |
IlvMapLabeler |
getLabeler()
Retrieves the labeler used to manage the labeling property of a layer.
|
IlvLayerTree |
getLayerTree()
Returns the layer Tree.
|
IlvMapLayer |
getSelectedLayer()
Returns the selected layer.
|
IlvMapStylePropertySheet |
getStylePropertySheet()
Returns the
IlvMapStylePropertySheet used by this panel to edit layer style. |
IlvMapDynamicStylePanel |
getThemePanel()
Returns the dynamic theme panel.
|
IlvManagerView |
getView()
Retrieves the IlvManagerView attached to this panel.
|
void |
inherit(InheritEvent e)
Called when the user toggles the inherit button in the style sheet.
|
void |
propertyChange(PropertyChangeEvent evt)
Called when a property in the property sheet has been edited.
|
void |
propertyChanged(NamedPropertyEvent event)
Implements
NamedPropertyListener
Clears the selection when the coordinate system changes. |
void |
selectionChanged(ManagerSelectionChangedEvent event)
Called when the IlvManager selection has changed.
|
void |
setView(IlvManagerView view)
Attaches this panel to an IlvManagerView.
|
void |
treeNodesChanged(TreeModelEvent e)
Implements TreeModelListener treeNodesChanged.
|
void |
treeNodesInserted(TreeModelEvent e)
Implements
TreeModelListener treeNodesInserted. |
void |
treeNodesRemoved(TreeModelEvent e)
Implements
TreeModelListener treeNodesRemoved. |
void |
treeStructureChanged(TreeModelEvent e)
Implements
TreeModelListener treeStructureChanged. |
void |
valueChanged(TreeSelectionEvent e)
Called when the tree selection has changed.
|
boolean |
visibleInOverview(DefaultMutableTreeNode node)
This method is called when the visible in overview status needs
to be checked.
|
addImpl, getAccessibleContext, getBottomComponent, getDividerLocation, getDividerSize, getLastDividerLocation, getLeftComponent, getMaximumDividerLocation, getMinimumDividerLocation, getOrientation, getResizeWeight, getRightComponent, getTopComponent, getUI, getUIClassID, isContinuousLayout, isOneTouchExpandable, isValidateRoot, paintChildren, paramString, remove, remove, removeAll, resetToPreferredSizes, setBottomComponent, setContinuousLayout, setDividerLocation, setDividerLocation, setDividerSize, setLastDividerLocation, setLeftComponent, setOneTouchExpandable, setOrientation, setResizeWeight, setRightComponent, setTopComponent, setUI, updateUI
addAncestorListener, 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, paint, paintBorder, 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, update
add, add, add, add, add, addContainerListener, 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, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, 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, transferFocusUpCycle
public IlvMapDynamicStylePanel getThemePanel()
public void inherit(InheritEvent e)
inherit
in interface InheritListener
e
- The event containing inheritance information.InheritListener.inherit(ilog.views.maps.propertysheet.InheritEvent)
public IlvMapStylePropertySheet getStylePropertySheet()
IlvMapStylePropertySheet
used by this panel to edit layer style.IlvMapStylePropertySheet
used by this panel.public void selectionChanged(ManagerSelectionChangedEvent event)
selectionChanged
in interface ManagerSelectionListener
event
- the "selection changed" event.ManagerSelectionListener.selectionChanged(ilog.views.event.ManagerSelectionChangedEvent)
public void valueChanged(TreeSelectionEvent e)
valueChanged
in interface TreeSelectionListener
e
- The TreeSelectionEvent.public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
evt
- The event.public IlvManagerView getView()
public void setView(IlvManagerView view)
view
- The view to be attached to this panel.public IlvMapLabeler getLabeler()
IlvMapDefaultLabeler
.public IlvLayerTree getLayerTree()
public IlvMapLayer getSelectedLayer()
public void treeNodesChanged(TreeModelEvent e)
treeNodesChanged
in interface TreeModelListener
e
- The TreeModelEvent
public void treeNodesInserted(TreeModelEvent e)
TreeModelListener
treeNodesInserted.
This implementation marks the inserted nodes as selected.treeNodesInserted
in interface TreeModelListener
e
- The TreeModelEvent
public boolean visibleInOverview(DefaultMutableTreeNode node)
true
(visible in overview) if the style of the layer contained in the node
(as returned by getUserObject()) has the VisibleInOverview property
set to true
node
- The layer tree node to check.true
if the layer contained in the node is to be
visible in overview.public void treeNodesRemoved(TreeModelEvent e)
TreeModelListener
treeNodesRemoved.
This implementation resets the property sheet when a node is removed.treeNodesRemoved
in interface TreeModelListener
e
- The TreeModelEvent
public void treeStructureChanged(TreeModelEvent e)
TreeModelListener
treeStructureChanged.
This implementation does nothing.treeStructureChanged
in interface TreeModelListener
e
- The TreeModelEvent
public void propertyChanged(NamedPropertyEvent event)
NamedPropertyListener
Clears the selection when the coordinate system changes.propertyChanged
in interface NamedPropertyListener
event
- The NamedPropertyEvent
public boolean editionPerformed(TreeEditionEvent e)
TreeEditionListener
.editionPerformed
in interface TreeEditionListener
e
- The TreeEditionEvent
true
© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.