Class CategoryExplorerModel

    • Constructor Detail

      • CategoryExplorerModel

        public CategoryExplorerModel​(CategoryNode node)
    • Method Detail

      • addLogRecord

        public void addLogRecord​(LogRecord lr)
      • getRootCategoryNode

        public CategoryNode getRootCategoryNode()
      • isCategoryPathActive

        public boolean isCategoryPathActive​(CategoryPath path)
        Returns:
        true if all the nodes in the specified CategoryPath are selected.
      • addCategory

        public CategoryNode addCategory​(CategoryPath path)

        Method altered by Richard Hurst such that it returns the CategoryNode corresponding to the CategoryPath

        Parameters:
        path - category path.
        Returns:
        CategoryNode
      • update

        public void update​(CategoryNode node,
                           boolean selected)
      • setDescendantSelection

        public void setDescendantSelection​(CategoryNode node,
                                           boolean selected)
      • setParentSelection

        public void setParentSelection​(CategoryNode node,
                                       boolean selected)
      • addActionListener

        public void addActionListener​(ActionListener l)
      • removeActionListener

        public void removeActionListener​(ActionListener l)
      • resetAllNodeCounts

        public void resetAllNodeCounts()
      • getTreePathToRoot

        public TreePath getTreePathToRoot​(CategoryNode node)

        Returns the CategoryPath to the specified CategoryNode

        Parameters:
        node - The target CategoryNode
        Returns:
        CategoryPath
      • notifyActionListeners

        protected void notifyActionListeners()
      • refresh

        protected void refresh​(CategoryNode node)
        Fires a nodechanged event on the SwingThread.