Class GeometryTreeModel
java.lang.Object
org.locationtech.jtstest.testbuilder.GeometryTreeModel
- All Implemented Interfaces:
TreeModel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a listener for the TreeModelEvent posted after the tree changes.Returns the child of parent at index index in the parent's child array.int
getChildCount
(Object parent) Returns the number of children of parent.int
getIndexOfChild
(Object parent, Object child) Returns the index of child in parent.getRoot()
Returns the root of the tree.boolean
Returns true if node is a leaf.void
Removes a listener previously added with addTreeModelListener().void
valueForPathChanged
(TreePath path, Object newValue) Messaged when the user has altered the value for the item identified by path to newValue.
-
Field Details
-
treeModelListeners
-
rootGeom
-
-
Constructor Details
-
GeometryTreeModel
-
-
Method Details
-
addTreeModelListener
Adds a listener for the TreeModelEvent posted after the tree changes.- Specified by:
addTreeModelListener
in interfaceTreeModel
-
getChild
Returns the child of parent at index index in the parent's child array. -
getChildCount
Returns the number of children of parent.- Specified by:
getChildCount
in interfaceTreeModel
-
getIndexOfChild
Returns the index of child in parent.- Specified by:
getIndexOfChild
in interfaceTreeModel
-
getRoot
Returns the root of the tree. -
isLeaf
Returns true if node is a leaf. -
removeTreeModelListener
Removes a listener previously added with addTreeModelListener().- Specified by:
removeTreeModelListener
in interfaceTreeModel
-
valueForPathChanged
Messaged when the user has altered the value for the item identified by path to newValue. Not used by this model.- Specified by:
valueForPathChanged
in interfaceTreeModel
-