Class PickableVertexPaintTransformer<V>

java.lang.Object
edu.uci.ics.jung.visualization.decorators.PickableVertexPaintTransformer<V>
All Implemented Interfaces:
com.google.common.base.Function<V,Paint>, Function<V,Paint>

public class PickableVertexPaintTransformer<V> extends Object implements com.google.common.base.Function<V,Paint>
Paints each vertex according to the Paint parameters given in the constructor, so that picked and non-picked vertices can be made to look different.
  • Field Details

    • fill_paint

      protected Paint fill_paint
    • picked_paint

      protected Paint picked_paint
    • pi

      protected PickedInfo<V> pi
  • Constructor Details

    • PickableVertexPaintTransformer

      public PickableVertexPaintTransformer(PickedInfo<V> pi, Paint fill_paint, Paint picked_paint)
      Parameters:
      pi - specifies which vertices report as "picked"
      fill_paint - Paint used to fill vertex shapes
      picked_paint - Paint used to fill picked vertex shapes
  • Method Details

    • apply

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