ilog.views.maps.beans
Class IlvLayerTreePanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JSplitPane
                  extended by ilog.views.maps.beans.IlvLayerTreePanel
All Implemented Interfaces:
ManagerSelectionListener, NamedPropertyListener, TreeEditionListener, InheritListener, ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, TreeModelListener, TreeSelectionListener

public class IlvLayerTreePanel
extends JSplitPane
implements PropertyChangeListener, ManagerSelectionListener, InheritListener, TreeSelectionListener, TreeModelListener, NamedPropertyListener, TreeEditionListener

A panel to display and edit a layer tree. The panel shows a IlvLayerTree at the top and a property sheet at the bottom to display and edit property of the layer selected in the tree.

Since:
JViews 7.5
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JSplitPane
JSplitPane.AccessibleJSplitPane
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class javax.swing.JSplitPane
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
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
IlvLayerTreePanel()
          Constructs an IlvLayerTreePanel.
 
Method Summary
 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 coordinate system changes.
 void selectionChanged(ManagerSelectionChangedEvent event)
          Called when the IlvManager selection has changed.
 void setView(IlvManagerView view)
          Attach 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.
 
Methods inherited from class javax.swing.JSplitPane
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
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, 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
 
Methods inherited from class java.awt.Container
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, 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, 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, hide, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvLayerTreePanel

public IlvLayerTreePanel()
Constructs an IlvLayerTreePanel.

Method Detail

getThemePanel

public IlvMapDynamicStylePanel getThemePanel()
Returns the dynamic theme panel.

Returns:
the dynamic theme panel.
Since:
JViews 7.5

inherit

public void inherit(InheritEvent e)
Called when the user toggles the inherit button in the style sheet.

Specified by:
inherit in interface InheritListener
Parameters:
e - The event containing inheritance information.
See Also:
InheritListener.inherit(ilog.views.maps.propertysheet.InheritEvent)

getStylePropertySheet

public IlvMapStylePropertySheet getStylePropertySheet()
Returns the IlvMapStylePropertySheet used by this panel to edit layer style.

Returns:
the IlvMapStylePropertySheet used by this panel.
Since:
JViews 7.5

selectionChanged

public void selectionChanged(ManagerSelectionChangedEvent event)
Called when the IlvManager selection has changed.

Specified by:
selectionChanged in interface ManagerSelectionListener
Parameters:
event - the "selection changed" event.
See Also:
ManagerSelectionListener.selectionChanged(ilog.views.event.ManagerSelectionChangedEvent)

valueChanged

public void valueChanged(TreeSelectionEvent e)
Called when the tree selection has changed. This implementation feeds the property sheet with the selected layer properties.

Specified by:
valueChanged in interface TreeSelectionListener
Parameters:
e - The TreeSelectionEvent.

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Called when a property in the property sheet has been edited.

Specified by:
propertyChange in interface PropertyChangeListener
Parameters:
evt - The event.

getView

public IlvManagerView getView()
Retrieves the IlvManagerView attached to this panel.

Returns:
The attached view.

setView

public void setView(IlvManagerView view)
Attach this panel to an IlvManagerView.

Parameters:
view - The view to be attached to this panel.

getLabeler

public IlvMapLabeler getLabeler()
Retrieves the labeler used to manage the labeling property of a layer.

Returns:
A IlvMapDefaultLabeler.

getLayerTree

public IlvLayerTree getLayerTree()
Returns the layer Tree.

Returns:
Returns the layer Tree.

getSelectedLayer

public IlvMapLayer getSelectedLayer()
Returns the selected layer.

Returns:
The selected layer.

treeNodesChanged

public void treeNodesChanged(TreeModelEvent e)
Implements TreeModelListener treeNodesChanged. This implementation does nothing.

Specified by:
treeNodesChanged in interface TreeModelListener
Parameters:
e - The TreeModelEvent

treeNodesInserted

public void treeNodesInserted(TreeModelEvent e)
Implements TreeModelListener treeNodesInserted. This implementation marks the inserted nodes as selected.

Specified by:
treeNodesInserted in interface TreeModelListener
Parameters:
e - The TreeModelEvent

visibleInOverview

public boolean visibleInOverview(DefaultMutableTreeNode node)
This method is called when the visible in overview status needs to be checked. This default implementation returns 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

Parameters:
node -
Returns:
true if the layer contained in the node is to be visible in overview, false otherwise.

treeNodesRemoved

public void treeNodesRemoved(TreeModelEvent e)
Implements TreeModelListener treeNodesRemoved. This implementation resets the property sheet when a node is removed.

Specified by:
treeNodesRemoved in interface TreeModelListener
Parameters:
e - The TreeModelEvent

treeStructureChanged

public void treeStructureChanged(TreeModelEvent e)
Implements TreeModelListener treeStructureChanged. This implementation does nothing.

Specified by:
treeStructureChanged in interface TreeModelListener
Parameters:
e - The TreeModelEvent

propertyChanged

public void propertyChanged(NamedPropertyEvent event)
Implements NamedPropertyListener Clears the selection when coordinate system changes.

Specified by:
propertyChanged in interface NamedPropertyListener
Parameters:
event - The NamedPropertyEvent

editionPerformed

public boolean editionPerformed(TreeEditionEvent e)
Implements TreeEditionListener.

Specified by:
editionPerformed in interface TreeEditionListener
Parameters:
e - The TreeEditionEvent
Returns:
true


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.