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

java.lang.Object
  extended by edu.uci.ics.jung.visualization.decorators.DefaultVertexImageTransformer<V>
All Implemented Interfaces:
org.apache.commons.collections15.Transformer<V,Image>
Direct Known Subclasses:
SWTVertexImageShaperDemo.DemoVertexImageTransformer

public class DefaultVertexImageTransformer<V>
extends Object
implements org.apache.commons.collections15.Transformer<V,Image>

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

Author:
Tom Nelson

Field Summary
protected  Map<V,Image> imageMap
          icon storage
 
Constructor Summary
DefaultVertexImageTransformer()
           
 
Method Summary
 Map<V,Image> getImageMap()
          Returns the icon storage as a Map.
 void setImageMap(Map<V,Image> imageMap)
          Sets the icon storage to the specified Map.
 Image 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

imageMap

protected Map<V,Image> imageMap
icon storage

Constructor Detail

DefaultVertexImageTransformer

public DefaultVertexImageTransformer()
Method Detail

getImageMap

public Map<V,Image> getImageMap()
Returns the icon storage as a Map.


setImageMap

public void setImageMap(Map<V,Image> imageMap)
Sets the icon storage to the specified Map.


transform

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

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


Copyright © 2007. All Rights Reserved.