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

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

public class DirectionalEdgeArrowTransformer<V,E>
extends Object
implements org.apache.commons.collections15.Transformer<Context<Graph<V,E>,E>,Shape>

Returns wedge arrows for undirected edges and notched arrows for directed edges, of the specified dimensions.

Author:
Joshua O'Madadhain

Field Summary
protected  Shape directed_arrow
           
protected  Shape undirected_arrow
           
 
Constructor Summary
DirectionalEdgeArrowTransformer(int length, int width, int notch_depth)
           
 
Method Summary
 Shape transform(Context<Graph<V,E>,E> context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

undirected_arrow

protected Shape undirected_arrow

directed_arrow

protected Shape directed_arrow
Constructor Detail

DirectionalEdgeArrowTransformer

public DirectionalEdgeArrowTransformer(int length,
                                       int width,
                                       int notch_depth)
Method Detail

transform

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


Copyright © 2009. All Rights Reserved.