Class DirectionalEdgeArrowTransformer<V,​E>

  • All Implemented Interfaces:
    com.google.common.base.Function<Context<Graph<V,​E>,​E>,​java.awt.Shape>, java.util.function.Function<Context<Graph<V,​E>,​E>,​java.awt.Shape>

    public class DirectionalEdgeArrowTransformer<V,​E>
    extends java.lang.Object
    implements com.google.common.base.Function<Context<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 apply​(Context<Graph<V,​E>,​E> context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.common.base.Function

        equals
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • 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

      • apply

        public java.awt.Shape apply​(Context<Graph<V,​E>,​E> context)
        Specified by:
        apply in interface com.google.common.base.Function<V,​E>
        Specified by:
        apply in interface java.util.function.Function<V,​E>