org.annotation.agschema.graphics.vtree
Class VTreeSelectionModelImpl
java.lang.Object
org.annotation.agschema.graphics.vtree.VTreeSelectionModelImpl
- All Implemented Interfaces:
- java.util.EventListener, java.beans.PropertyChangeListener, VTreeSelectionModel
- public class VTreeSelectionModelImpl
- extends java.lang.Object
- implements VTreeSelectionModel
Implementation of the selection model interface.
- Author:
- nikhild
|
Constructor Summary |
VTreeSelectionModelImpl(javax.swing.tree.TreeNode root)
Creates a new instance of VTreeSelectionModelImpl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VTreeSelectionModelImpl
public VTreeSelectionModelImpl(javax.swing.tree.TreeNode root)
- Creates a new instance of VTreeSelectionModelImpl
fireNodeAdded
protected void fireNodeAdded(javax.swing.tree.TreeNode node)
fireNodeRemoved
protected void fireNodeRemoved(javax.swing.tree.TreeNode node)
fireSelectionCleared
protected void fireSelectionCleared()
fireModeChanged
protected void fireModeChanged(int oldMode)
fireInterpretationChanged
protected void fireInterpretationChanged(int oldInterpretation)
add
public void add(javax.swing.tree.TreeNode node)
- Specified by:
add in interface VTreeSelectionModel
addListener
public void addListener(VTreeSelectionListener l)
- Specified by:
addListener in interface VTreeSelectionModel
removeListener
public void removeListener(VTreeSelectionListener l)
- Specified by:
removeListener in interface VTreeSelectionModel
clear
public void clear()
- Specified by:
clear in interface VTreeSelectionModel
getRoot
public javax.swing.tree.TreeNode getRoot()
- Specified by:
getRoot in interface VTreeSelectionModel
getSelectedNodes
public java.util.Enumeration getSelectedNodes()
- Specified by:
getSelectedNodes in interface VTreeSelectionModel
getLeadSelectionNode
public javax.swing.tree.TreeNode getLeadSelectionNode()
- Specified by:
getLeadSelectionNode in interface VTreeSelectionModel
remove
public void remove(javax.swing.tree.TreeNode node)
- Specified by:
remove in interface VTreeSelectionModel
setMode
public void setMode(int mode)
- Specified by:
setMode in interface VTreeSelectionModel
isNodeSelected
public boolean isNodeSelected(javax.swing.tree.TreeNode node)
- Specified by:
isNodeSelected in interface VTreeSelectionModel
setSelectionInterpretation
public void setSelectionInterpretation(int interpretation)
- Specified by:
setSelectionInterpretation in interface VTreeSelectionModel
getSelectionInterpretation
public int getSelectionInterpretation()
- Specified by:
getSelectionInterpretation in interface VTreeSelectionModel
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- Specified by:
propertyChange in interface java.beans.PropertyChangeListener