edu.uci.ics.jung.graph.decorators
Class PickableVertexIconFunction
java.lang.Object
edu.uci.ics.jung.graph.decorators.PickableVertexIconFunction
- All Implemented Interfaces:
- VertexIconFunction
public class PickableVertexIconFunction
- extends Object
- implements VertexIconFunction
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
icon
protected Icon icon
picked_icon
protected Icon picked_icon
pi
protected PickedInfo pi
PickableVertexIconFunction
public PickableVertexIconFunction(PickedInfo pi,
Icon icon,
Icon picked_icon)
- Parameters:
pi
- specifies which vertices report as "picked"icon
- Icon
used to represent verticespicked_icon
- Icon
used to represent picked vertices
getIcon
public Icon getIcon(ArchetypeVertex v)
- Returns the appropriate
Icon
, depending on picked state.
- Specified by:
getIcon
in interface VertexIconFunction