Class DirectionalEdgeArrowTransformer<V,​E>

  • All Implemented Interfaces:
    org.apache.commons.collections4.Transformer<edu.uci.ics.jung.graph.util.Context<edu.uci.ics.jung.graph.Graph<V,​E>,​E>,​java.awt.Shape>

    public class DirectionalEdgeArrowTransformer<V,​E>
    extends java.lang.Object
    implements org.apache.commons.collections4.Transformer<edu.uci.ics.jung.graph.util.Context<edu.uci.ics.jung.graph.Graph<V,​E>,​E>,​java.awt.Shape>
    Returns wedge arrows for undirected edges and notched arrows for directed edges, of the specified dimensions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Shape transform​(edu.uci.ics.jung.graph.util.Context<edu.uci.ics.jung.graph.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 java.awt.Shape undirected_arrow
      • directed_arrow

        protected java.awt.Shape directed_arrow
    • Constructor Detail

      • DirectionalEdgeArrowTransformer

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

      • transform

        public java.awt.Shape transform​(edu.uci.ics.jung.graph.util.Context<edu.uci.ics.jung.graph.Graph<V,​E>,​E> context)
        Specified by:
        transform in interface org.apache.commons.collections4.Transformer<V,​E>