public class BugTreeModel
extends java.lang.Object
implements javax.swing.tree.TreeModel, javax.swing.event.TableColumnModelListener, javax.swing.event.TreeExpansionListener
Modifier and Type | Field and Description |
---|---|
static boolean |
TRACE |
Constructor and Description |
---|
BugTreeModel(BugTreeModel other) |
BugTreeModel(MainFrame mainFrame,
javax.swing.JTree tree,
SorterTableColumnModel st,
BugSet data) |
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(javax.swing.event.TreeModelListener listener) |
void |
clearViewCache() |
void |
columnAdded(javax.swing.event.TableColumnModelEvent e) |
void |
columnMarginChanged(javax.swing.event.ChangeEvent arg0) |
void |
columnMoved(javax.swing.event.TableColumnModelEvent evt) |
void |
columnRemoved(javax.swing.event.TableColumnModelEvent e) |
void |
columnSelectionChanged(javax.swing.event.ListSelectionEvent arg0) |
void |
crawl(java.util.ArrayList<BugAspects> path,
int depth) |
void |
crawlToOpen(javax.swing.tree.TreePath path,
java.util.ArrayList<BugLeafNode> bugLeafNodes,
java.util.ArrayList<javax.swing.tree.TreePath> treePaths) |
protected void |
finalize() |
java.lang.Object |
getChild(java.lang.Object o,
int index) |
int |
getChildCount(java.lang.Object o) |
int |
getIndexOfChild(java.lang.Object parent,
java.lang.Object child) |
void |
getOffListenerList() |
javax.swing.tree.TreePath |
getPathToBug(BugInstance b) |
javax.swing.tree.TreePath |
getPathToNewlyUnsuppressedBug(BugInstance b) |
java.lang.Object |
getRoot() |
javax.swing.event.TreeModelEvent |
insertBranch(java.util.ArrayList<java.lang.String> stringsToBranch) |
boolean |
isLeaf(java.lang.Object o) |
void |
needToRebuild() |
void |
rebuild()
Swaps in a new BugTreeModel and a new JTree
|
javax.swing.event.TreeModelEvent |
removeBranch(java.util.ArrayList<java.lang.String> stringsToBranch) |
void |
removeTreeModelListener(javax.swing.event.TreeModelListener listener) |
void |
resetData() |
javax.swing.event.TreeModelEvent |
restructureBranch(java.util.ArrayList<java.lang.String> stringsToBranch,
boolean removing) |
void |
sortBranch(javax.swing.tree.TreePath pathToBranch) |
void |
treeCollapsed(javax.swing.event.TreeExpansionEvent event) |
void |
treeExpanded(javax.swing.event.TreeExpansionEvent event) |
void |
valueForPathChanged(javax.swing.tree.TreePath arg0,
java.lang.Object arg1) |
public BugTreeModel(MainFrame mainFrame, javax.swing.JTree tree, SorterTableColumnModel st, BugSet data)
public BugTreeModel(BugTreeModel other)
public void getOffListenerList()
public void clearViewCache()
public java.lang.Object getRoot()
getRoot
in interface javax.swing.tree.TreeModel
public java.lang.Object getChild(java.lang.Object o, int index)
getChild
in interface javax.swing.tree.TreeModel
public int getChildCount(java.lang.Object o)
getChildCount
in interface javax.swing.tree.TreeModel
public boolean isLeaf(java.lang.Object o)
isLeaf
in interface javax.swing.tree.TreeModel
public void valueForPathChanged(javax.swing.tree.TreePath arg0, java.lang.Object arg1)
valueForPathChanged
in interface javax.swing.tree.TreeModel
public int getIndexOfChild(java.lang.Object parent, java.lang.Object child)
getIndexOfChild
in interface javax.swing.tree.TreeModel
public void addTreeModelListener(javax.swing.event.TreeModelListener listener)
addTreeModelListener
in interface javax.swing.tree.TreeModel
public void removeTreeModelListener(javax.swing.event.TreeModelListener listener)
removeTreeModelListener
in interface javax.swing.tree.TreeModel
public void columnAdded(javax.swing.event.TableColumnModelEvent e)
columnAdded
in interface javax.swing.event.TableColumnModelListener
public void columnRemoved(javax.swing.event.TableColumnModelEvent e)
columnRemoved
in interface javax.swing.event.TableColumnModelListener
public void columnMoved(javax.swing.event.TableColumnModelEvent evt)
columnMoved
in interface javax.swing.event.TableColumnModelListener
public void needToRebuild()
public void rebuild()
public void crawl(java.util.ArrayList<BugAspects> path, int depth)
public void crawlToOpen(javax.swing.tree.TreePath path, java.util.ArrayList<BugLeafNode> bugLeafNodes, java.util.ArrayList<javax.swing.tree.TreePath> treePaths)
public void resetData()
public javax.swing.tree.TreePath getPathToBug(BugInstance b)
public javax.swing.tree.TreePath getPathToNewlyUnsuppressedBug(BugInstance b)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void columnMarginChanged(javax.swing.event.ChangeEvent arg0)
columnMarginChanged
in interface javax.swing.event.TableColumnModelListener
public void columnSelectionChanged(javax.swing.event.ListSelectionEvent arg0)
columnSelectionChanged
in interface javax.swing.event.TableColumnModelListener
public void treeExpanded(javax.swing.event.TreeExpansionEvent event)
treeExpanded
in interface javax.swing.event.TreeExpansionListener
public void treeCollapsed(javax.swing.event.TreeExpansionEvent event)
treeCollapsed
in interface javax.swing.event.TreeExpansionListener
public javax.swing.event.TreeModelEvent restructureBranch(java.util.ArrayList<java.lang.String> stringsToBranch, boolean removing) throws edu.umd.cs.findbugs.gui2.BugTreeModel.BranchOperationException
edu.umd.cs.findbugs.gui2.BugTreeModel.BranchOperationException
public javax.swing.event.TreeModelEvent insertBranch(java.util.ArrayList<java.lang.String> stringsToBranch) throws edu.umd.cs.findbugs.gui2.BugTreeModel.BranchOperationException
edu.umd.cs.findbugs.gui2.BugTreeModel.BranchOperationException
public javax.swing.event.TreeModelEvent removeBranch(java.util.ArrayList<java.lang.String> stringsToBranch) throws edu.umd.cs.findbugs.gui2.BugTreeModel.BranchOperationException
edu.umd.cs.findbugs.gui2.BugTreeModel.BranchOperationException
public void sortBranch(javax.swing.tree.TreePath pathToBranch)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.