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 EdgeArrowRenderingSupport
edgeArrowRenderingSupport
-
Constructor Summary
Constructors Constructor Description BasicEdgeRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
.EdgeArrowRenderingSupport
getEdgeArrowRenderingSupport()
void
paintEdge(RenderContext<V,E> rc, edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout, E e)
void
setEdgeArrowRenderingSupport(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:
paintEdge
in 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
. 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)
.
-
getEdgeArrowRenderingSupport
public EdgeArrowRenderingSupport getEdgeArrowRenderingSupport()
- Specified by:
getEdgeArrowRenderingSupport
in interfaceRenderer.Edge<V,E>
-
setEdgeArrowRenderingSupport
public void setEdgeArrowRenderingSupport(EdgeArrowRenderingSupport edgeArrowRenderingSupport)
- Specified by:
setEdgeArrowRenderingSupport
in interfaceRenderer.Edge<V,E>
-
-