edu.uci.ics.jung.visualization.decorators
Class PickableVertexIconTransformer<V>
- java.lang.Object
-
- edu.uci.ics.jung.visualization.decorators.PickableVertexIconTransformer<V>
-
- All Implemented Interfaces:
- com.google.common.base.Function<V,javax.swing.Icon>
public class PickableVertexIconTransformer<V> extends java.lang.Object implements com.google.common.base.Function<V,javax.swing.Icon>Supplies an Icon for each vertex according to theIconparameters given in the constructor, so that picked and non-picked vertices can be made to look different.
-
-
Constructor Summary
Constructors Constructor and Description PickableVertexIconTransformer(PickedInfo<V> pi, javax.swing.Icon icon, javax.swing.Icon picked_icon)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description javax.swing.Iconapply(V v)Returns the appropriateIcon, depending on picked state.
-
-
-
Constructor Detail
-
PickableVertexIconTransformer
public PickableVertexIconTransformer(PickedInfo<V> pi, javax.swing.Icon icon, javax.swing.Icon picked_icon)
- Parameters:
pi- specifies which vertices report as "picked"icon-Iconused to represent verticespicked_icon-Iconused to represent picked vertices
-
-
DataMelt 3.0 © DataMelt by jWork.ORG