Class ReshapingEdgeRenderer<V,E>
- java.lang.Object
-
- org.jungrapht.visualization.renderers.AbstractEdgeRenderer<V,E>
-
- org.jungrapht.visualization.renderers.HeavyweightEdgeRenderer<V,E>
-
- org.jungrapht.visualization.renderers.ReshapingEdgeRenderer<V,E>
-
- Type Parameters:
V- the vertex typeE- the edge type
- All Implemented Interfaces:
Renderer.Edge<V,E>
public class ReshapingEdgeRenderer<V,E> extends HeavyweightEdgeRenderer<V,E> implements Renderer.Edge<V,E>
uses a flatness argument to break edges into smaller segments. This produces a more detailed transformation of the edge shape- Author:
- Tom Nelson
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jungrapht.visualization.renderers.Renderer.Edge
Renderer.Edge.NOOP<V,E>
-
-
Field Summary
-
Fields inherited from class org.jungrapht.visualization.renderers.HeavyweightEdgeRenderer
edgeArrowRenderingSupport
-
-
Constructor Summary
Constructors Constructor Description ReshapingEdgeRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddrawSimpleEdge(RenderContext<V,E> renderContext, LayoutModel<V> layoutModel, E e)Draws the edgee, whose endpoints are at(x1,y1)and(x2,y2), on the graphics contextg.-
Methods inherited from class org.jungrapht.visualization.renderers.HeavyweightEdgeRenderer
getEdgeArrowRenderingSupport, getEdgeShape, setEdgeArrowRenderingSupport
-
Methods inherited from class org.jungrapht.visualization.renderers.AbstractEdgeRenderer
paintEdge, prepareFinalEdgeShape
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jungrapht.visualization.renderers.Renderer.Edge
getEdgeArrowRenderingSupport, paintEdge, setEdgeArrowRenderingSupport
-
-
-
-
Method Detail
-
drawSimpleEdge
protected void drawSimpleEdge(RenderContext<V,E> renderContext, LayoutModel<V> layoutModel, E e)
Draws the edgee, whose endpoints are at(x1,y1)and(x2,y2), on the graphics contextg. TheShapeprovided by theEdgeShapeFunctioninstance is scaled in the x-direction so that its width is equal to the distance between(x1,y1)and(x2,y2).- Overrides:
drawSimpleEdgein classHeavyweightEdgeRenderer<V,E>e- the edge to be drawn
-
-