Class PluggableRendererDemo.EdgeWeightStrokeFunction<E>

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

    private static final class PluggableRendererDemo.EdgeWeightStrokeFunction<E>
    extends java.lang.Object
    implements com.google.common.base.Function<E,​java.awt.Stroke>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.awt.Stroke basic  
      protected static java.awt.Stroke dotted  
      protected java.util.Map<E,​java.lang.Number> edge_weight  
      protected static java.awt.Stroke heavy  
      protected boolean weighted  
    • Constructor Summary

      Constructors 
      Constructor Description
      EdgeWeightStrokeFunction​(java.util.Map<E,​java.lang.Number> edge_weight)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Stroke apply​(E e)  
      protected boolean drawHeavy​(E e)  
      void setWeighted​(boolean weighted)  
      • 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

      • basic

        protected static final java.awt.Stroke basic
      • heavy

        protected static final java.awt.Stroke heavy
      • dotted

        protected static final java.awt.Stroke dotted
      • weighted

        protected boolean weighted
      • edge_weight

        protected java.util.Map<E,​java.lang.Number> edge_weight
    • Constructor Detail

      • EdgeWeightStrokeFunction

        public EdgeWeightStrokeFunction​(java.util.Map<E,​java.lang.Number> edge_weight)
    • Method Detail

      • setWeighted

        public void setWeighted​(boolean weighted)
      • apply

        public java.awt.Stroke apply​(E e)
        Specified by:
        apply in interface com.google.common.base.Function<E,​java.awt.Stroke>
        Specified by:
        apply in interface java.util.function.Function<E,​java.awt.Stroke>
      • drawHeavy

        protected boolean drawHeavy​(E e)