org.annotation.agschema.graphics.vtree
Class VTreeSelectionModelImpl

java.lang.Object
  extended byorg.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

Field Summary
 
Fields inherited from interface org.annotation.agschema.graphics.vtree.VTreeSelectionModel
DiscontinuousSelection, SiblingSelection, SingleNodeInterpretation, SingleNodeSelection, SubtreeInterpretation
 
Constructor Summary
VTreeSelectionModelImpl(javax.swing.tree.TreeNode root)
          Creates a new instance of VTreeSelectionModelImpl
 
Method Summary
 void add(javax.swing.tree.TreeNode node)
           
 void addListener(VTreeSelectionListener l)
           
 void clear()
           
protected  void fireInterpretationChanged(int oldInterpretation)
           
protected  void fireModeChanged(int oldMode)
           
protected  void fireNodeAdded(javax.swing.tree.TreeNode node)
           
protected  void fireNodeRemoved(javax.swing.tree.TreeNode node)
           
protected  void fireSelectionCleared()
           
 javax.swing.tree.TreeNode getLeadSelectionNode()
           
 javax.swing.tree.TreeNode getRoot()
           
 java.util.Enumeration getSelectedNodes()
           
 int getSelectionInterpretation()
           
 boolean isNodeSelected(javax.swing.tree.TreeNode node)
           
 void propertyChange(java.beans.PropertyChangeEvent evt)
           
 void remove(javax.swing.tree.TreeNode node)
           
 void removeListener(VTreeSelectionListener l)
           
 void setMode(int mode)
           
 void setSelectionInterpretation(int interpretation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VTreeSelectionModelImpl

public VTreeSelectionModelImpl(javax.swing.tree.TreeNode root)
Creates a new instance of VTreeSelectionModelImpl

Method Detail

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