Class SelectionTreeModel

    • Constructor Detail

      • SelectionTreeModel

        public SelectionTreeModel(Selection selection)
        Create a new SelectionTreeModel for the denoted selection.
        Parameters:
        selection - the selection to build a model for.
    • Method Detail

      • getRoot

        public Object getRoot()
      • getSelection

        public Selection getSelection()
        Returns:
        the selection object.
      • getChild

        public Object getChild(Object parent,
                               int index)
      • getChildCount

        public int getChildCount(Object parent)
      • isLeaf

        public boolean isLeaf(Object node)
      • valueForPathChanged

        public void valueForPathChanged(TreePath path,
                                        Object newValue)
      • getIndexOfChild

        public int getIndexOfChild(Object parent,
                                   Object child)
      • pixelValuesChanged

        public void pixelValuesChanged()
        Description copied from interface: SelectionChangeListener
        Triggered when the pixel instance's values changed.
      • geographicValuesChanged

        public void geographicValuesChanged()
        Description copied from interface: SelectionChangeListener
        Triggered when the geographic instance's values changed.
      • selectionChanged

        public void selectionChanged()
        Description copied from interface: SelectionChangeListener
        Triggered when a complex change happened to the selection.
      • remove

        public void remove(TreePath path)
        Remove the element pointed to with the denoted path.
        Parameters:
        path - the element to remove.
      • getIndexForPath

        public int getIndexForPath(TreePath path)
        Retrieve the index of the denoted path within the tree.
        Parameters:
        path - the path to retrieve the index for.
        Returns:
        the index within the tree.
      • getGeometry

        public Geometry getGeometry(TreePath path)
        Retrieve the geometry at the denoted path within the tree.
        Parameters:
        path - the path to retrieve the geometry for.
        Returns:
        the geometry.