public class HepRepTreeModel extends WiredTreeModel
WiredTreeModel.WiredTreeModel.MarkEvent, WiredTreeModel.MarkListener, WiredTreeModel.TreeVisitor| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_isTypeTree |
_selectionasksAllowsChildren, listenerList, root| Constructor and Description |
|---|
HepRepTreeModel(hep.graphics.heprep.HepRep heprep,
boolean isTypeTree) |
HepRepTreeModel(HepRepTreeModel model) |
| Modifier and Type | Method and Description |
|---|---|
HepRepTreeModel |
clone(hep.graphics.heprep.HepRep heprep)
Creates and returns a new tree model containing objects from the specified heprep,
with expansion and mark states of all nodes copied from this HepRepTreeModel.
|
List<TreePath> |
getExpandedPaths()
Returns a list of expanded paths, in order of decreasing path length.
|
Set |
getMarkedObjects()
Returns a set of objects in "marked" nodes, excluding levels 0 and 1.
|
Set |
getMarkedObjects(int maxLevel)
Returns a set of objects in "marked" nodes in levels 2 through maxLevel.
|
int |
getMaximumDepth() |
static String |
getName(Object payload)
Returns the name of the specified HepRep object - to be used in display and sorting.
|
void |
restoreTreeState(String key) |
void |
saveTreeState(String key) |
addMarkListener, fireMarkChanged, fireMarkChanged, getRoot, getRootPath, getSelectionModel, removeMarkListener, setRoot, treeCollapsed, treeExpandedaddTreeModelListener, asksAllowsChildren, fireTreeNodesChanged, fireTreeNodesInserted, fireTreeNodesRemoved, fireTreeStructureChanged, getChild, getChildCount, getIndexOfChild, getListeners, getPathToRoot, getPathToRoot, getTreeModelListeners, insertNodeInto, isLeaf, nodeChanged, nodesChanged, nodeStructureChanged, nodesWereInserted, nodesWereRemoved, reload, reload, removeNodeFromParent, removeTreeModelListener, setAsksAllowsChildren, valueForPathChangedpublic HepRepTreeModel(hep.graphics.heprep.HepRep heprep,
boolean isTypeTree)
public HepRepTreeModel(HepRepTreeModel model)
public int getMaximumDepth()
public Set getMarkedObjects()
getMarkedObjects in class WiredTreeModelpublic Set getMarkedObjects(int maxLevel)
public List<TreePath> getExpandedPaths()
public static String getName(Object payload)
public void saveTreeState(String key)
public void restoreTreeState(String key)
public HepRepTreeModel clone(hep.graphics.heprep.HepRep heprep)
Copyright © 1996-2014 FreeHEP. All Rights Reserved.