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 void
drawSimpleEdge
(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
.void
protected Shape
prepareFinalEdgeShape
(RenderContext<V, E> rc, Layout<V, E> layout, E e, int[] coords, boolean[] loop) void
setEdgeArrowRenderingSupport
(EdgeArrowRenderingSupport<V, E> edgeArrowRenderingSupport)
-
Field Details
-
edgeArrowRenderingSupport
-
-
Constructor Details
-
BasicEdgeRenderer
public BasicEdgeRenderer()
-
-
Method Details
-
paintEdge
- Specified by:
paintEdge
in interfaceRenderer.Edge<V,
E>
-
prepareFinalEdgeShape
-
drawSimpleEdge
Draws the edgee
, whose endpoints are at(x1,y1)
and(x2,y2)
, on the graphics contextg
. TheShape
provided by theEdgeShapeFunction
instance 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:
getEdgeArrowRenderingSupport
in interfaceRenderer.Edge<V,
E>
-
setEdgeArrowRenderingSupport
- Specified by:
setEdgeArrowRenderingSupport
in interfaceRenderer.Edge<V,
E>
-