edu.uci.ics.jung.graph.decorators
Class DirectionalEdgeArrowFunction

java.lang.Object
  extended by edu.uci.ics.jung.graph.decorators.DirectionalEdgeArrowFunction
All Implemented Interfaces:
EdgeArrowFunction

public class DirectionalEdgeArrowFunction
extends Object
implements EdgeArrowFunction

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
DirectionalEdgeArrowFunction(int length, int width, int notch_depth)
           
 
Method Summary
 Shape getArrow(Edge e)
           
 
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

DirectionalEdgeArrowFunction

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

getArrow

public Shape getArrow(Edge e)
Specified by:
getArrow in interface EdgeArrowFunction
See Also:
EdgeArrowFunction.getArrow(edu.uci.ics.jung.graph.Edge)