edu.uci.ics.jung.visualization.renderers
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 Object
- implements Renderer.Edge<V,E>
Method Summary |
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 . |
EdgeArrowRenderingSupport |
getEdgeArrowRenderingSupport()
|
void |
paintEdge(RenderContext<V,E> rc,
Layout<V,E> layout,
E e)
|
void |
setEdgeArrowRenderingSupport(EdgeArrowRenderingSupport edgeArrowRenderingSupport)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
edgeArrowRenderingSupport
protected EdgeArrowRenderingSupport edgeArrowRenderingSupport
BasicEdgeRenderer
public BasicEdgeRenderer()
paintEdge
public void paintEdge(RenderContext<V,E> rc,
Layout<V,E> layout,
E e)
- Specified by:
paintEdge
in interface Renderer.Edge<V,E>
drawSimpleEdge
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
.
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)
.
getEdgeArrowRenderingSupport
public EdgeArrowRenderingSupport getEdgeArrowRenderingSupport()
- Specified by:
getEdgeArrowRenderingSupport
in interface Renderer.Edge<V,E>
setEdgeArrowRenderingSupport
public void setEdgeArrowRenderingSupport(EdgeArrowRenderingSupport edgeArrowRenderingSupport)
- Specified by:
setEdgeArrowRenderingSupport
in interface Renderer.Edge<V,E>
Copyright © 2010 null. All Rights Reserved.