Class DefaultVertexIconTransformer<V>
- java.lang.Object
-
- edu.uci.ics.jung.visualization.decorators.DefaultVertexIconTransformer<V>
-
- All Implemented Interfaces:
org.apache.commons.collections4.Transformer<V,javax.swing.Icon>
public class DefaultVertexIconTransformer<V> extends java.lang.Object implements org.apache.commons.collections4.Transformer<V,javax.swing.Icon>
A simple, stateful VertexIconFunction. Stores icons in a Map keyed on the Vertex
-
-
Constructor Summary
Constructors Constructor Description DefaultVertexIconTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<V,javax.swing.Icon>
getIconMap()
Returns the icon storage as aMap
.void
setIconMap(java.util.Map<V,javax.swing.Icon> iconMap)
Sets the icon storage to the specifiedMap
.javax.swing.Icon
transform(V v)
Returns theIcon
associated withv
.
-
-
-
Field Detail
-
iconMap
protected java.util.Map<V,javax.swing.Icon> iconMap
icon storage
-
-