public class KahinaTreeView extends KahinaAbstractTreeView
| Modifier and Type | Field and Description |
|---|---|
protected KahinaTreeViewConfiguration |
config |
static boolean |
VERBOSE |
kahina, model, needsRedraw| Constructor and Description |
|---|
KahinaTreeView(KahinaInstance<?,?,?,?> kahina) |
| Modifier and Type | Method and Description |
|---|---|
void |
avoidClashesByAdaptingHorizontalDistance()
tell the GUI to adapt horizontal distance in order to avoid clashes will
be overridden by manual distance adaptation
|
void |
calculateCoordinates() |
void |
display(KahinaTree treeModel) |
void |
display(KahinaTree layerModel,
int layerID,
int referenceNode) |
void |
displaySecondaryTree(KahinaTree treeModel) |
boolean |
displaysNode(int nodeID) |
KahinaTreeViewConfiguration |
getConfig() |
KahinaTree |
getContentfulTreeModel() |
int |
getDisplayHeight() |
int |
getDisplayWidth() |
int |
getEdgeStyle(int nodeID)
Returns the edge style for the edge leading to a node.
|
java.awt.FontMetrics |
getFontMetrics(java.awt.Font f,
java.awt.Stroke s,
int fontSize) |
int |
getMarkedNode() |
java.awt.Color |
getNodeBorderColor(int nodeID) |
java.awt.Color |
getNodeColor(int nodeID) |
java.awt.Font |
getNodeFont(int nodeID) |
int |
getNodeHeight(int nodeID) |
java.lang.Integer |
getNodeX(int nodeID) |
java.lang.Integer |
getNodeY(int nodeID) |
KahinaTree |
getSecondaryModel() |
int |
getTreeLayer() |
KahinaTree |
getTreeModel() |
boolean |
isSecondDimensionDisplayed() |
javax.swing.JComponent |
makePanel()
Returns the panel that represents this view in the GUI.
|
boolean |
needsRedraw()
States whether this view has changed in a way that causes it to be in need of redraw.
|
int |
nodeAtCoordinates(int x,
int y) |
boolean |
nodeIsVisible(int nodeID) |
protected void |
processEvent(KahinaUpdateEvent e)
HACK: if an update listener is defined on the tree view, the selected node will be marked
|
void |
recalculate()
Override this method to define necessary operations after changes to the
model (coordinate recomputations etc.)
|
void |
resetAllStructures() |
void |
setConfig(KahinaTreeViewConfiguration config) |
void |
setMarkedNode(int markedNode) |
void |
setNodeBorderColor(int nodeID,
java.awt.Color color) |
void |
setStatusColorEncoding(int status,
java.awt.Color color) |
void |
setStatusFontEncoding(int status,
java.awt.Font font) |
void |
setTreeLayer(int treeLayer) |
java.lang.String |
showLevels() |
void |
swapDimensions() |
display, doDisplay, getModel, getTitle, isVisible, makeEditorPanel, processEvent, requireRedraw, setConfig, setTitle, setVisiblepublic static boolean VERBOSE
protected KahinaTreeViewConfiguration config
public KahinaTreeView(KahinaInstance<?,?,?,?> kahina)
public void display(KahinaTree treeModel)
public void displaySecondaryTree(KahinaTree treeModel)
displaySecondaryTree in class KahinaAbstractTreeViewpublic void display(KahinaTree layerModel, int layerID, int referenceNode)
public KahinaTree getSecondaryModel()
getSecondaryModel in class KahinaAbstractTreeViewpublic KahinaTreeViewConfiguration getConfig()
getConfig in class KahinaView<KahinaTree>public void setConfig(KahinaTreeViewConfiguration config)
public boolean isSecondDimensionDisplayed()
public int getDisplayWidth()
public int getDisplayHeight()
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 java.lang.Integer getNodeX(int nodeID)
public java.lang.Integer getNodeY(int nodeID)
public int getNodeHeight(int nodeID)
public int getTreeLayer()
public void setTreeLayer(int treeLayer)
public void setStatusColorEncoding(int status,
java.awt.Color color)
setStatusColorEncoding in class KahinaAbstractTreeViewpublic void setStatusFontEncoding(int status,
java.awt.Font font)
public int getMarkedNode()
public void setMarkedNode(int markedNode)
public void resetAllStructures()
public void calculateCoordinates()
public boolean displaysNode(int nodeID)
public boolean nodeIsVisible(int nodeID)
public java.awt.FontMetrics getFontMetrics(java.awt.Font f,
java.awt.Stroke s,
int fontSize)
public java.lang.String showLevels()
public void swapDimensions()
public int nodeAtCoordinates(int x,
int y)
public KahinaTree getTreeModel()
public KahinaTree getContentfulTreeModel()
public javax.swing.JComponent makePanel()
KahinaViewmakePanel in class KahinaView<KahinaTree>public void recalculate()
KahinaViewrecalculate in class KahinaView<KahinaTree>public void avoidClashesByAdaptingHorizontalDistance()
protected void processEvent(KahinaUpdateEvent e)
processEvent in class KahinaView<KahinaTree>public boolean needsRedraw()
KahinaViewneedsRedraw in class KahinaView<KahinaTree>