Class PluggableRendererDemo.VertexStrokeHighlight<V,​E>

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

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

      Fields 
      Modifier and Type Field Description
      protected Graph<V,​E> graph  
      protected java.awt.Stroke heavy  
      protected boolean highlight  
      protected java.awt.Stroke light  
      protected java.awt.Stroke medium  
      protected PickedInfo<V> pi  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.Stroke apply​(V v)  
      void setHighlight​(boolean highlight)  
      • 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

      • highlight

        protected boolean highlight
      • heavy

        protected java.awt.Stroke heavy
      • medium

        protected java.awt.Stroke medium
      • light

        protected java.awt.Stroke light
      • graph

        protected Graph<V,​E> graph
    • Constructor Detail

      • VertexStrokeHighlight

        public VertexStrokeHighlight​(Graph<V,​E> graph,
                                     PickedInfo<V> pi)
    • Method Detail

      • setHighlight

        public void setHighlight​(boolean highlight)
      • apply

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