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
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<V,E>edgeArrowRenderingSupport
-
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, Layout<V,E> layout, E e)Draws the edgee, whose endpoints are at(x1,y1)and(x2,y2), on the graphics contextg.EdgeArrowRenderingSupport<V,E>getEdgeArrowRenderingSupport()voidpaintEdge(RenderContext<V,E> rc, Layout<V,E> layout, E e)protected java.awt.ShapeprepareFinalEdgeShape(RenderContext<V,E> rc, Layout<V,E> layout, E e, int[] coords, boolean[] loop)voidsetEdgeArrowRenderingSupport(EdgeArrowRenderingSupport<V,E> edgeArrowRenderingSupport)
-
-
-
Field Detail
-
edgeArrowRenderingSupport
protected EdgeArrowRenderingSupport<V,E> edgeArrowRenderingSupport
-
-
Method Detail
-
paintEdge
public void paintEdge(RenderContext<V,E> rc, Layout<V,E> layout, E e)
- Specified by:
paintEdgein interfaceRenderer.Edge<V,E>
-
prepareFinalEdgeShape
protected java.awt.Shape prepareFinalEdgeShape(RenderContext<V,E> rc, Layout<V,E> layout, E e, int[] coords, boolean[] loop)
-
drawSimpleEdge
protected 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. 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
public EdgeArrowRenderingSupport<V,E> getEdgeArrowRenderingSupport()
- Specified by:
getEdgeArrowRenderingSupportin interfaceRenderer.Edge<V,E>
-
setEdgeArrowRenderingSupport
public void setEdgeArrowRenderingSupport(EdgeArrowRenderingSupport<V,E> edgeArrowRenderingSupport)
- Specified by:
setEdgeArrowRenderingSupportin interfaceRenderer.Edge<V,E>
-
-