public class KahinaListTreeView extends KahinaAbstractTreeView implements KahinaTreeChildAddListener
kahina, model, needsRedraw
Constructor and Description |
---|
KahinaListTreeView(KahinaInstance<?,?,?,?> kahina,
int... layers) |
Modifier and Type | Method and Description |
---|---|
void |
autospineLeft() |
void |
autospineRight() |
void |
childAdded(int nodeID) |
void |
displaySecondaryTree(KahinaTree treeModel) |
protected void |
doDisplay()
Subclasses may override this method to take certain actions directly
after
KahinaView.model has changed. |
KahinaTreeViewConfiguration |
getConfig() |
int |
getEdgeStyle(int nodeID)
Returns the edge style for the edge leading to a node.
|
int |
getLatestOriginLayer() |
int |
getMarkedNode(int layer) |
java.awt.Color |
getNodeBorderColor(int nodeID) |
java.awt.Color |
getNodeColor(int nodeID) |
java.awt.Font |
getNodeFont(int nodeID) |
int |
getPrimaryChildChoice(int parent) |
KahinaTree |
getSecondaryModel() |
KahinaTree |
getTreeModel() |
java.util.ArrayList<java.lang.Integer> |
getVisibleVirtualChildren(KahinaTree treeModel,
int nodeID,
int treeLayer) |
boolean |
isSecondDimensionDisplayed() |
javax.swing.JComponent |
makePanel()
Returns the panel that represents this view in the GUI.
|
boolean |
nodeIsVisible(int nodeID) |
protected void |
processEvent(KahinaUpdateEvent e) |
void |
selectNode(int nodeID,
int layer)
Marks the selected node (or, if it is not visible on the respective
layer, its best equivalent, i.e.
|
void |
setConfig(KahinaTreeViewConfiguration config) |
void |
setNodeBorderColor(int nodeID,
java.awt.Color color) |
void |
setStatusColorEncoding(int status,
java.awt.Color color) |
void |
setStatusFontEncoding(int status,
java.awt.Font font) |
display, getModel, getTitle, isVisible, makeEditorPanel, needsRedraw, processEvent, recalculate, requireRedraw, setConfig, setTitle, setVisible
public KahinaListTreeView(KahinaInstance<?,?,?,?> kahina, int... layers)
public void displaySecondaryTree(KahinaTree treeModel)
displaySecondaryTree
in class KahinaAbstractTreeView
public KahinaTreeViewConfiguration getConfig()
getConfig
in class KahinaView<KahinaTree>
public void setConfig(KahinaTreeViewConfiguration config)
public boolean isSecondDimensionDisplayed()
public java.awt.Font getNodeFont(int nodeID)
public java.awt.Color getNodeColor(int nodeID)
public void setNodeBorderColor(int nodeID, java.awt.Color color)
public java.awt.Color getNodeBorderColor(int nodeID)
public int getEdgeStyle(int nodeID)
nodeID
- public void setStatusColorEncoding(int status, java.awt.Color color)
setStatusColorEncoding
in class KahinaAbstractTreeView
public void setStatusFontEncoding(int status, java.awt.Font font)
public int getMarkedNode(int layer)
protected void doDisplay()
KahinaView
KahinaView.model
has changed. This default implementation does
nothing.doDisplay
in class KahinaView<KahinaTree>
public javax.swing.JComponent makePanel()
KahinaView
makePanel
in class KahinaView<KahinaTree>
public boolean nodeIsVisible(int nodeID)
public java.util.ArrayList<java.lang.Integer> getVisibleVirtualChildren(KahinaTree treeModel, int nodeID, int treeLayer)
public KahinaTree getTreeModel()
public KahinaTree getSecondaryModel()
getSecondaryModel
in class KahinaAbstractTreeView
protected void processEvent(KahinaUpdateEvent e)
processEvent
in class KahinaView<KahinaTree>
public void selectNode(int nodeID, int layer)
nodeID
- public int getPrimaryChildChoice(int parent)
public void autospineLeft()
public void autospineRight()
public void childAdded(int nodeID)
childAdded
in interface KahinaTreeChildAddListener
public int getLatestOriginLayer()