com.rapidminer.gui.graphs
Class TreeModelEdgeLabelRenderer<V,E>
java.lang.Object
com.rapidminer.gui.graphs.TreeModelEdgeLabelRenderer<V,E>
- All Implemented Interfaces:
- edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel<V,E>
public class TreeModelEdgeLabelRenderer<V,E>
- extends java.lang.Object
- implements edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel<V,E>
This code is the basic edge label renderer from Jung (unfortunately there was no
authot given in the original source) but it was changed so that the labels are always painted
in the center location of the edge.
- Author:
- Ingo Mierswa
| Nested classes/interfaces inherited from interface edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel |
edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel.NOOP |
|
Method Summary |
void |
labelEdge(edu.uci.ics.jung.visualization.RenderContext<V,E> rc,
edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout,
E e,
java.lang.String label)
|
java.awt.Component |
prepareRenderer(edu.uci.ics.jung.visualization.RenderContext<V,E> rc,
edu.uci.ics.jung.visualization.renderers.EdgeLabelRenderer graphLabelRenderer,
java.lang.Object value,
boolean isSelected,
E edge)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeModelEdgeLabelRenderer
public TreeModelEdgeLabelRenderer()
prepareRenderer
public java.awt.Component prepareRenderer(edu.uci.ics.jung.visualization.RenderContext<V,E> rc,
edu.uci.ics.jung.visualization.renderers.EdgeLabelRenderer graphLabelRenderer,
java.lang.Object value,
boolean isSelected,
E edge)
labelEdge
public void labelEdge(edu.uci.ics.jung.visualization.RenderContext<V,E> rc,
edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout,
E e,
java.lang.String label)
- Specified by:
labelEdge in interface edu.uci.ics.jung.visualization.renderers.Renderer.EdgeLabel<V,E>
Copyright © 2001-2009 by Rapid-I