Class PickableVertexIconTransformer<V>

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

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

    • icon

      protected Icon icon
    • picked_icon

      protected Icon picked_icon
    • pi

      protected PickedInfo<V> pi
  • Constructor Details

    • PickableVertexIconTransformer

      public PickableVertexIconTransformer(PickedInfo<V> pi, Icon icon, Icon picked_icon)
      Parameters:
      pi - specifies which vertices report as "picked"
      icon - Icon used to represent vertices
      picked_icon - Icon used to represent picked vertices
  • Method Details

    • apply

      public Icon apply(V v)
      Returns the appropriate Icon, depending on picked state.
      Specified by:
      apply in interface com.google.common.base.Function<V,Icon>
      Specified by:
      apply in interface Function<V,Icon>