Class BasicEdgeRenderer<V,E>
- java.lang.Object
-
- edu.uci.ics.jung.visualization.renderers.BasicEdgeRenderer<V,E>
-
- All Implemented Interfaces:
Renderer.Edge<V,E>
- Direct Known Subclasses:
ReshapingEdgeRenderer
public class BasicEdgeRenderer<V,E> extends java.lang.Object implements Renderer.Edge<V,E>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface edu.uci.ics.jung.visualization.renderers.Renderer.Edge
Renderer.Edge.NOOP
-
-
Field Summary
Fields Modifier and Type Field Description protected EdgeArrowRenderingSupportedgeArrowRenderingSupport
-
Constructor Summary
Constructors Constructor Description BasicEdgeRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddrawSimpleEdge(RenderContext<V,E> rc, edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout, E e)Draws the edgee, whose endpoints are at(x1,y1)and(x2,y2), on the graphics contextg.EdgeArrowRenderingSupportgetEdgeArrowRenderingSupport()voidpaintEdge(RenderContext<V,E> rc, edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout, E e)voidsetEdgeArrowRenderingSupport(EdgeArrowRenderingSupport edgeArrowRenderingSupport)
-
-
-
Field Detail
-
edgeArrowRenderingSupport
protected EdgeArrowRenderingSupport edgeArrowRenderingSupport
-
-
Method Detail
-
paintEdge
public void paintEdge(RenderContext<V,E> rc, edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout, E e)
- Specified by:
paintEdgein interfaceRenderer.Edge<V,E>
-
drawSimpleEdge
protected void drawSimpleEdge(RenderContext<V,E> rc, edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout, 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).
-
getEdgeArrowRenderingSupport
public EdgeArrowRenderingSupport getEdgeArrowRenderingSupport()
- Specified by:
getEdgeArrowRenderingSupportin interfaceRenderer.Edge<V,E>
-
setEdgeArrowRenderingSupport
public void setEdgeArrowRenderingSupport(EdgeArrowRenderingSupport edgeArrowRenderingSupport)
- Specified by:
setEdgeArrowRenderingSupportin interfaceRenderer.Edge<V,E>
-
-