public class PickableVertexIconTransformer<V> extends Object implements com.google.common.base.Function<V,Icon>
Icon
parameters given in the constructor, so that picked and
non-picked vertices can be made to look different.Modifier and Type | Field and Description |
---|---|
protected Icon |
icon |
protected PickedInfo<V> |
pi |
protected Icon |
picked_icon |
Constructor and Description |
---|
PickableVertexIconTransformer(PickedInfo<V> pi,
Icon icon,
Icon picked_icon) |
Modifier and Type | Method and Description |
---|---|
Icon |
apply(V v)
Returns the appropriate
Icon , depending on picked state. |
protected Icon icon
protected Icon picked_icon
protected PickedInfo<V> pi
public PickableVertexIconTransformer(PickedInfo<V> pi, Icon icon, Icon picked_icon)
pi
- specifies which vertices report as "picked"icon
- Icon
used to represent verticespicked_icon
- Icon
used to represent picked verticesCopyright © 2015. All rights reserved.