edu.uci.ics.jung.visualization.decorators
Class EdgeShape.Orthogonal<V,E>

java.lang.Object
  extended by edu.uci.ics.jung.visualization.decorators.AbstractEdgeShapeTransformer<V,E>
      extended by edu.uci.ics.jung.visualization.decorators.EdgeShape.Orthogonal<V,E>
All Implemented Interfaces:
EdgeShape.IndexedRendering<V,E>, org.apache.commons.collections15.Transformer<Context<Graph<V,E>,E>,Shape>
Enclosing class:
EdgeShape<V,E>

public static class EdgeShape.Orthogonal<V,E>
extends AbstractEdgeShapeTransformer<V,E>
implements EdgeShape.IndexedRendering<V,E>

An edge shape that renders as a bent-line between the vertex endpoints.


Field Summary
protected  EdgeIndexFunction<V,E> edgeIndexFunction
           
 
Fields inherited from class edu.uci.ics.jung.visualization.decorators.AbstractEdgeShapeTransformer
control_offset_increment
 
Constructor Summary
EdgeShape.Orthogonal()
           
 
Method Summary
 EdgeIndexFunction<V,E> getEdgeIndexFunction()
           
 void setEdgeIndexFunction(EdgeIndexFunction<V,E> edgeIndexFunction)
           
 Shape transform(Context<Graph<V,E>,E> context)
          Get the shape for this edge, returning either the shared instance or, in the case of self-loop edges, the Loop shared instance.
 
Methods inherited from class edu.uci.ics.jung.visualization.decorators.AbstractEdgeShapeTransformer
setControlOffsetIncrement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

edgeIndexFunction

protected EdgeIndexFunction<V,E> edgeIndexFunction
Constructor Detail

EdgeShape.Orthogonal

public EdgeShape.Orthogonal()
Method Detail

setEdgeIndexFunction

public void setEdgeIndexFunction(EdgeIndexFunction<V,E> edgeIndexFunction)
Specified by:
setEdgeIndexFunction in interface EdgeShape.IndexedRendering<V,E>

getEdgeIndexFunction

public EdgeIndexFunction<V,E> getEdgeIndexFunction()
Specified by:
getEdgeIndexFunction in interface EdgeShape.IndexedRendering<V,E>
Returns:
the parallelEdgeIndexFunction

transform

public Shape transform(Context<Graph<V,E>,E> context)
Get the shape for this edge, returning either the shared instance or, in the case of self-loop edges, the Loop shared instance.

Specified by:
transform in interface org.apache.commons.collections15.Transformer<Context<Graph<V,E>,E>,Shape>


Copyright © 2009. All Rights Reserved.