edu.uci.ics.jung.visualization.decorators
Class DefaultVertexIconTransformer<V>

java.lang.Object
  extended by edu.uci.ics.jung.visualization.decorators.DefaultVertexIconTransformer<V>
All Implemented Interfaces:
org.apache.commons.collections15.Transformer<V,Icon>
Direct Known Subclasses:
VertexImageShaperDemo.DemoVertexIconTransformer

public class DefaultVertexIconTransformer<V>
extends Object
implements org.apache.commons.collections15.Transformer<V,Icon>

A simple, stateful VertexIconFunction. Stores icons in a Map keyed on the Vertex

Author:
Tom Nelson

Field Summary
protected  Map<V,Icon> iconMap
          icon storage
 
Constructor Summary
DefaultVertexIconTransformer()
           
 
Method Summary
 Map<V,Icon> getIconMap()
          Returns the icon storage as a Map.
 void setIconMap(Map<V,Icon> iconMap)
          Sets the icon storage to the specified Map.
 Icon transform(V v)
          Returns the Icon associated with v.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iconMap

protected Map<V,Icon> iconMap
icon storage

Constructor Detail

DefaultVertexIconTransformer

public DefaultVertexIconTransformer()
Method Detail

getIconMap

public Map<V,Icon> getIconMap()
Returns the icon storage as a Map.


setIconMap

public void setIconMap(Map<V,Icon> iconMap)
Sets the icon storage to the specified Map.


transform

public Icon transform(V v)
Returns the Icon associated with v.

Specified by:
transform in interface org.apache.commons.collections15.Transformer<V,Icon>


Copyright © 2009. All Rights Reserved.