Class PluggableRendererDemo.VertexShapeSizeAspect<V,E>

java.lang.Object
edu.uci.ics.jung.visualization.decorators.AbstractVertexShapeTransformer<V>
edu.uci.ics.jung.samples.PluggableRendererDemo.VertexShapeSizeAspect<V,E>
All Implemented Interfaces:
com.google.common.base.Function<V,Shape>, SettableVertexShapeTransformer<V>, Function<V,Shape>
Enclosing class:
PluggableRendererDemo

private static final class PluggableRendererDemo.VertexShapeSizeAspect<V,E> extends AbstractVertexShapeTransformer<V> implements com.google.common.base.Function<V,Shape>
Controls the shape, size, and aspect ratio for each vertex.
  • Field Details

    • stretch

      protected boolean stretch
    • scale

      protected boolean scale
    • funny_shapes

      protected boolean funny_shapes
    • voltages

      protected com.google.common.base.Function<V,Double> voltages
    • graph

      protected Graph<V,E> graph
  • Constructor Details

    • VertexShapeSizeAspect

      public VertexShapeSizeAspect(Graph<V,E> graphIn, com.google.common.base.Function<V,Double> voltagesIn)
  • Method Details

    • setStretching

      public void setStretching(boolean stretch)
    • setScaling

      public void setScaling(boolean scale)
    • useFunnyShapes

      public void useFunnyShapes(boolean use)
    • apply

      public Shape apply(V v)
      Specified by:
      apply in interface com.google.common.base.Function<V,E>
      Specified by:
      apply in interface Function<V,E>