Class CachingEdgeRenderer<V,E>
java.lang.Object
edu.uci.ics.jung.visualization.renderers.BasicEdgeRenderer<V,E>
edu.uci.ics.jung.visualization.renderers.CachingEdgeRenderer<V,E>
- All Implemented Interfaces:
LayoutChangeListener<V,E>, Renderer.Edge<V, E>, EventListener, ChangeListener
public class CachingEdgeRenderer<V,E>
extends BasicEdgeRenderer<V,E>
implements ChangeListener, LayoutChangeListener<V,E>
-
Nested Class Summary
Nested classes/interfaces inherited from interface Renderer.Edge
Renderer.Edge.NOOP -
Field Summary
FieldsFields inherited from class BasicEdgeRenderer
edgeArrowRenderingSupport -
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.voidlayoutChanged(LayoutEvent<V, E> evt) voidstateChanged(ChangeEvent evt) Methods inherited from class BasicEdgeRenderer
getEdgeArrowRenderingSupport, paintEdge, prepareFinalEdgeShape, setEdgeArrowRenderingSupport
-
Field Details
-
edgeShapeMap
-
dirtyEdges
-
-
Constructor Details
-
CachingEdgeRenderer
-
-
Method Details
-
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).- Overrides:
drawSimpleEdgein classBasicEdgeRenderer<V,E> - 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
-
stateChanged
- Specified by:
stateChangedin interfaceChangeListener
-
layoutChanged
- Specified by:
layoutChangedin interfaceLayoutChangeListener<V,E>
-