edu.uci.ics.jung.visualization.renderers
Class ReshapingEdgeRenderer<V,E>

java.lang.Object
  extended by edu.uci.ics.jung.visualization.renderers.BasicEdgeRenderer<V,E>
      extended by edu.uci.ics.jung.visualization.renderers.ReshapingEdgeRenderer<V,E>
Type Parameters:
V -
E -
All Implemented Interfaces:
Renderer.Edge<V,E>

public class ReshapingEdgeRenderer<V,E>
extends BasicEdgeRenderer<V,E>
implements Renderer.Edge<V,E>

uses a flatness argument to break edges into smaller segments. This produces a more detailed transformation of the edge shape

Author:
Tom Nelson - tomnelson@dev.java.net

Nested Class Summary
 
Nested classes/interfaces inherited from interface edu.uci.ics.jung.visualization.renderers.Renderer.Edge
Renderer.Edge.NOOP
 
Field Summary
 
Fields inherited from class edu.uci.ics.jung.visualization.renderers.BasicEdgeRenderer
edgeArrowRenderingSupport
 
Constructor Summary
ReshapingEdgeRenderer()
           
 
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.
 
Methods inherited from class edu.uci.ics.jung.visualization.renderers.BasicEdgeRenderer
getEdgeArrowRenderingSupport, paintEdge, setEdgeArrowRenderingSupport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.uci.ics.jung.visualization.renderers.Renderer.Edge
getEdgeArrowRenderingSupport, paintEdge, setEdgeArrowRenderingSupport
 

Constructor Detail

ReshapingEdgeRenderer

public ReshapingEdgeRenderer()
Method Detail

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).

Overrides:
drawSimpleEdge in class BasicEdgeRenderer<V,E>


Copyright © 2010 null. All Rights Reserved.