Package org.apache.uima.tools.cvd
Class FSTreeModel
java.lang.Object
org.apache.uima.tools.cvd.FSTreeModel
- All Implemented Interfaces:
TreeModel
Swing Tree Model for Feature Structures.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the tree model listener.Gets the child.int
getChildCount
(Object parent) Gets the child count.getFSs()
Gets the f ss.int
getIndexOfChild
(Object parent, Object child) Gets the index of child.getRoot()
Gets the root.boolean
Checks if is leaf.pathToNode
(int fsNum) Path to node.void
Removes the tree model listener.void
reset()
Reset.void
Update.void
valueForPathChanged
(TreePath path, Object newValue) Value for path changed.
-
Constructor Details
-
FSTreeModel
public FSTreeModel()Constructor for FSTreeModel.
-
-
Method Details
-
update
Update.- Parameters:
indexName
- the index nameindex
- the indexcas1
- the cas 1
-
reset
public void reset()Reset. -
getFSs
Gets the f ss.- Returns:
- the f ss
-
getRoot
Gets the root. -
getChild
Gets the child. -
getChildCount
Gets the child count.- Specified by:
getChildCount
in interfaceTreeModel
- Parameters:
parent
- the parent- Returns:
- the child count
- See Also:
-
isLeaf
Checks if is leaf. -
valueForPathChanged
Value for path changed.- Specified by:
valueForPathChanged
in interfaceTreeModel
- Parameters:
path
- the pathnewValue
- the new value- See Also:
-
getIndexOfChild
Gets the index of child.- Specified by:
getIndexOfChild
in interfaceTreeModel
- Parameters:
parent
- the parentchild
- the child- Returns:
- the index of child
- See Also:
-
addTreeModelListener
Adds the tree model listener.- Specified by:
addTreeModelListener
in interfaceTreeModel
- Parameters:
arg0
- the arg 0- See Also:
-
removeTreeModelListener
Removes the tree model listener.- Specified by:
removeTreeModelListener
in interfaceTreeModel
- Parameters:
arg0
- the arg 0- See Also:
-
pathToNode
Path to node.- Parameters:
fsNum
- the fs num- Returns:
- the tree path
-