public class BasicEdgeRenderer<V,E> extends java.lang.Object implements Renderer.Edge<V,E>
Renderer.Edge.NOOP| Modifier and Type | Field and Description |
|---|---|
protected EdgeArrowRenderingSupport |
edgeArrowRenderingSupport |
| Constructor and Description |
|---|
BasicEdgeRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
drawSimpleEdge(RenderContext<V,E> rc,
edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout,
E e)
Draws the edge
e, whose endpoints are at (x1,y1)
and (x2,y2), on the graphics context g. |
EdgeArrowRenderingSupport |
getEdgeArrowRenderingSupport() |
void |
paintEdge(RenderContext<V,E> rc,
edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout,
E e) |
void |
setEdgeArrowRenderingSupport(EdgeArrowRenderingSupport edgeArrowRenderingSupport) |
protected EdgeArrowRenderingSupport edgeArrowRenderingSupport
public void paintEdge(RenderContext<V,E> rc, edu.uci.ics.jung.algorithms.layout.Layout<V,E> layout, E e)
paintEdge in interface Renderer.Edge<V,E>protected void drawSimpleEdge(RenderContext<V,E> rc, edu.uci.ics.jung.algorithms.layout.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).public EdgeArrowRenderingSupport getEdgeArrowRenderingSupport()
getEdgeArrowRenderingSupport in interface Renderer.Edge<V,E>public void setEdgeArrowRenderingSupport(EdgeArrowRenderingSupport edgeArrowRenderingSupport)
setEdgeArrowRenderingSupport in interface Renderer.Edge<V,E>