Class GeometryTreeModel

java.lang.Object
org.locationtech.jtstest.testbuilder.GeometryTreeModel
All Implemented Interfaces:
TreeModel

public class GeometryTreeModel extends Object implements TreeModel
  • Field Details

    • SORT_AREA_ASC

      public static Comparator<org.locationtech.jtstest.testbuilder.GeometricObjectNode> SORT_AREA_ASC
    • SORT_AREA_DESC

      public static Comparator<org.locationtech.jtstest.testbuilder.GeometricObjectNode> SORT_AREA_DESC
    • SORT_LEN_ASC

      public static Comparator<org.locationtech.jtstest.testbuilder.GeometricObjectNode> SORT_LEN_ASC
    • SORT_LEN_DESC

      public static Comparator<org.locationtech.jtstest.testbuilder.GeometricObjectNode> SORT_LEN_DESC
    • SORT_NUMPTS_ASC

      public static Comparator<org.locationtech.jtstest.testbuilder.GeometricObjectNode> SORT_NUMPTS_ASC
    • SORT_NUMPTS_DESC

      public static Comparator<org.locationtech.jtstest.testbuilder.GeometricObjectNode> SORT_NUMPTS_DESC
  • Constructor Details

    • GeometryTreeModel

      public GeometryTreeModel(Geometry geom, int source, Comparator comp)
  • Method Details

    • addTreeModelListener

      public void addTreeModelListener(TreeModelListener l)
      Adds a listener for the TreeModelEvent posted after the tree changes.
      Specified by:
      addTreeModelListener in interface TreeModel
    • getChild

      public Object getChild(Object parent, int index)
      Returns the child of parent at index index in the parent's child array.
      Specified by:
      getChild in interface TreeModel
    • getChildCount

      public int getChildCount(Object parent)
      Returns the number of children of parent.
      Specified by:
      getChildCount in interface TreeModel
    • getIndexOfChild

      public int getIndexOfChild(Object parent, Object child)
      Returns the index of child in parent.
      Specified by:
      getIndexOfChild in interface TreeModel
    • getRoot

      public Object getRoot()
      Returns the root of the tree.
      Specified by:
      getRoot in interface TreeModel
    • isLeaf

      public boolean isLeaf(Object node)
      Returns true if node is a leaf.
      Specified by:
      isLeaf in interface TreeModel
    • removeTreeModelListener

      public void removeTreeModelListener(TreeModelListener l)
      Removes a listener previously added with addTreeModelListener().
      Specified by:
      removeTreeModelListener in interface TreeModel
    • valueForPathChanged

      public void valueForPathChanged(TreePath path, Object newValue)
      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 interface TreeModel