public class GraphSynchronizer
extends java.lang.Object
Constructor and Description |
---|
GraphSynchronizer() |
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) |
boolean |
getBinaryArrows()
Returns whether new edges are displayed as arrows.
|
java.lang.String |
getConnectionStyleName()
Returns the name of the style used for connections which are added by this
GraphSynchronizer.
|
java.lang.String |
getEdgeStyleName()
Returns the name of the style used for edges which are added by this
GraphSynchronizer.
|
java.lang.String |
getHyperedgeStyleName()
Returns the name of the style used for hyperedges which are added by this
GraphSynchronizer.
|
java.lang.String |
getLabelStyleName()
Returns the name of the style used for labels which are added by this
GraphSynchronizer.
|
java.lang.String |
getNodeStyleName()
Returns the name of the style used for nodes which are added by this
GraphSynchronizer.
|
boolean |
isPossibleSourceNode(de.uni_due.inf.ti.visigraph.VxNode source) |
void |
setBinaryArrows(boolean ba)
Sets whether new edges are displayed as arrows.
|
void |
setConnectionStyleName(java.lang.String s)
Sets the name of the style used for connections between hyperedges and
nodes which are added by this GraphSynchronizer.
|
void |
setEdgeStyleName(java.lang.String s)
Sets the name of the style used for edges which are added by this
GraphSynchronizer.
|
void |
setHyperedgeStyleName(java.lang.String s)
Sets the name of the style used for hyperedges which are added by this
GraphSynchronizer.
|
void |
setLabelStyleName(java.lang.String s)
Sets the name of the style used for labels which are added by this
GraphSynchronizer.
|
void |
setNodeStyleName(java.lang.String s)
Sets the name of the style used for nodes which are added by this
GraphSynchronizer.
|
public void setBinaryArrows(boolean ba)
public boolean getBinaryArrows()
public void setNodeStyleName(java.lang.String s)
s
- the new node style namejava.lang.NullPointerException
- if s == null
public java.lang.String getNodeStyleName()
public void setEdgeStyleName(java.lang.String s)
s
- the new edge style namejava.lang.NullPointerException
- if s == null
public java.lang.String getEdgeStyleName()
public void setHyperedgeStyleName(java.lang.String s)
s
- the new hyperedge style namejava.lang.NullPointerException
- if s == null
public java.lang.String getHyperedgeStyleName()
public void setConnectionStyleName(java.lang.String s)
s
- the new connection style namejava.lang.NullPointerException
- if s == null
public java.lang.String getConnectionStyleName()
public void setLabelStyleName(java.lang.String s)
s
- the new label style namejava.lang.NullPointerException
- if s == null
public 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