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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the tree model listener.Gets the child.intgetChildCount(Object parent) Gets the child count.getFSs()Gets the f ss.intgetIndexOfChild(Object parent, Object child) Gets the index of child.getRoot()Gets the root.booleanChecks if is leaf.pathToNode(int fsNum) Path to node.voidRemoves the tree model listener.voidreset()Reset.voidUpdate.voidvalueForPathChanged(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:
getChildCountin interfaceTreeModel- Parameters:
parent- the parent- Returns:
- the child count
- See Also:
-
isLeaf
Checks if is leaf. -
valueForPathChanged
Value for path changed.- Specified by:
valueForPathChangedin interfaceTreeModel- Parameters:
path- the pathnewValue- the new value- See Also:
-
getIndexOfChild
Gets the index of child.- Specified by:
getIndexOfChildin interfaceTreeModel- Parameters:
parent- the parentchild- the child- Returns:
- the index of child
- See Also:
-
addTreeModelListener
Adds the tree model listener.- Specified by:
addTreeModelListenerin interfaceTreeModel- Parameters:
arg0- the arg 0- See Also:
-
removeTreeModelListener
Removes the tree model listener.- Specified by:
removeTreeModelListenerin interfaceTreeModel- Parameters:
arg0- the arg 0- See Also:
-
pathToNode
Path to node.- Parameters:
fsNum- the fs num- Returns:
- the tree path
-