public class GraphVisualizer.VisualSynchronizer
extends java.lang.Object
setAddMode
and
getAddMode
)
controls which of the style names are used.Constructor and Description |
---|
GraphVisualizer.VisualSynchronizer() |
Modifier and Type | Method and Description |
---|---|
void |
addEdge(de.uni_due.inf.ti.visigraph.VxNode source,
de.uni_due.inf.ti.visigraph.VxNode target) |
void |
addLabel(de.uni_due.inf.ti.visigraph.VxEdge edge,
java.lang.String label) |
void |
addNode(de.uni_due.inf.ti.visigraph.VxGraph graph,
java.awt.geom.Point2D point) |
boolean |
canAddEdge(de.uni_due.inf.ti.visigraph.VxNode source,
de.uni_due.inf.ti.visigraph.VxNode target) |
boolean |
canAddLabel(de.uni_due.inf.ti.visigraph.VxEdge edge) |
boolean |
canAddNode(de.uni_due.inf.ti.visigraph.VxGraph graph) |
boolean |
canEditLabel(de.uni_due.inf.ti.visigraph.VxNode node) |
void |
editLabel(de.uni_due.inf.ti.visigraph.VxNode node,
java.lang.String newLabel) |
GraphVisualizer.AddMode |
getAddMode() |
protected boolean |
getBinaryArrows() |
protected java.lang.String |
getConnectionStyleName() |
protected java.lang.String |
getEdgeStyleName() |
protected java.lang.String |
getHyperedgeStyleName() |
protected java.lang.String |
getLabelStyleName() |
protected java.lang.String |
getNodeStyleName() |
boolean |
isPossibleSourceNode(de.uni_due.inf.ti.visigraph.VxNode source) |
void |
setAddMode(GraphVisualizer.AddMode addMode) |
public void setAddMode(GraphVisualizer.AddMode addMode)
public GraphVisualizer.AddMode getAddMode()
protected boolean getBinaryArrows()
protected java.lang.String getNodeStyleName()
protected java.lang.String getEdgeStyleName()
protected java.lang.String getHyperedgeStyleName()
protected java.lang.String getConnectionStyleName()
protected java.lang.String getLabelStyleName()
public boolean isPossibleSourceNode(de.uni_due.inf.ti.visigraph.VxNode source)
isPossibleSourceNode
in interface de.uni_due.inf.ti.visigraph.swing.GraphEditSynchronizer
public boolean canAddNode(de.uni_due.inf.ti.visigraph.VxGraph graph)
canAddNode
in interface de.uni_due.inf.ti.visigraph.swing.GraphEditSynchronizer
public boolean canAddEdge(de.uni_due.inf.ti.visigraph.VxNode source, de.uni_due.inf.ti.visigraph.VxNode target)
canAddEdge
in interface de.uni_due.inf.ti.visigraph.swing.GraphEditSynchronizer
public boolean canAddLabel(de.uni_due.inf.ti.visigraph.VxEdge edge)
canAddLabel
in interface de.uni_due.inf.ti.visigraph.swing.GraphEditSynchronizer
public boolean canEditLabel(de.uni_due.inf.ti.visigraph.VxNode node)
canEditLabel
in interface de.uni_due.inf.ti.visigraph.swing.GraphEditSynchronizer
public void addNode(de.uni_due.inf.ti.visigraph.VxGraph graph, java.awt.geom.Point2D point)
addNode
in interface de.uni_due.inf.ti.visigraph.swing.GraphEditSynchronizer
public void addEdge(de.uni_due.inf.ti.visigraph.VxNode source, de.uni_due.inf.ti.visigraph.VxNode target)
addEdge
in interface de.uni_due.inf.ti.visigraph.swing.GraphEditSynchronizer
public void addLabel(de.uni_due.inf.ti.visigraph.VxEdge edge, java.lang.String label)
addLabel
in interface de.uni_due.inf.ti.visigraph.swing.GraphEditSynchronizer
public void editLabel(de.uni_due.inf.ti.visigraph.VxNode node, java.lang.String newLabel)
editLabel
in interface de.uni_due.inf.ti.visigraph.swing.GraphEditSynchronizer