|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTree
com.tensegrity.gui.swing.control.tree.TreeOutliner
The TreeOutliner outlines the content of Documents
in a tree representation.
The default implementation outlines the content of GraphDocuments
but through the various means detailed below (Inheritance, Strategy Design
Pattern, Template Method Design Pattern) it is possible to outline the
content of other types of Documents.
It is possible to use this control as is. It is provided with a default
tree model where visual nodes are gathered under a Nodes
tree node,
visual edges under a Edges
tree node and isolated visual edges under a
Isolated Edges
tree node.
However it is possible to provide one or several customized tree models. It
is also possible to switch between models at runtime.
In order to do so one must provide a sub-class of
javax.swing.tree.DefaultTreeModel as well as a sub-class of
com.tensegrity.gui.swing.control.tree.strategy.AbstractTreeStrategy.
This class delegates some method calls to its current strategy. These are:
isolatedVisualEdgeAddedisolatedVisualEdgeRemovedvisualEdgeAddedvisualEdgeRemovedvisualEdgeSplitvisualNodeAddedvisualNodeDeleteEdgeCascadevisualNodeRemovedupdateNode
Default strategy:
Since the TreeOutliner might outline different types of
Document, a default strategy is required depending on the
document type. Use the documentType parameter of the method
setDefaultStrategy in order to ensure that the passed default
strategy is associated with the correct document type. See
AbstractTreeStrategy.DOCUMENT_TYPE_KEY for more information.
Subclassing this class:
In order to make this TreeOutliner relatively easy to subclass
for custom applications the Template Method design pattern is herein
partially implemented. Indeed some final methods defer part of
their implementation to some protected non-final method which
subclasses can override. These are:
doRemoveListenersdoAddListenersdoGetSelectionBeforeUpdateModeldoPostValueChangeddoValueChangedSelectionNulldoRetrieveSelection
Subclasses outlining Documents which are not
GraphDocuments should override the method
getDefaultStrategy which should then return the default strategy
associated to the type of Document they need to outline.
Subclasses can override the factory method
getNewTreeCellRenderer() in order to use a different
TreeCellRenderer by default. Another solution is to use
method setCellRenderer provided by the JTree
super-class (javax.swing.JTree#setCellRenderer) but this will not
change the default TreeCellRenderer.
JTree.setCellRenderer(javax.swing.tree.TreeCellRenderer),
TreeStrategy,
AbstractTreeStrategy,
DefaultVisualGraphTreeModel,
DefaultTreeModel,
DefaultVisualGraphTreeModel,
Serialized Form| Nested Class Summary |
| Nested classes inherited from class javax.swing.JTree |
javax.swing.JTree.AccessibleJTree, javax.swing.JTree.DynamicUtilTreeNode, javax.swing.JTree.EmptySelectionModel, javax.swing.JTree.TreeModelHandler, javax.swing.JTree.TreeSelectionRedirector |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
static java.lang.String |
OUTLINER_SELECTION_CHANGED
Constant for the property change event that is fired when the selection in the outliner changes |
| Fields inherited from class javax.swing.JTree |
ANCHOR_SELECTION_PATH_PROPERTY, CELL_EDITOR_PROPERTY, CELL_RENDERER_PROPERTY, cellEditor, cellRenderer, editable, EDITABLE_PROPERTY, EXPANDS_SELECTED_PATHS_PROPERTY, INVOKES_STOP_CELL_EDITING_PROPERTY, invokesStopCellEditing, LARGE_MODEL_PROPERTY, largeModel, LEAD_SELECTION_PATH_PROPERTY, ROOT_VISIBLE_PROPERTY, rootVisible, ROW_HEIGHT_PROPERTY, rowHeight, SCROLLS_ON_EXPAND_PROPERTY, scrollsOnExpand, SELECTION_MODEL_PROPERTY, selectionModel, selectionRedirector, SHOWS_ROOT_HANDLES_PROPERTY, showsRootHandles, TOGGLE_CLICK_COUNT_PROPERTY, toggleClickCount, TREE_MODEL_PROPERTY, treeModel, treeModelListener, VISIBLE_ROW_COUNT_PROPERTY, visibleRowCount |
| 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 | |
TreeOutliner(AttributeEditor editor,
UIManager uiManager)
Creates a new TreeOutliner instance. |
|
TreeOutliner(AttributeEditor editor,
UIManager uiManager,
javax.swing.tree.DefaultTreeCellRenderer treeCellRenderer)
Creates a new TreeOutliner instance. |
|
| Method Summary | |
void |
applyEvList()
Tells the component to apply its UIItemEvaluationList. |
void |
attributesChanged(AttributableOnSetEvent attributableOnSetEvent)
Invoked when an attribute in an AttributableOnSet object
has changed. |
protected void |
collectSelectables(javax.swing.tree.TreePath path,
java.util.List list)
Method collectSelectables checks if the lastPathComponent is instance of BaseInteractable interface and adds it to the given list. |
void |
compositeChanged(ChangedEvent event)
This method is called whenever a Composite has been changed
but for the change is no specialized callback defined. |
void |
compositeChanged(LineChangedEvent event)
This method is called whenever a CompositeLine has been
changed but for the change is no specialized callback defined. |
void |
compositeManipulating(LineManipulationEvent event)
This method is called while a CompositeLine is being
manipulated.
|
void |
compositeMoving(LineMoveEvent event)
This method is called while a CompositeLine is being moved
around.
|
void |
compositeMoving(MoveEvent event)
This method is called while a Composite is being moved
around. |
void |
compositePostManipulating(LineManipulationEvent event)
This method is called after a CompositeLine has been
manipulated. |
void |
compositePostMoving(LineMoveEvent event)
This method is called after a CompositeLine has been moved. |
void |
compositePostMoving(MoveEvent event)
This method is called after a Composite has been moved. |
void |
compositePostResizing(ResizeEvent event)
This method is called after a Composite has been resized. |
void |
compositePreManipulating(LineManipulationEvent event)
This method is called before the manipulation of a CompositeLine starts. |
void |
compositePreMoving(LineMoveEvent event)
This method is called before a CompositeLine is being moved
around. |
void |
compositePreMoving(MoveEvent event)
This method is called before a Composite is being moved
around. |
void |
compositePreResizing(ResizeEvent event)
This method is called before a Composite is about to be
resized. |
void |
compositeResizing(ResizeEvent event)
This method is called while a Composite is being resized.
|
protected void |
doAddListeners(Document doc)
Method called by documentSelected(DocumentEvent). |
void |
documentAdded(DocumentEvent documentEvent)
Apparently this method does nothing, because the Tree should represent the graph objects which are currently active or selected. |
void |
documentModelChanged(DocumentEvent documentevent)
Call the following methods: documentUnselected(documentevent); documentRemoved(documentevent); documentAdded(documentevent); documentSelected(documentevent); |
void |
documentPreAdd(DocumentEvent documentEvent)
Do nothing. |
void |
documentPreRemove(DocumentEvent documentEvent)
Do nothing. |
void |
documentRemoved(DocumentEvent documentEvent)
The Tree removes itself as listener (CompositeView and Document) and clears the map entries. |
void |
documentSelected(DocumentEvent documentEvent)
Restores the model from the modelMap and the expanded state from the expandedMap. |
void |
documentUnselected(DocumentEvent documentEvent)
The method documentUnselected updates the model- and the
expanded map with the model and ExpandedEnumeration of the current
deselected graph. |
protected java.util.List |
doGetSelectionBeforeUpdateModel()
Method called by updateModel() before it internally sets the TreeModel in order to let subclasses retrieve themselves the selection on their Document.
|
protected void |
doPostValueChanged(java.util.List selection)
Method called at the end of valueChanged(TreeSelectionEvent e) in order to let subclasses deal themselves with the list of selected "Interactables". |
protected void |
doRemoveListeners(Document doc)
Method called by clearModel(Document). |
protected javax.swing.tree.TreePath |
doRetrieveSelection(java.lang.Object selection)
Method called by setSelection(Object) and setSelection(Object[]). |
protected void |
doValueChangedSelectionNull()
Method called by valueChanged(TreeSelectionEvent e) in order to let subclasses react accordingly when no BaseInteractable is selected on the TreeOutliner. |
protected Document |
getActiveDocument()
Retrieves the ActiveDocument property |
protected AttributeEditor |
getAttributeEditor()
Returns the AttributeEditor property |
protected java.util.Map |
getDefaultStrategiesMap()
Returns the default strategies Map property This Map associates defaultStrategies to Strings representing the type of Document they are associated to. |
AbstractTreeStrategy |
getDefaultStrategy(Document doc)
Returns the defaultStrategy associated to the passed document Important When overridding this method it is important to set the default strategy using setDefaultStrategy if the default strategy
required did not previously exist and is herein created.
|
java.util.Enumeration |
getDescendantToggledPaths(javax.swing.tree.TreePath parent)
|
protected VisualGraphView |
getGraphFromDocument(Document doc)
Utility method. |
protected Document |
getLastSelected()
Returns the last selected Document property |
protected Document |
getLastUnSelected()
Returns the last unselected Document property |
protected javax.swing.tree.DefaultTreeCellRenderer |
getNewTreeCellRenderer()
Factory method returning the TreeCellRenderer used by the TreeOuliner. |
javax.swing.tree.TreePath |
getPath(javax.swing.tree.TreeNode node)
Method getPath returns the TreePath for a given TreeNode. |
protected javax.swing.tree.DefaultMutableTreeNode |
getRoot()
Redundant method to spare casting galore to retrieve Rootnode. |
AbstractTreeStrategy |
getStrategy()
Returns the currently applied strategy. |
protected AbstractTreeStrategy |
getStrategyAssociatedToDocument(Document doc,
java.lang.String name)
Method getStrategyAssociatedToGraph returns the
AbstractVisualGraphObjectTreeStrategy corresponding to the
passed document.
|
protected javax.swing.tree.DefaultTreeModel |
getTreeModel()
Redundant method, but avoids the cast to DefaultTreeModel
within further implementation. |
UIManager |
getUIManager()
Returns the UIManager property |
int |
getUniqueID(VisualGraphObject vgo)
This method returns a unique ID for a given . |
void |
groupAddedComposite(GroupAddCompositeEvent event)
This method is called whenever a Composite has been added
to a CompositeGroup. |
void |
groupAddedComposites(GroupAddCompositesEvent event)
This method is called whenever a List of
Composites has been added to a CompositeGroup.
|
void |
groupCompositeOrderChanged(GroupCompositeOrderChangeEvent event)
This method is called whenever the internal order of BaseComposite objects changes. |
void |
groupFoldStateChanged(GroupFoldStateChange event)
This method is called whenever the state of folding of a CompositeGroup has been changed.
|
void |
groupFoldStatePreChange(GroupFoldStateChange event)
This method is called whenever the state of folding of a CompositeGroup is up to be changed. |
void |
groupRemovedComposite(GroupRemoveCompositeEvent event)
This method is called whenever a Composite has been removed
from a CompositeGroup.
|
void |
groupRemovedComposites(GroupRemoveCompositesEvent event)
This method is called whenever a List of
Composites has been removed from a
CompositeGroup.
|
void |
groupSelectionChanged(GroupSelectionChangeEvent event)
This method is called whenever the selection within the CompositeGroup has been changed.
|
void |
groupSizeAdjusted(GroupSizeAdjustmentEvent event)
This method is called whenever the size of a CompositeGroup
has been changed by the CompositeGroup itself.
|
void |
installEvList()
Tells the component to setup its internal state. |
protected boolean |
isGraphDocument(Document doc)
Method isGraphDocument returns true if the parameter document instance is of type GraphDocument. |
void |
isolatedVisualEdgeAdded(VisualEdgeEvent event)
This method is invoked when an isolated VisualEdge is added. |
void |
isolatedVisualEdgeAdded(VisualGraphEvent event)
Forward the call to the current strategy. |
void |
isolatedVisualEdgeRemoved(VisualEdgeEvent event)
This method is invoked when an isolated VisualEdge is removed. |
void |
isolatedVisualEdgeRemoved(VisualGraphEvent event)
Forward the call to the current strategy. |
boolean |
isUpdate()
gives access to the internal "update" flag |
void |
layout(VisualGraphEvent visualgraphevent)
Do Nothing |
void |
mouseClick(BCMouseEvent event)
This method is called when a mouse button has been pressed and released upon a BaseComposite. |
void |
mouseDown(BCMouseEvent event)
This methods is called when a mouse button has been pressed upon a BaseComposite. |
void |
mouseEnter(BCMouseEvent event)
This method is called when the mouse enters the BaseComposite. |
void |
mouseExit(BCMouseEvent event)
This method is called when the mouse exits the BaseComposite. |
void |
mouseUp(BCMouseEvent event)
This methods is called when a mouse button has been pressed upon a BaseComposite and it will be released. |
void |
postSelect(BCSelectEvent event)
This method is called whenever a Composite has been
selected. |
void |
preSelect(BCSelectEvent event)
This method is called before a Composite is being selected. |
protected boolean |
removeDescendantSelectedPaths(javax.swing.tree.TreePath path,
boolean includePath)
Overriden to allow the subselection to stay active when a node is collapsed |
void |
restoreSelectionPaths(javax.swing.tree.TreePath[] paths)
Method restoreSelectionPaths restores the selection on this tree by invoking setSelectionPaths on this tree, while the update flag is turned to true during that call to avoid valueChanged to interact. |
void |
restoreToggledPaths(java.util.Enumeration enm)
Method restoreToggledPaths restores the toggled Nodes from the given Enumeration of TreePath instances. |
protected void |
setActiveDocument(Document activeDocument)
Sets the ActiveDocument property |
protected void |
setAttributeEditor(AttributeEditor attributeEditor)
Sets the AttributeEditor property |
void |
setDefaultStrategy(AbstractTreeStrategy defaultStrategy,
java.lang.String documentType)
Sets the default strategy. |
protected void |
setLastSelected(Document lastSelected)
Sets the last selected Document property |
protected void |
setLastUnSelected(Document lastUnSelected)
Sets the last unselected Document property |
void |
setSelection(java.lang.Object selection)
Method setSelection sets the selection on the tree. |
void |
setSelection(java.lang.Object[] selection)
Method setSelection sets the selection according to all the selectable's within the given Object[]. |
void |
setStrategy(AbstractTreeStrategy strategy)
Sets the current strategy to be strategy. |
protected void |
setUIManager(UIManager uiManager)
Sets the UIManager property |
void |
setUpdate(boolean update)
Sets the value of the internal "update" flag |
void |
sort(boolean ascending)
Method sort sorts the Tree according to the ascending flag. |
void |
treeCollapsed(javax.swing.event.TreeExpansionEvent event)
Ignored. |
void |
treeExpanded(javax.swing.event.TreeExpansionEvent event)
Check the list of child nodes if there are any dynamic ones among them, those should load their children now. |
void |
updateModel()
This method delegates some of its implementation to doGetSelectionBeforeUpdateModel. |
void |
updateUI()
|
void |
valueChanged(javax.swing.event.TreeSelectionEvent e)
Sets the selection on the tree according to the getSelectionPaths. |
void |
viewAddedComposite(ViewAddCompositeEvent event)
Do nothing. |
void |
viewAddedComposites(ViewAddCompositesEvent event)
Do nothing. |
void |
viewCompositeOrderChanged(ViewCompositeOrderChangeEvent event)
Called whenever the internal order of BaseComposite objects
changes. |
void |
viewModeChanged(ViewModeChangeEvent event)
Do nothing. |
void |
viewParameterChanged(ViewParameterChangeEvent event)
Do nothing. |
void |
viewRemovedComposite(ViewRemoveCompositeEvent event)
Do nothing. |
void |
viewRemovedComposites(ViewRemoveCompositesEvent event)
Do nothing. |
void |
viewScrolled(ViewScrolledEvent event)
Called if the view position is changed during an action. |
void |
viewSelectionChanged(ViewSelectionChangeEvent event)
This method is triggered by the CompositeView to indicate selection changes. |
void |
visualEdgeAdded(VisualEdgeEvent event)
This method is invoked when a VisualEdge is added. |
void |
visualEdgeAdded(VisualGraphEvent event)
Forward the call to the current strategy. |
void |
visualEdgeAttachRejected(VisualGraphEvent event)
Do Nothing |
void |
visualEdgeRemoved(VisualEdgeEvent event)
This method is invoked when a VisualEdge is removed. |
void |
visualEdgeRemoved(VisualGraphEvent event)
Forward the call to the current strategy. |
void |
visualEdgeSplit(VisualGraphEvent visualgraphevent)
Forward the call to the current strategy. |
void |
visualNodeAdded(VisualGraphEvent event)
Forward the call to the current strategy. |
void |
visualNodeAdded(VisualNodeEvent event)
This method is invoked when a VisualNode is added. |
void |
visualNodeDeleteEdgeCascade(VisualGraphEvent visualgraphevent)
Forward the call to the current strategy. |
void |
visualNodeRemoved(VisualGraphEvent event)
Forward the call to the current strategy. |
void |
visualNodeRemoved(VisualNodeEvent event)
This method is invoked when a VisualNode is removed. |
void |
visualPortAdded(VisualNodeEvent event)
This method is invoked on the listener if a VisualPort is added
to a
VisualNode. |
void |
visualPortRemoved(VisualNodeEvent event)
This method is invoked on the listener if a VisualPort is removed
from a
VisualNode. |
| Methods inherited from class javax.swing.JTree |
addSelectionInterval, addSelectionPath, addSelectionPaths, addSelectionRow, addSelectionRows, addTreeExpansionListener, addTreeSelectionListener, addTreeWillExpandListener, cancelEditing, clearSelection, clearToggledPaths, collapsePath, collapseRow, convertValueToText, createTreeModel, createTreeModelListener, expandPath, expandRow, fireTreeCollapsed, fireTreeExpanded, fireTreeWillCollapse, fireTreeWillExpand, fireValueChanged, getAccessibleContext, getAnchorSelectionPath, getCellEditor, getCellRenderer, getClosestPathForLocation, getClosestRowForLocation, getDefaultTreeModel, getDragEnabled, getEditingPath, getExpandedDescendants, getExpandsSelectedPaths, getInvokesStopCellEditing, getLastSelectedPathComponent, getLeadSelectionPath, getLeadSelectionRow, getMaxSelectionRow, getMinSelectionRow, getModel, getNextMatch, getPathBetweenRows, getPathBounds, getPathForLocation, getPathForRow, getPreferredScrollableViewportSize, getRowBounds, getRowCount, getRowForLocation, getRowForPath, getRowHeight, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollsOnExpand, getSelectionCount, getSelectionModel, getSelectionPath, getSelectionPaths, getSelectionRows, getShowsRootHandles, getToggleClickCount, getToolTipText, getTreeExpansionListeners, getTreeSelectionListeners, getTreeWillExpandListeners, getUI, getUIClassID, getVisibleRowCount, hasBeenExpanded, isCollapsed, isCollapsed, isEditable, isEditing, isExpanded, isExpanded, isFixedRowHeight, isLargeModel, isPathEditable, isPathSelected, isRootVisible, isRowSelected, isSelectionEmpty, isVisible, makeVisible, paramString, removeDescendantToggledPaths, removeSelectionInterval, removeSelectionPath, removeSelectionPaths, removeSelectionRow, removeSelectionRows, removeTreeExpansionListener, removeTreeSelectionListener, removeTreeWillExpandListener, scrollPathToVisible, scrollRowToVisible, setAnchorSelectionPath, setCellEditor, setCellRenderer, setDragEnabled, setEditable, setExpandedState, setExpandsSelectedPaths, setInvokesStopCellEditing, setLargeModel, setLeadSelectionPath, setModel, setRootVisible, setRowHeight, setScrollsOnExpand, setSelectionInterval, setSelectionModel, setSelectionPath, setSelectionPaths, setSelectionRow, setSelectionRows, setShowsRootHandles, setToggleClickCount, setUI, setVisibleRowCount, startEditingAtPath, stopEditing, treeDidChange |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, 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, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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 |
| Field Detail |
public static final java.lang.String OUTLINER_SELECTION_CHANGED
| Constructor Detail |
public TreeOutliner(AttributeEditor editor,
UIManager uiManager)
Creates a new TreeOutliner instance. By using this constructor, the
default strategy is set to be an instance of
DefaultVisualGraphTreeStrategy. However the default strategy can later
be changed by using the setDefaultStrategy method. The
TreeCellRenderer used is the one returned by the factory method getNewTreeCellRenderer.
editor - an AttributeEditor instance.uiManager - the application UIManager.
public TreeOutliner(AttributeEditor editor,
UIManager uiManager,
javax.swing.tree.DefaultTreeCellRenderer treeCellRenderer)
Creates a new TreeOutliner instance. By using this constructor, the
default strategy is set to be an instance of
DefaultVisualGraphTreeStrategy. However the default strategy can later
be changed by using the setDefaultStrategy method.
editor - an AttributeEditor instance.uiManager - the application UIManager.treeCellRenderer - renderer used in order to render the nodes of this tree
outliners.| Method Detail |
protected final java.util.Map getDefaultStrategiesMap()
Returns the default strategies Map property This Map associates defaultStrategies to Strings representing the type of Document they are associated to.
constantpublic final UIManager getUIManager()
Returns the UIManager property
protected final void setUIManager(UIManager uiManager)
Sets the UIManager property
uiManager - this is the application's UIManager.protected final AttributeEditor getAttributeEditor()
Returns the AttributeEditor property
protected final void setAttributeEditor(AttributeEditor attributeEditor)
Sets the AttributeEditor property
attributeEditor - this is an AttributeEditor instance.protected final Document getLastSelected()
Returns the last selected Document property
protected final void setLastSelected(Document lastSelected)
Sets the last selected Document property
lastSelected - this is the last selected Document.protected final Document getLastUnSelected()
Returns the last unselected Document property
protected final void setLastUnSelected(Document lastUnSelected)
Sets the last unselected Document property
lastUnSelected - this is the last unselected Document.protected final Document getActiveDocument()
Retrieves the ActiveDocument property
Documentprotected final void setActiveDocument(Document activeDocument)
Sets the ActiveDocument property
activeDocument - this represents the active Document.public final boolean isUpdate()
gives access to the internal "update" flag
public final void setUpdate(boolean update)
Sets the value of the internal "update" flag
update - boolean indicating whether or not the outliner is being
programmatically updated.public final AbstractTreeStrategy getStrategy()
public final void setStrategy(AbstractTreeStrategy strategy)
strategy. The tree Model
associated with strategy will be applied.
strategy - represents the AbstractTreeStrategy to
be applied to the outliner.
public final void setDefaultStrategy(AbstractTreeStrategy defaultStrategy,
java.lang.String documentType)
Sets the default strategy. The tree Model associated with this default strategy will be the one used whenever a new document is created. Since the TreeOutline might outline differentTypes of document, a default strategy is required depending on the document type. Use the documentType parameter in order to ensure that the passed default strategy is associated with the correct document Type. See AbstractTreeStrategy.DOCUMENT_TYPE_KEY for more information.
defaultStrategy - represents the AbstractTreeStrategy
used by default when a new document is created.documentType - See AbstractTreeStrategy.DOCUMENT_TYPE_KEYprotected final javax.swing.tree.DefaultMutableTreeNode getRoot()
public final javax.swing.tree.TreePath getPath(javax.swing.tree.TreeNode node)
node to its parent.
Therefore this method traverses all those nodes and creates new
TreePath instance from it.
node - the node of which you need the TreePath.
protected javax.swing.tree.DefaultTreeCellRenderer getNewTreeCellRenderer()
Factory method returning the TreeCellRenderer used by the TreeOuliner.
public AbstractTreeStrategy getDefaultStrategy(Document doc)
Returns the defaultStrategy associated to the passed document
Important
When overridding this method it is important to set the default
strategy using setDefaultStrategy if the default strategy
required did not previously exist and is herein created.
doc - The Document for which we want the defaultStrategy
AbstractTreeStrategy applied with the passed Document.
protected final AbstractTreeStrategy getStrategyAssociatedToDocument(Document doc,
java.lang.String name)
getStrategyAssociatedToGraph returns the
AbstractVisualGraphObjectTreeStrategy corresponding to the
passed document.
It first checks if the local Map of documents and strategies contains
the passed graph. If yes, this method returned the strategy mapping the document.
If not, the default strategy associated to the document is returned.
Before exiting it initializes the Model associated to the strategy.
This is called by documentAdded(DocumentEvent)
doc - The document you want the strategy of.name - The document name.
AbstractTreeStrategy mapping to the
passed Documentprotected final VisualGraphView getGraphFromDocument(Document doc)
GraphDocument
doc - the Document of which the VisualGraphView
is requested.
VisualGraphView
associated to the passed Document, if
any, otherwise null.protected javax.swing.tree.DefaultTreeModel getTreeModel()
DefaultTreeModel
within further implementation.
DefaultTreeModel instance.public final void sort(boolean ascending)
Comparator used to sort is retrieved
from the currently applied strategy.
ascending - if true, the Tree is sorted in an ascending manner. If false,
in a descending manner.Comparatorprotected final boolean isGraphDocument(Document doc)
doc - a Document for which this method
checks whether or not it is a GraphDocument.
doc is a GraphDocument,
false otherwise.public final void updateUI()
JTree.updateUI()public final void setSelection(java.lang.Object selection)
selection - object to be selected.method design pattern,
ObjectTreePanelpublic final void setSelection(java.lang.Object[] selection)
null or empty.
This method delegates some of its implementation to doRetrieveSelection.
Called by updateModel(), viewSelectionChanged(ViewSelectionChangeEvent event)
and visualNodeAdded(VisualGraphEvent) from AbstractVisualGraphTreeStrategy
implementors.
selection - objects to be selected.method design patternpublic final void restoreToggledPaths(java.util.Enumeration enm)
public final void restoreSelectionPaths(javax.swing.tree.TreePath[] paths)
paths - array of TreePath to select.public final void visualEdgeAdded(VisualGraphEvent event)
visualEdgeAdded in interface VisualGraphListenerevent - the VisualGraphEvent structure
that contains the event information.AbstractVisualGraphTreeStrategy,
VisualGraphListener.visualEdgeAdded(VisualGraphEvent)public final void visualEdgeRemoved(VisualGraphEvent event)
visualEdgeRemoved in interface VisualGraphListenerevent - the VisualGraphEvent structure
that contains the event information.AbstractVisualGraphTreeStrategy,
VisualGraphListener.visualEdgeRemoved(VisualGraphEvent)public final void visualNodeAdded(VisualGraphEvent event)
visualNodeAdded in interface VisualGraphListenerevent - the VisualGraphEvent
structure that contains the event information.AbstractVisualGraphTreeStrategy,
VisualGraphListener.visualNodeAdded(VisualGraphEvent)public final void visualNodeRemoved(VisualGraphEvent event)
visualNodeRemoved in interface VisualGraphListenerevent - the VisualGraphEvent
structure that contains the event information.AbstractVisualGraphTreeStrategy,
VisualGraphListener.visualNodeRemoved(VisualGraphEvent)public final void isolatedVisualEdgeAdded(VisualGraphEvent event)
isolatedVisualEdgeAdded in interface VisualGraphListenerevent - the VisualGraphEvent structure
that contains the event information.AbstractVisualGraphTreeStrategy,
VisualGraphListener.isolatedVisualEdgeAdded(VisualGraphEvent)public final void isolatedVisualEdgeRemoved(VisualGraphEvent event)
isolatedVisualEdgeRemoved in interface VisualGraphListenerevent - the VisualGraphEvent structure
that contains the event information.AbstractVisualGraphTreeStrategy,
VisualGraphListener.isolatedVisualEdgeRemoved(VisualGraphEvent)public final void visualEdgeAttachRejected(VisualGraphEvent event)
visualEdgeAttachRejected in interface VisualGraphListenerevent - the VisualGraphEvent structure
that contains the event information.VisualGraphListener.visualEdgeAttachRejected(com.tensegrity.graph.event.VisualGraphEvent)public final void layout(VisualGraphEvent visualgraphevent)
layout in interface VisualGraphListenervisualgraphevent - the VisualGraphEvent structure that
contains the event information.VisualGraphListener.layout(VisualGraphEvent)public final void visualEdgeSplit(VisualGraphEvent visualgraphevent)
visualEdgeSplit in interface VisualGraphListenervisualgraphevent - the VisualGraphEvent structure that
contains the event information.AbstractVisualGraphTreeStrategy,
VisualGraphListener.visualEdgeSplit(com.tensegrity.graph.event.VisualGraphEvent)public final void visualNodeDeleteEdgeCascade(VisualGraphEvent visualgraphevent)
visualNodeDeleteEdgeCascade in interface VisualGraphListenervisualgraphevent - the VisualGraphEvent structure that
contains the event information.AbstractVisualGraphTreeStrategy,
VisualGraphListener.visualNodeDeleteEdgeCascade(com.tensegrity.graph.event.VisualGraphEvent)public final void valueChanged(javax.swing.event.TreeSelectionEvent e)
getSelectionPaths. Returns immediately and does nothing
if the update flag is set to true.
This method delegates some of its implementation to doValueChangedSelectionNull
and doPostValueChanged
valueChanged in interface javax.swing.event.TreeSelectionListenere - a TreeSelectionEventmethod design pattern,
TreeSelectionListener.valueChanged(TreeSelectionEvent)public final void treeExpanded(javax.swing.event.TreeExpansionEvent event)
treeExpanded in interface javax.swing.event.TreeExpansionListenerevent - a TreeExpansionEventTreeExpansionListener.treeExpanded(TreeExpansionEvent)public void treeCollapsed(javax.swing.event.TreeExpansionEvent event)
treeCollapsed in interface javax.swing.event.TreeExpansionListenerTreeExpansionListener.treeCollapsed(TreeExpansionEvent)public void viewAddedComposite(ViewAddCompositeEvent event)
viewAddedComposite in interface CompositeViewListenerevent - the corresponding event.CompositeViewListener.viewAddedComposite(ViewAddCompositeEvent)public void viewAddedComposites(ViewAddCompositesEvent event)
viewAddedComposites in interface CompositeViewListenerevent - the corresponding event.CompositeViewListener.viewAddedComposites(ViewAddCompositesEvent)public void viewRemovedComposite(ViewRemoveCompositeEvent event)
viewRemovedComposite in interface CompositeViewListenerevent - the corresponding event.CompositeViewListener.viewRemovedComposite(ViewRemoveCompositeEvent)public void viewRemovedComposites(ViewRemoveCompositesEvent event)
viewRemovedComposites in interface CompositeViewListenerevent - the corresponding event.CompositeViewListener.viewRemovedComposites(ViewRemoveCompositesEvent)public void viewCompositeOrderChanged(ViewCompositeOrderChangeEvent event)
CompositeViewListenerBaseComposite objects
changes.
viewCompositeOrderChanged in interface CompositeViewListenerevent - the corresponding ViewCompositeOrderChangeEvent
event.public final void viewSelectionChanged(ViewSelectionChangeEvent event)
viewSelectionChanged in interface CompositeViewListenerevent - the corresponding ViewSelectionChangeEvent
event.CompositeViewListener.viewSelectionChanged(ViewSelectionChangeEvent)public void viewParameterChanged(ViewParameterChangeEvent event)
viewParameterChanged in interface CompositeViewListenerevent - the corresponding ViewParameterChangeEvent
event.CompositeViewListener.viewParameterChanged(com.tensegrity.composite.event.view.ViewParameterChangeEvent)public void viewModeChanged(ViewModeChangeEvent event)
viewModeChanged in interface CompositeViewListenerevent - the corresponding ViewModeChangeEvent
event.CompositeViewListener.viewModeChanged(com.tensegrity.composite.event.view.ViewModeChangeEvent)public void documentModelChanged(DocumentEvent documentevent)
documentModelChanged in interface DocumentListenerdocumentevent - the documentevent structure carrying information.DocumentListener.documentModelChanged(DocumentEvent)public void documentAdded(DocumentEvent documentEvent)
documentSelected.
documentAdded in interface DocumentListenerdocumentEvent - the documentevent structure carrying information.DocumentListener.documentAdded(DocumentEvent)
public void documentPreAdd(DocumentEvent documentEvent)
throws DocumentEventVetoException
documentPreAdd in interface DocumentListenerdocumentEvent - the documentevent structure carrying information.
DocumentEventVetoException - indicates that the documentevent is
not desired.DocumentListener.documentPreAdd(DocumentEvent)
public void documentPreRemove(DocumentEvent documentEvent)
throws DocumentEventVetoException
documentPreRemove in interface DocumentListenerdocumentEvent - the documentevent structure carrying information.
DocumentEventVetoException - indicates that the documentevent is
not desired.DocumentListener.documentPreRemove(DocumentEvent)public void documentRemoved(DocumentEvent documentEvent)
documentRemoved in interface DocumentListenerdocumentEvent - the documentevent structure carrying information.DocumentListener.documentRemoved(DocumentEvent)public void documentSelected(DocumentEvent documentEvent)
documentSelected in interface DocumentListenerdocumentEvent - the documentevent structure carrying information.method design pattern,
DocumentListener.documentSelected(DocumentEvent)public void documentUnselected(DocumentEvent documentEvent)
documentUnselected updates the model- and the
expanded map with the model and ExpandedEnumeration of the current
deselected graph. Also this Tree is removed from the listener lists of
the visualgraph.
documentUnselected in interface DocumentListenerdocumentEvent - the documentevent structure carrying information.DocumentListener.documentUnselected(DocumentEvent)public final void applyEvList()
EvaluableUIItemEvaluationList.
applyEvList in interface EvaluableEvaluable.applyEvList()public final void installEvList()
Evaluable
installEvList in interface EvaluableEvaluable.installEvList()protected void doValueChangedSelectionNull()
Method called by valueChanged(TreeSelectionEvent e) in order to let subclasses react accordingly when no BaseInteractable is selected on the TreeOutliner. Does nothing if the activeDocument (see method getActiveDocument()) is not a GraphDocument.
BaseInteractable,
method design patternprotected void doPostValueChanged(java.util.List selection)
Method called at the end of valueChanged(TreeSelectionEvent e) in order to let subclasses deal themselves with the list of selected "Interactables". Note that it is not called if no "Interactables" are selected on the Tree. This is internally setting the selection on the VisualGraphView of the ActiveDocument, updating the AttributeEditor and ensuring that the selection is visible.
selection - List of BaseInteractable objectsmethod design pattern,
BaseInteractableprotected java.util.List doGetSelectionBeforeUpdateModel()
Method called by updateModel() before it internally sets the TreeModel in order
to let subclasses retrieve themselves the selection on their Document.
Returns an empty list if the lastSelected document is not a GraphDocument.
method design patternprotected void doAddListeners(Document doc)
Method called by documentSelected(DocumentEvent).
Use this method in order to add listeners to the active document when it
is selected.
Does nothing if the document is not a GraphDocument.
doc - The document we might want to listen to. This is the active document.method design pattern,
GraphDocumentprotected void doRemoveListeners(Document doc)
Method called by clearModel(Document).
Use this method in order to remove listeners of the active document when it
is unselected or removed.
Does nothing if the document is not a GraphDocument.
doc - The document we might want to listen to. This is the active document.method design pattern,
GraphDocumentprotected javax.swing.tree.TreePath doRetrieveSelection(java.lang.Object selection)
Method called by setSelection(Object) and setSelection(Object[]). Use this method in order to retrieve the TreePath of the TreeNode corresponding to the passed "BaseInteractable". Returns null if the parameter is null, if it is not a VisualGraphObject or if findNodeByID provided by the current AbstractTreeStrategy returns null.
selection - An BaseInteractable which was selected.
method design pattern,
AbstractTreeStrategy
protected void collectSelectables(javax.swing.tree.TreePath path,
java.util.List list)
path parameter is a VisualGraphObject for which
the BaseComposite is an BaseInteractable, the BaseComposite
is added the the list list.
path - the path to check for BaseInteractable instanceslist - the list to use for storagepublic final void updateModel()
method design patternpublic java.util.Enumeration getDescendantToggledPaths(javax.swing.tree.TreePath parent)
JTree.getDescendantToggledPaths(javax.swing.tree.TreePath)public void groupAddedComposite(GroupAddCompositeEvent event)
CompositeGroupListenerComposite has been added
to a CompositeGroup. The GroupAddCompositeEvent
given by event carries the information a
CompositeGroupListener could be interested in.
groupAddedComposite in interface CompositeGroupListenerevent - the event that carries the informationCompositeGroupListener.groupAddedComposite(com.tensegrity.composite.event.group.GroupAddCompositeEvent)public void groupAddedComposites(GroupAddCompositesEvent event)
CompositeGroupListenerList of
Composites has been added to a CompositeGroup.
The GroupAddCompositesEvent given by event
carries the information a CompositeGroupListener could be
interested in.
groupAddedComposites in interface CompositeGroupListenerevent - the event that carries the informationCompositeGroupListener.groupAddedComposites(com.tensegrity.composite.event.group.GroupAddCompositesEvent)public void groupFoldStateChanged(GroupFoldStateChange event)
CompositeGroupListenerCompositeGroup has been changed.
The GroupFoldStateChange event given by event
carries the information a CompositeGroupListener could be
interested in.
groupFoldStateChanged in interface CompositeGroupListenerevent - the event that carries the information.CompositeGroupListener.groupFoldStateChanged(com.tensegrity.composite.event.group.GroupFoldStateChange)public void groupFoldStatePreChange(GroupFoldStateChange event)
CompositeGroupListenerCompositeGroup is up to be changed.
groupFoldStatePreChange in interface CompositeGroupListenerevent - the event that carries the information.CompositeGroupListener.groupFoldStatePreChange(com.tensegrity.composite.event.group.GroupFoldStateChange)public void groupRemovedComposite(GroupRemoveCompositeEvent event)
CompositeGroupListenerComposite has been removed
from a CompositeGroup.
The GroupRemoveCompositeEvent given by event
carries the information a CompositeGroupListener could be
interested in.
groupRemovedComposite in interface CompositeGroupListenerevent - the event that carries the informationCompositeGroupListener.groupRemovedComposite(com.tensegrity.composite.event.group.GroupRemoveCompositeEvent)public void groupRemovedComposites(GroupRemoveCompositesEvent event)
CompositeGroupListenerList of
Composites has been removed from a
CompositeGroup.
The GroupRemoveCompositesEvent given by event
carries the information a CompositeGroupListener could be
interested in.
groupRemovedComposites in interface CompositeGroupListenerevent - the event that carries the informationCompositeGroupListener.groupRemovedComposites(com.tensegrity.composite.event.group.GroupRemoveCompositesEvent)public void groupSelectionChanged(GroupSelectionChangeEvent event)
CompositeGroupListenerCompositeGroup has been changed.
The GroupSelectionChangeEvent given by event
carries the information a CompositeGroupListener could be
interested in.
groupSelectionChanged in interface CompositeGroupListenerevent - the event that carries the informationCompositeGroupListener.groupSelectionChanged(com.tensegrity.composite.event.group.GroupSelectionChangeEvent)public void groupCompositeOrderChanged(GroupCompositeOrderChangeEvent event)
CompositeGroupListenerBaseComposite objects changes.
groupCompositeOrderChanged in interface CompositeGroupListenerevent - the corresponding
GroupCompositeOrderChangeEvent event.public void groupSizeAdjusted(GroupSizeAdjustmentEvent event)
CompositeGroupListenerCompositeGroup
has been changed by the CompositeGroup itself.
CompositeGroup.
groupSizeAdjusted in interface CompositeGroupListenerevent - the event that carries the information.CompositeGroupListener.groupSizeAdjusted(com.tensegrity.composite.event.group.GroupSizeAdjustmentEvent)public int getUniqueID(VisualGraphObject vgo)
This method returns a unique ID for a given
.
VisualGraphObject
vgo - VisualGraphObject for which the unique id is
requested.
vgo.public void visualNodeAdded(VisualNodeEvent event)
VisualNodeListenerVisualNode is added.
visualNodeAdded in interface VisualNodeListenerevent - the event structure carrying additional information.public void visualNodeRemoved(VisualNodeEvent event)
VisualNodeListenerVisualNode is removed.
visualNodeRemoved in interface VisualNodeListenerevent - the event structure carrying additional information.public void visualPortAdded(VisualNodeEvent event)
VisualNodeListenerVisualPort is added
to a
VisualNode.
visualPortAdded in interface VisualNodeListenerpublic void visualPortRemoved(VisualNodeEvent event)
VisualNodeListenerVisualPort is removed
from a
VisualNode.
visualPortRemoved in interface VisualNodeListenerevent - the structure that holds details about
the event.public void visualEdgeAdded(VisualEdgeEvent event)
VisualEdgeListenerVisualEdge is added.
visualEdgeAdded in interface VisualEdgeListenerevent - the event structure carrying additional information.public void visualEdgeRemoved(VisualEdgeEvent event)
VisualEdgeListenerVisualEdge is removed.
visualEdgeRemoved in interface VisualEdgeListenerevent - the event structure carrying additional information.public void isolatedVisualEdgeAdded(VisualEdgeEvent event)
VisualEdgeListenerVisualEdge is added.
isolatedVisualEdgeAdded in interface VisualEdgeListenerevent - the event structure carrying additional information.public void isolatedVisualEdgeRemoved(VisualEdgeEvent event)
VisualEdgeListenerVisualEdge is removed.
isolatedVisualEdgeRemoved in interface VisualEdgeListenerevent - the event structure carrying additional information.public void compositeChanged(LineChangedEvent event)
CompositeLineListenerCompositeLine has been
changed but for the change is no specialized callback defined.
compositeChanged in interface CompositeLineListenerevent - the LineChangedEventLineChangedEventpublic void compositePreManipulating(LineManipulationEvent event)
CompositeLineListenerCompositeLine starts.
compositePreManipulating in interface CompositeLineListenerevent - the LineManipulationEvent event instanceLineManipulationEventpublic void compositeManipulating(LineManipulationEvent event)
CompositeLineListener
This method is called while a CompositeLine is being
manipulated.
Notice that this method is only called while interaction with the
CompositeLine is taking place and not when manipulate it by
the interface methods.
compositeManipulating in interface CompositeLineListenerevent - the LineManipulationEvent event instanceLineManipulationEventpublic void compositePostManipulating(LineManipulationEvent event)
CompositeLineListenerCompositeLine has been
manipulated.
compositePostManipulating in interface CompositeLineListenerevent - the LineManipulationEvent event instanceLineManipulationEventpublic void compositePreMoving(LineMoveEvent event)
CompositeLineListenerCompositeLine is being moved
around.
compositePreMoving in interface CompositeLineListenerevent - the LineMoveEvent event instance- See Also:
LineMoveEventpublic void compositeMoving(LineMoveEvent event)
CompositeLineListener
This method is called while a CompositeLine is being moved
around.
Notice that this method is only called while interaction with the
CompositeLine is taking place and not when moving it by the
interface methods.
compositeMoving in interface CompositeLineListenerevent - the LineMoveEvent event instance- See Also:
LineMoveEventpublic void compositePostMoving(LineMoveEvent event)
CompositeLineListenerCompositeLine has been moved.
compositePostMoving in interface CompositeLineListenerevent - the LineMoveEvent event instance- See Also:
LineMoveEventpublic void preSelect(BCSelectEvent event)
BaseCompositeListenerComposite is being selected.
preSelect in interface BaseCompositeListenerevent - the SelectEventBCSelectEventpublic void postSelect(BCSelectEvent event)
BaseCompositeListenerComposite has been
selected.
postSelect in interface BaseCompositeListenerevent - the SelectEventBCSelectEventpublic void mouseEnter(BCMouseEvent event)
BaseCompositeListenerBaseComposite. Enter means that the hotspot of the mouse
cursor lies within the bounding box of the BaseComposite
mouseEnter in interface BaseCompositeListenerevent - the BCMouseEventpublic void mouseExit(BCMouseEvent event)
BaseCompositeListenerBaseComposite. Exit means that the hotspot of the mouse
cursor lies no longer within the bounding box of the
BaseComposite
mouseExit in interface BaseCompositeListenerevent - the BCMouseEventpublic void mouseDown(BCMouseEvent event)
BaseCompositeListenerBaseComposite.
mouseDown in interface BaseCompositeListenerevent - the BCMouseEventpublic void mouseUp(BCMouseEvent event)
BaseCompositeListenerBaseComposite and it will be released.
mouseUp in interface BaseCompositeListenerevent - the BCMouseEventpublic void mouseClick(BCMouseEvent event)
BaseCompositeListenerBaseComposite.
mouseClick in interface BaseCompositeListenerevent - the BCMouseEventpublic void compositeChanged(ChangedEvent event)
CompositeListenerComposite has been changed
but for the change is no specialized callback defined.
compositeChanged in interface CompositeListenerevent - the ChangedEventChangedEventpublic void compositePreMoving(MoveEvent event)
CompositeListenerComposite is being moved
around. Throwing a CompositeEventVetoException prevents
movement of the Composite completely.
compositePreMoving in interface CompositeListenerevent - the LineMoveEvent- See Also:
MoveEventpublic void compositeMoving(MoveEvent event)
CompositeListener
This method is called while a Composite is being moved
around. Throwing a CompositeEventVetoException prevents
movement of the Composite to the actual position.
For instance this can be used to avoid that the Composite is
being moved to a location that is not acceptable.
Notice that this method is only called while interaction with the
Composite is taking place and not when moving it by the
interface methods.
compositeMoving in interface CompositeListenerevent - the MoveEvent- See Also:
MoveEventpublic void compositePostMoving(MoveEvent event)
CompositeListenerComposite has been moved.
compositePostMoving in interface CompositeListenerevent - the MoveEvent- See Also:
MoveEventpublic void compositePreResizing(ResizeEvent event)
CompositeListenerComposite is about to be
resized. Throwing a CompositeEventVetoException prevents
resizement of the Composite completely.
compositePreResizing in interface CompositeListenerevent - the ResizeEvent- See Also:
ResizeEventpublic void compositeResizing(ResizeEvent event)
CompositeListener
This method is called while a Composite is being resized.
Throwing a CompositeEventVetoException prevents resizement
of the Composite to the actual size.
For instance this can be used to avoid that the Composite is
being resized to a size that is not acceptable.
Notice that this method is only called while interaction with the
Composite is taking place and not when resize it by the
interface methods.
compositeResizing in interface CompositeListenerevent - the ResizeEvent- See Also:
ResizeEventpublic void compositePostResizing(ResizeEvent event)
CompositeListenerComposite has been resized.
compositePostResizing in interface CompositeListenerevent - the ResizeEvent- See Also:
ResizeEventpublic void attributesChanged(AttributableOnSetEvent attributableOnSetEvent)
AttributableOnSetListenerAttributableOnSet object
has changed.
attributesChanged in interface AttributableOnSetListenerattributableOnSetEvent - the event carrying information.
protected boolean removeDescendantSelectedPaths(javax.swing.tree.TreePath path,
boolean includePath)
public void viewScrolled(ViewScrolledEvent event)
CompositeViewListener
viewScrolled in interface CompositeViewListenerevent - the corresponding ViewScrollingEvent
event.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||