Class PluggableRendererDemo.GradientPickedEdgePaintFunction<V,​E>

  • All Implemented Interfaces:
    com.google.common.base.Function<E,​java.awt.Paint>, java.util.function.Function<E,​java.awt.Paint>
    Enclosing class:
    PluggableRendererDemo

    public class PluggableRendererDemo.GradientPickedEdgePaintFunction<V,​E>
    extends GradientEdgePaintTransformer<V,​E>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Paint apply​(E e)  
      protected java.awt.Color getColor2​(E e)
      Returns c2.
      void useFill​(boolean b)  
      • 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

      • fill_edge

        protected boolean fill_edge
    • Constructor Detail

      • GradientPickedEdgePaintFunction

        public GradientPickedEdgePaintFunction​(com.google.common.base.Function<E,​java.awt.Paint> defaultEdgePaintFunction,
                                               VisualizationViewer<V,​E> vv)
    • Method Detail

      • useFill

        public void useFill​(boolean b)
      • apply

        public java.awt.Paint apply​(E e)
        Specified by:
        apply in interface com.google.common.base.Function<V,​E>
        Specified by:
        apply in interface java.util.function.Function<V,​E>
        Overrides:
        apply in class GradientEdgePaintTransformer<V,​E>
      • getColor2

        protected java.awt.Color getColor2​(E e)
        Description copied from class: GradientEdgePaintTransformer
        Returns c2. Subclasses may override this method to enable more complex behavior (e.g., for picked edges).
        Overrides:
        getColor2 in class GradientEdgePaintTransformer<V,​E>
        Parameters:
        e - the edge for which a color is to be retrieved
        Returns:
        the constructor-supplied color c2