public class CachingEdgeRenderer<V,E> extends BasicEdgeRenderer<V,E> implements ChangeListener, LayoutChangeListener<V,E>
Renderer.Edge.NOOP| Modifier and Type | Field and Description |
|---|---|
protected Set<E> |
dirtyEdges |
protected Map<E,Shape> |
edgeShapeMap |
edgeArrowRenderingSupport| Constructor and Description |
|---|
CachingEdgeRenderer(BasicVisualizationServer<V,E> vv) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawSimpleEdge(RenderContext<V,E> rc,
Layout<V,E> layout,
E e)
Draws the edge
e, whose endpoints are at (x1,y1)
and (x2,y2), on the graphics context g. |
void |
layoutChanged(LayoutEvent<V,E> evt) |
void |
stateChanged(ChangeEvent evt) |
getEdgeArrowRenderingSupport, paintEdge, prepareFinalEdgeShape, setEdgeArrowRenderingSupportpublic CachingEdgeRenderer(BasicVisualizationServer<V,E> vv)
protected void drawSimpleEdge(RenderContext<V,E> rc, Layout<V,E> layout, E e)
e, whose endpoints are at (x1,y1)
and (x2,y2), on the graphics context g.
The Shape provided by the EdgeShapeFunction instance
is scaled in the x-direction so that its width is equal to the distance between
(x1,y1) and (x2,y2).drawSimpleEdge in class BasicEdgeRenderer<V,E>rc - the render context used for rendering the edgelayout - the layout instance which provides the edge's endpoints' coordinatese - the edge to be drawnpublic void stateChanged(ChangeEvent evt)
stateChanged in interface ChangeListenerpublic void layoutChanged(LayoutEvent<V,E> evt)
layoutChanged in interface LayoutChangeListener<V,E>Copyright © 2016. All rights reserved.