public abstract class KahinaTree extends KahinaObject
Modifier and Type | Field and Description |
---|---|
protected LayerDecider |
decider |
needsUpdate
Constructor and Description |
---|
KahinaTree(LayerDecider decider) |
Modifier and Type | Method and Description |
---|---|
abstract void |
addChild(int parent,
int child) |
abstract void |
addChildAddListener(KahinaTreeChildAddListener listener) |
abstract void |
addNode(int id,
java.lang.String caption,
java.lang.String label,
int nodeStatus) |
abstract int |
addNode(java.lang.String caption,
java.lang.String label,
int nodeStatus) |
void |
announceChange() |
void |
clear()
Clears the tree model.
|
abstract void |
collapse(int nodeID) |
protected abstract void |
collectLeaves(int nodeID,
java.util.List<java.lang.Integer> leaves) |
abstract void |
decollapse(int nodeID) |
abstract void |
decollapseAll() |
java.lang.String |
exportXML() |
abstract java.util.Set<java.lang.Integer> |
getAllNodeIDs() |
abstract int |
getBestEquivalent(int nodeID,
int layer) |
abstract java.util.List<java.lang.Integer> |
getChildren(int nodeID) |
abstract java.util.List<java.lang.Integer> |
getChildren(int nodeID,
int layer,
boolean stopAtCornerstones) |
abstract java.lang.String |
getEdgeLabel(int nodeID) |
abstract int |
getLayer(int nodeID) |
LayerDecider |
getLayerDecider() |
java.util.List<java.lang.Integer> |
getLeaves() |
abstract java.lang.String |
getNodeCaption(int nodeID) |
abstract int |
getNodeStatus(int nodeID) |
abstract int |
getParent(int nodeID) |
abstract int |
getParent(int nodeID,
int layer) |
KahinaTree |
getPrimaryModel() |
int |
getReferenceNode() |
int |
getRootID() |
abstract int |
getRootID(int layer) |
abstract int |
getRootID(int layerID,
int referenceNode) |
abstract int |
getSize() |
boolean |
hasCollapsedAncestor(int nodeID) |
abstract boolean |
isCollapsed(int nodeID) |
boolean |
needsUpdate()
States whether a view of this object needs to be updated.
|
abstract void |
removeChildAddListener(KahinaTreeChildAddListener listener) |
abstract boolean |
removeLeaf(int id) |
abstract void |
setEdgeLabel(int nodeID,
java.lang.String label) |
abstract void |
setLayer(int nodeID,
int layer) |
void |
setLayerDecider(LayerDecider decider) |
abstract void |
setNodeCaption(int nodeID,
java.lang.String caption) |
abstract void |
setNodeStatus(int nodeID,
int status) |
void |
setPrimaryModel(KahinaTree primaryModel) |
void |
setReferenceNode(int referenceNode) |
void |
setRootID(int rootID) |
void |
toggleCollapse(int nodeID) |
requireUpdate
protected LayerDecider decider
public KahinaTree(LayerDecider decider)
public void clear()
super.clear()
.public LayerDecider getLayerDecider()
public void setLayerDecider(LayerDecider decider)
public abstract void addNode(int id, java.lang.String caption, java.lang.String label, int nodeStatus)
public abstract int addNode(java.lang.String caption, java.lang.String label, int nodeStatus)
public abstract boolean removeLeaf(int id)
public abstract void decollapseAll()
public abstract void decollapse(int nodeID)
public abstract void collapse(int nodeID)
public abstract boolean isCollapsed(int nodeID)
public java.util.List<java.lang.Integer> getLeaves()
protected abstract void collectLeaves(int nodeID, java.util.List<java.lang.Integer> leaves)
public abstract java.util.List<java.lang.Integer> getChildren(int nodeID)
public abstract java.util.List<java.lang.Integer> getChildren(int nodeID, int layer, boolean stopAtCornerstones)
public abstract int getNodeStatus(int nodeID)
public abstract void setNodeStatus(int nodeID, int status)
public abstract java.lang.String getEdgeLabel(int nodeID)
public abstract void setEdgeLabel(int nodeID, java.lang.String label)
public abstract java.lang.String getNodeCaption(int nodeID)
public abstract void setNodeCaption(int nodeID, java.lang.String caption)
public abstract int getParent(int nodeID, int layer)
public abstract int getBestEquivalent(int nodeID, int layer)
public abstract int getLayer(int nodeID)
public abstract void setLayer(int nodeID, int layer)
public abstract void addChild(int parent, int child)
public abstract void addChildAddListener(KahinaTreeChildAddListener listener)
public abstract void removeChildAddListener(KahinaTreeChildAddListener listener)
public abstract int getRootID(int layer)
public abstract int getRootID(int layerID, int referenceNode)
public abstract java.util.Set<java.lang.Integer> getAllNodeIDs()
public abstract int getSize()
public java.lang.String exportXML()
public KahinaTree getPrimaryModel()
public void setPrimaryModel(KahinaTree primaryModel)
public int getReferenceNode()
public void setReferenceNode(int referenceNode)
public abstract int getParent(int nodeID)
public boolean hasCollapsedAncestor(int nodeID)
public int getRootID()
public void setRootID(int rootID)
public void toggleCollapse(int nodeID)
public void announceChange()
public boolean needsUpdate()
KahinaObject
needsUpdate
in class KahinaObject