edu.uci.ics.jung.samples
Class VertexImageShaperDemo.VertexStringerImpl<V,S>

java.lang.Object
  extended by edu.uci.ics.jung.samples.VertexImageShaperDemo.VertexStringerImpl<V,S>
All Implemented Interfaces:
org.apache.commons.collections15.Transformer<V,String>
Enclosing class:
VertexImageShaperDemo

public static class VertexImageShaperDemo.VertexStringerImpl<V,S>
extends Object
implements org.apache.commons.collections15.Transformer<V,String>

A simple implementation of VertexStringer that gets Vertex labels from a Map

Author:
Tom Nelson

Constructor Summary
VertexImageShaperDemo.VertexStringerImpl(Map<V,String> map)
           
 
Method Summary
 boolean isEnabled()
           
 void setEnabled(boolean enabled)
           
 String transform(V v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VertexImageShaperDemo.VertexStringerImpl

public VertexImageShaperDemo.VertexStringerImpl(Map<V,String> map)
Method Detail

transform

public String transform(V v)
Specified by:
transform in interface org.apache.commons.collections15.Transformer<V,String>

isEnabled

public boolean isEnabled()
Returns:
Returns the enabled.

setEnabled

public void setEnabled(boolean enabled)
Parameters:
enabled - The enabled to set.


Copyright © 2009. All Rights Reserved.