public class KahinaDAGView extends KahinaView<KahinaDAG>
Modifier and Type | Field and Description |
---|---|
static int |
ANTIALIASING |
protected KahinaDAGViewConfiguration |
config |
protected KahinaDAGLayouter |
layout |
static int |
NO_ANTIALIASING |
static boolean |
verbose |
kahina, model, needsRedraw
Constructor and Description |
---|
KahinaDAGView(KahinaInstance<?,?,?,?> kahina,
KahinaDAGLayouter layout) |
Modifier and Type | Method and Description |
---|---|
void |
display(KahinaDAG dagModel) |
boolean |
displaysNode(int nodeID) |
KahinaDAGViewConfiguration |
getConfig() |
KahinaDAG |
getDAGModel() |
int |
getDisplayHeight() |
int |
getDisplayWidth() |
KahinaDAGLayouter |
getLayouter() |
int |
getMarkedNode() |
java.awt.Color |
getNodeBorderColor(int nodeID) |
java.awt.Color |
getNodeColor(int nodeID) |
java.awt.Font |
getNodeFont(int nodeID) |
int |
getNodeWidth(int nodeID) |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getNodeWidths() |
int |
getNodeX(int nodeID) |
int |
getNodeY(int nodeID) |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getXCoordinates() |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getYCoordinates() |
boolean |
isNodeVisible(int node) |
javax.swing.JComponent |
makePanel()
Returns the panel that represents this view in the GUI.
|
protected void |
processEvent(KahinaUpdateEvent e) |
void |
recalculate()
Override this method to define necessary operations after changes to the
model (coordinate recomputations etc.)
|
void |
setConfig(KahinaDAGViewConfiguration config) |
void |
setLayouter(KahinaDAGLayouter layouter) |
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) |
display, doDisplay, getModel, getTitle, isVisible, makeEditorPanel, needsRedraw, processEvent, requireRedraw, setConfig, setTitle, setVisible
public static final boolean verbose
protected KahinaDAGViewConfiguration config
protected KahinaDAGLayouter layout
public static final int ANTIALIASING
public static final int NO_ANTIALIASING
public KahinaDAGView(KahinaInstance<?,?,?,?> kahina, KahinaDAGLayouter layout)
public void display(KahinaDAG dagModel)
public KahinaDAGViewConfiguration getConfig()
getConfig
in class KahinaView<KahinaDAG>
public void setConfig(KahinaDAGViewConfiguration config)
public void setLayouter(KahinaDAGLayouter layouter)
public KahinaDAGLayouter getLayouter()
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 java.util.Map<java.lang.Integer,java.lang.Integer> getXCoordinates()
public java.util.Map<java.lang.Integer,java.lang.Integer> getYCoordinates()
public java.util.Map<java.lang.Integer,java.lang.Integer> getNodeWidths()
public int getNodeX(int nodeID)
public int getNodeY(int nodeID)
public int getNodeWidth(int nodeID)
public int getDisplayHeight()
public int getDisplayWidth()
public void setStatusColorEncoding(int status, java.awt.Color color)
public void setStatusFontEncoding(int status, java.awt.Font font)
public int getMarkedNode()
public void setMarkedNode(int markedNode)
public boolean displaysNode(int nodeID)
public KahinaDAG getDAGModel()
public javax.swing.JComponent makePanel()
KahinaView
makePanel
in class KahinaView<KahinaDAG>
protected void processEvent(KahinaUpdateEvent e)
processEvent
in class KahinaView<KahinaDAG>
public void recalculate()
KahinaView
recalculate
in class KahinaView<KahinaDAG>
public boolean isNodeVisible(int node)