edu.uci.ics.jung.graph.decorators
Class DefaultVertexIconFunction
java.lang.Object
edu.uci.ics.jung.graph.decorators.DefaultVertexIconFunction
- All Implemented Interfaces:
- VertexIconFunction
- Direct Known Subclasses:
- VertexIconAndShapeFunction
public class DefaultVertexIconFunction
- extends Object
- implements VertexIconFunction
A simple, stateful VertexIconFunction.
Stores icons in a Map keyed on the Vertex
- Author:
- Tom Nelson - RABA Technologies
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iconMap
protected Map iconMap
- icon storage
DefaultVertexIconFunction
public DefaultVertexIconFunction()
getIconMap
public Map getIconMap()
- Returns the icon storage as a
Map
.
setIconMap
public void setIconMap(Map iconMap)
- Sets the icon storage to the specified
Map
.
getIcon
public Icon getIcon(ArchetypeVertex v)
- Returns the
Icon
associated with v
.
- Specified by:
getIcon
in interface VertexIconFunction