public class KahinaMemTree extends KahinaUnlayeredMemTree
Modifier and Type | Field and Description |
---|---|
static boolean |
VERBOSE |
children, collapsed, edgeLabels, layers, nodeCaptions, parents, status
decider
needsUpdate
Constructor and Description |
---|
KahinaMemTree() |
KahinaMemTree(LayerDecider decider) |
Modifier and Type | Method and Description |
---|---|
int |
getBestEquivalent(int nodeID,
int layerID)
Returns the lowest ancestor of nodeID whose layer is lower than or equals layerID.
|
java.util.List<java.lang.Integer> |
getChildren(int nodeID,
int layer,
boolean stopAtCornerstones)
Returns the virtual children of a node, i.e.
|
int |
getParent(int nodeID,
int layerID)
Returns the lowest ancestor of nodeID whose layer is lower than or equals
layerID.
|
int |
getRootID(int layerID) |
int |
getRootID(int layerID,
int referenceNode) |
static KahinaTree |
importXML(org.w3c.dom.Document dom,
LayerDecider decider) |
addChild, addChildAddListener, addNode, addNode, clear, collapse, collectLeaves, decollapse, decollapseAll, getAllNodeIDs, getChildren, getEdgeLabel, getLayer, getLeaves, getNextFreeID, getNodeCaption, getNodeStatus, getParent, getSize, importXML, isCollapsed, removeChildAddListener, removeLeaf, setEdgeLabel, setLayer, setNodeCaption, setNodeStatus, toString
announceChange, exportXML, getLayerDecider, getPrimaryModel, getReferenceNode, getRootID, hasCollapsedAncestor, needsUpdate, setLayerDecider, setPrimaryModel, setReferenceNode, setRootID, toggleCollapse
requireUpdate
public static final boolean VERBOSE
public KahinaMemTree()
public KahinaMemTree(LayerDecider decider)
public int getRootID(int layerID, int referenceNode)
getRootID
in class KahinaUnlayeredMemTree
public int getRootID(int layerID)
getRootID
in class KahinaUnlayeredMemTree
public int getParent(int nodeID, int layerID)
getParent
in class KahinaUnlayeredMemTree
public int getBestEquivalent(int nodeID, int layerID)
getBestEquivalent
in class KahinaUnlayeredMemTree
public java.util.List<java.lang.Integer> getChildren(int nodeID, int layer, boolean stopAtCornerstones)
getChildren
in class KahinaUnlayeredMemTree
nodeID
- layer
- stopAtCornerstones
- If true
, the empty list is returned unless the layer
of nodeID is greater than or equals layerID OR nodeID is the
root of the tree fragment currently being drawn as indicated
by referenceNode (otherwise returns the empty list).public static KahinaTree importXML(org.w3c.dom.Document dom, LayerDecider decider)