Class GeometryTreeModel

    • Field Detail

      • SORT_AREA_ASC

        public static Comparator SORT_AREA_ASC
      • SORT_AREA_DESC

        public static Comparator SORT_AREA_DESC
      • SORT_LEN_ASC

        public static Comparator SORT_LEN_ASC
      • SORT_LEN_DESC

        public static Comparator SORT_LEN_DESC
    • Constructor Detail

      • GeometryTreeModel

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

      • 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
      • 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
      • 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