Package mgui.interfaces.graphs.util
Class GraphFunctions.GraphEdgeLabelRenderer
java.lang.Object
edu.uci.ics.jung.visualization.renderers.BasicEdgeLabelRenderer<AbstractGraphNode,AbstractGraphEdge>
mgui.interfaces.graphs.util.GraphFunctions.GraphEdgeLabelRenderer
- All Implemented Interfaces:
edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel<AbstractGraphNode,AbstractGraphEdge>
- Enclosing class:
- GraphFunctions
public static class GraphFunctions.GraphEdgeLabelRenderer extends edu.uci.ics.jung.visualization.renderers.BasicEdgeLabelRenderer<AbstractGraphNode,AbstractGraphEdge>
Allows labels to be turned off.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel
edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel.NOOP
-
Field Summary
Fields Modifier and Type Field Description protected boolean
show
-
Constructor Summary
Constructors Constructor Description GraphEdgeLabelRenderer()
-
Method Summary
Modifier and Type Method Description void
labelEdge(edu.uci.ics.jung.visualization.RenderContext<AbstractGraphNode,AbstractGraphEdge> rc, edu.uci.ics.jung.algorithms.layout.Layout<AbstractGraphNode,AbstractGraphEdge> layout, AbstractGraphEdge e, java.lang.String label)
boolean
show()
void
show(boolean show)
Methods inherited from class edu.uci.ics.jung.visualization.renderers.BasicEdgeLabelRenderer
prepareRenderer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
show
protected boolean show
-
-
Constructor Details
-
GraphEdgeLabelRenderer
public GraphEdgeLabelRenderer()
-
-
Method Details
-
labelEdge
public void labelEdge(edu.uci.ics.jung.visualization.RenderContext<AbstractGraphNode,AbstractGraphEdge> rc, edu.uci.ics.jung.algorithms.layout.Layout<AbstractGraphNode,AbstractGraphEdge> layout, AbstractGraphEdge e, java.lang.String label)- Specified by:
labelEdge
in interfaceedu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel<AbstractGraphNode,AbstractGraphEdge>
- Overrides:
labelEdge
in classedu.uci.ics.jung.visualization.renderers.BasicEdgeLabelRenderer<AbstractGraphNode,AbstractGraphEdge>
-
show
public boolean show() -
show
public void show(boolean show)
-