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:
CachingEdgeRenderer,ReshapingEdgeRenderer
-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.uci.ics.jung.visualization.renderers.Renderer.Edge
Renderer.Edge.NOOP -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawSimpleEdge(RenderContext<V, E> rc, Layout<V, E> layout, E e) Draws the edgee, whose endpoints are at(x1,y1)and(x2,y2), on the graphics contextg.voidprotected ShapeprepareFinalEdgeShape(RenderContext<V, E> rc, Layout<V, E> layout, E e, int[] coords, boolean[] loop) voidsetEdgeArrowRenderingSupport(EdgeArrowRenderingSupport<V, E> edgeArrowRenderingSupport)
-
Field Details
-
edgeArrowRenderingSupport
-
-
Constructor Details
-
BasicEdgeRenderer
public BasicEdgeRenderer()
-
-
Method Details
-
paintEdge
- Specified by:
paintEdgein interfaceRenderer.Edge<V,E>
-
prepareFinalEdgeShape
-
drawSimpleEdge
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).- Parameters:
rc- the render context used for rendering the edgelayout- the layout instance which provides the edge's endpoints' coordinatese- the edge to be drawn
-
getEdgeArrowRenderingSupport
- Specified by:
getEdgeArrowRenderingSupportin interfaceRenderer.Edge<V,E>
-
setEdgeArrowRenderingSupport
- Specified by:
setEdgeArrowRenderingSupportin interfaceRenderer.Edge<V,E>
-