Class GeometryTreeModel
java.lang.Object
org.locationtech.jtstest.testbuilder.GeometryTreeModel
- All Implemented Interfaces:
TreeModel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic Comparator<org.locationtech.jtstest.testbuilder.GeometricObjectNode> static Comparator<org.locationtech.jtstest.testbuilder.GeometricObjectNode> static Comparator<org.locationtech.jtstest.testbuilder.GeometricObjectNode> static Comparator<org.locationtech.jtstest.testbuilder.GeometricObjectNode> static Comparator<org.locationtech.jtstest.testbuilder.GeometricObjectNode> static Comparator<org.locationtech.jtstest.testbuilder.GeometricObjectNode> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener for the TreeModelEvent posted after the tree changes.Returns the child of parent at index index in the parent's child array.intgetChildCount(Object parent) Returns the number of children of parent.intgetIndexOfChild(Object parent, Object child) Returns the index of child in parent.getRoot()Returns the root of the tree.booleanReturns true if node is a leaf.voidRemoves a listener previously added with addTreeModelListener().voidvalueForPathChanged(TreePath path, Object newValue) Messaged when the user has altered the value for the item identified by path to newValue.
-
Field Details
-
SORT_AREA_ASC
-
SORT_AREA_DESC
-
SORT_LEN_ASC
-
SORT_LEN_DESC
-
SORT_NUMPTS_ASC
-
SORT_NUMPTS_DESC
-
-
Constructor Details
-
GeometryTreeModel
-
-
Method Details
-
addTreeModelListener
Adds a listener for the TreeModelEvent posted after the tree changes.- Specified by:
addTreeModelListenerin interfaceTreeModel
-
getChild
-
getChildCount
Returns the number of children of parent.- Specified by:
getChildCountin interfaceTreeModel
-
getIndexOfChild
Returns the index of child in parent.- Specified by:
getIndexOfChildin interfaceTreeModel
-
getRoot
-
isLeaf
-
removeTreeModelListener
Removes a listener previously added with addTreeModelListener().- Specified by:
removeTreeModelListenerin 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:
valueForPathChangedin interfaceTreeModel
-