edu.uci.ics.jung.graph.decorators
Class DefaultVertexIconFunction

java.lang.Object
  extended by 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

Field Summary
protected  Map iconMap
          icon storage
 
Fields inherited from interface edu.uci.ics.jung.graph.decorators.VertexIconFunction
BROKEN_IMAGE
 
Constructor Summary
DefaultVertexIconFunction()
           
 
Method Summary
 Icon getIcon(ArchetypeVertex v)
          Returns the Icon associated with v.
 Map getIconMap()
          Returns the icon storage as a Map.
 void setIconMap(Map iconMap)
          Sets the icon storage to the specified Map.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iconMap

protected Map iconMap
icon storage

Constructor Detail

DefaultVertexIconFunction

public DefaultVertexIconFunction()
Method Detail

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