p3j.gui.panels.results
Class ResultTreeNode
java.lang.Object
javax.swing.tree.DefaultMutableTreeNode
p3j.gui.panels.projections.ProjectionTreeNode<ResultsOfTrial>
p3j.gui.panels.results.ResultTreeNode
- All Implemented Interfaces:
- Serializable, Cloneable, MutableTreeNode, TreeNode
public class ResultTreeNode
- extends ProjectionTreeNode<ResultsOfTrial>
Represents a node for a single predicted trajectory.
- Author:
- Christina Bohk, Roland Ewald
- See Also:
- Serialized Form
Methods inherited from class p3j.gui.panels.projections.ProjectionTreeNode |
getChilds, getChildsByType, getChildsByType, getChildWithEntity, getContentPanel, getEntity, getEntityClass, getProjectionEntity, getProjectionEntity, getProjectionTreeNodeOnPath, refreshRecursively, refreshRepresentation, selected |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
ResultTreeNode
public ResultTreeNode(ResultsOfTrial trialResult,
int number)
- Instantiates a new result tree node.
- Parameters:
trialResult
- the trial resultnumber
- the number
selected
public JPanel selected(TreePath selectionPath,
IProjectionTree projTree)
- Description copied from class:
ProjectionTreeNode
- Method that is called by
ProjectionTreeNode#selected(TreePath, JPanel, DefaultTreeModel, javax.swing.JTree)
originally. Implementations of ProjectionTreeNode
might override
either of the 'selected' methods, this one is more convenient as it stores
the generated panel in an auxiliary variable and does not require to add
the panel manually, it just needs to be returned.
- Overrides:
selected
in class ProjectionTreeNode<ResultsOfTrial>
- Parameters:
selectionPath
- the path containing all ancestorsprojTree
- the projection tree
- Returns:
- panel with a node summary
deselected
public void deselected()
- Description copied from class:
ProjectionTreeNode
- Method that is called by the
TreeSelectionListener
when this node gets
de-selected.
- Overrides:
deselected
in class ProjectionTreeNode<ResultsOfTrial>
getEntityLabel
public String getEntityLabel()
- Description copied from class:
ProjectionTreeNode
- Gets the user object string.
- Overrides:
getEntityLabel
in class ProjectionTreeNode<ResultsOfTrial>
- Returns:
- the object string
Copyright © 2012. All Rights Reserved.