public class PickableVertexIconFunction extends java.lang.Object implements VertexIconFunction
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 javax.swing.Icon |
icon |
protected PickedInfo |
pi |
protected javax.swing.Icon |
picked_icon |
BROKEN_IMAGE
Constructor and Description |
---|
PickableVertexIconFunction(PickedInfo pi,
javax.swing.Icon icon,
javax.swing.Icon picked_icon) |
Modifier and Type | Method and Description |
---|---|
javax.swing.Icon |
getIcon(ArchetypeVertex v)
Returns the appropriate
Icon , depending on picked state. |
protected javax.swing.Icon icon
protected javax.swing.Icon picked_icon
protected PickedInfo pi
public PickableVertexIconFunction(PickedInfo pi, javax.swing.Icon icon, javax.swing.Icon picked_icon)
pi
- specifies which vertices report as "picked"icon
- Icon
used to represent verticespicked_icon
- Icon
used to represent picked verticespublic javax.swing.Icon getIcon(ArchetypeVertex v)
Icon
, depending on picked state.getIcon
in interface VertexIconFunction