Class ShortestPathDemo.MyEdgeStrokeFunction

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

    public class ShortestPathDemo.MyEdgeStrokeFunction
    extends java.lang.Object
    implements com.google.common.base.Function<java.lang.Number,​java.awt.Stroke>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.awt.Stroke THICK  
      protected java.awt.Stroke THIN  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Stroke apply​(java.lang.Number e)  
      • 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

      • THIN

        protected final java.awt.Stroke THIN
      • THICK

        protected final java.awt.Stroke THICK
    • Constructor Detail

      • MyEdgeStrokeFunction

        public MyEdgeStrokeFunction()
    • Method Detail

      • apply

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