Class PluggableRendererDemo.EdgeWeightStrokeFunction<E>

java.lang.Object
edu.uci.ics.jung.samples.PluggableRendererDemo.EdgeWeightStrokeFunction<E>
All Implemented Interfaces:
com.google.common.base.Function<E,Stroke>, Function<E,Stroke>
Enclosing class:
PluggableRendererDemo

private static final class PluggableRendererDemo.EdgeWeightStrokeFunction<E> extends Object implements com.google.common.base.Function<E,Stroke>
  • Field Details

    • basic

      protected static final Stroke basic
    • heavy

      protected static final Stroke heavy
    • dotted

      protected static final Stroke dotted
    • weighted

      protected boolean weighted
    • edge_weight

      protected Map<E,Number> edge_weight
  • Constructor Details

    • EdgeWeightStrokeFunction

      public EdgeWeightStrokeFunction(Map<E,Number> edge_weight)
  • Method Details

    • setWeighted

      public void setWeighted(boolean weighted)
    • apply

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

      protected boolean drawHeavy(E e)