public class KahinaGraphView extends KahinaView<KahinaGraph>
Modifier and Type | Field and Description |
---|---|
protected KahinaGraphViewConfiguration |
config |
protected KahinaGraphLayouter |
layout |
static java.awt.Color |
MARKING_COLOR |
protected java.util.Collection<java.lang.Integer> |
specialVertices |
protected java.util.HashMap<java.lang.Integer,java.awt.Color> |
vertexBorderColor |
protected java.util.Collection<java.lang.Integer> |
visibleVertices |
kahina, model, needsRedraw
Constructor and Description |
---|
KahinaGraphView(KahinaInstance<?,?,?,?> kahina,
KahinaGraphLayouter layout) |
Modifier and Type | Method and Description |
---|---|
void |
display(KahinaGraph graphModel) |
void |
exportVisibleSubgraphTGF(java.lang.String fileName) |
void |
flushRedrawAgenda()
Tell the view to redraw the entire structure during the next update.
|
KahinaGraphViewConfiguration |
getConfig() |
int |
getDisplayHeight() |
int |
getDisplayWidth() |
java.awt.Color |
getEdgeColor(int v1,
int v2) |
KahinaGraphLayouter |
getLayouter() |
int |
getMarkedVertex() |
java.util.List<java.lang.Integer> |
getRedrawAgenda() |
java.awt.Color |
getVertexBorderColor(int nodeID) |
java.awt.Color |
getVertexColor(int vertex) |
java.awt.Font |
getVertexFont(int vertex) |
int |
getVertexHeight(int vertex) |
java.lang.Integer |
getVertexX(int vertex) |
java.lang.Integer |
getVertexY(int vertex) |
java.util.List<java.lang.Integer> |
getVisibleNeighbors(int vertex) |
java.util.Collection<java.lang.Integer> |
getVisibleVertices() |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getXCoordinates() |
java.util.Map<java.lang.Integer,java.lang.Integer> |
getYCoordinates() |
boolean |
isEdgeVisible(int vertex1,
int vertex2) |
boolean |
isVertexSpecial(int vertex) |
boolean |
isVertexVisible(int vertex) |
javax.swing.JComponent |
makePanel()
Returns the panel that represents this view in the GUI.
|
protected void |
resetLayoutStructures() |
void |
setAllVisible() |
void |
setConfig(KahinaGraphViewConfiguration config) |
void |
setLayouter(KahinaGraphLayouter layouter) |
void |
setMarkedVertex(int vertex) |
void |
setSpecialVertices(java.util.Collection<java.lang.Integer> specVertices) |
void |
setVertexBorderColor(int nodeID,
java.awt.Color color) |
void |
setVertexStatusEdgeColorEncoding(int v1state,
int v2state,
java.awt.Color color) |
void |
setVertexStatusVertexColorEncoding(int state,
java.awt.Color color) |
void |
setVisibleVertices(java.util.Collection<java.lang.Integer> visVertices) |
void |
turnSpecialVerticesBackToNormal() |
display, doDisplay, getModel, getTitle, isVisible, makeEditorPanel, needsRedraw, processEvent, processEvent, recalculate, requireRedraw, setConfig, setTitle, setVisible
protected KahinaGraphViewConfiguration config
protected KahinaGraphLayouter layout
protected java.util.HashMap<java.lang.Integer,java.awt.Color> vertexBorderColor
protected java.util.Collection<java.lang.Integer> visibleVertices
protected java.util.Collection<java.lang.Integer> specialVertices
public static final java.awt.Color MARKING_COLOR
public KahinaGraphView(KahinaInstance<?,?,?,?> kahina, KahinaGraphLayouter layout)
public void display(KahinaGraph graphModel)
public KahinaGraphViewConfiguration getConfig()
getConfig
in class KahinaView<KahinaGraph>
public void setConfig(KahinaGraphViewConfiguration config)
public void setLayouter(KahinaGraphLayouter layouter)
public KahinaGraphLayouter getLayouter()
public void setVisibleVertices(java.util.Collection<java.lang.Integer> visVertices)
public void setAllVisible()
public void setSpecialVertices(java.util.Collection<java.lang.Integer> specVertices)
public void turnSpecialVerticesBackToNormal()
public java.util.Map<java.lang.Integer,java.lang.Integer> getXCoordinates()
public java.util.Map<java.lang.Integer,java.lang.Integer> getYCoordinates()
public int getDisplayHeight()
public int getDisplayWidth()
public java.util.List<java.lang.Integer> getRedrawAgenda()
public void flushRedrawAgenda()
public boolean isVertexSpecial(int vertex)
public boolean isVertexVisible(int vertex)
public java.util.Collection<java.lang.Integer> getVisibleVertices()
public java.util.List<java.lang.Integer> getVisibleNeighbors(int vertex)
public boolean isEdgeVisible(int vertex1, int vertex2)
public java.awt.Font getVertexFont(int vertex)
public java.awt.Color getVertexColor(int vertex)
public void setVertexStatusVertexColorEncoding(int state, java.awt.Color color)
public void setVertexStatusEdgeColorEncoding(int v1state, int v2state, java.awt.Color color)
public void setVertexBorderColor(int nodeID, java.awt.Color color)
public java.awt.Color getVertexBorderColor(int nodeID)
public void setMarkedVertex(int vertex)
public int getMarkedVertex()
public java.awt.Color getEdgeColor(int v1, int v2)
public java.lang.Integer getVertexX(int vertex)
public java.lang.Integer getVertexY(int vertex)
public int getVertexHeight(int vertex)
protected void resetLayoutStructures()
public void exportVisibleSubgraphTGF(java.lang.String fileName) throws java.io.IOException
java.io.IOException
public javax.swing.JComponent makePanel()
KahinaView
makePanel
in class KahinaView<KahinaGraph>