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

java.lang.Object
  extended by edu.uci.ics.jung.visualization.decorators.AbstractVertexShapeTransformer<V>
All Implemented Interfaces:
SettableVertexShapeTransformer<V>, org.apache.commons.collections15.Transformer<V,Shape>
Direct Known Subclasses:
EllipseVertexShapeTransformer

public abstract class AbstractVertexShapeTransformer<V>
extends Object
implements SettableVertexShapeTransformer<V>

Author:
Joshua O'Madadhain

Field Summary
static float DEFAULT_ASPECT_RATIO
           
static int DEFAULT_SIZE
           
protected  VertexShapeFactory<V> factory
           
protected  org.apache.commons.collections15.Transformer<V,Float> varf
           
protected  org.apache.commons.collections15.Transformer<V,Integer> vsf
           
 
Constructor Summary
AbstractVertexShapeTransformer()
           
AbstractVertexShapeTransformer(org.apache.commons.collections15.Transformer<V,Integer> vsf, org.apache.commons.collections15.Transformer<V,Float> varf)
           
 
Method Summary
 void setAspectRatioTransformer(org.apache.commons.collections15.Transformer<V,Float> varf)
           
 void setSizeTransformer(org.apache.commons.collections15.Transformer<V,Integer> vsf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.commons.collections15.Transformer
transform
 

Field Detail

vsf

protected org.apache.commons.collections15.Transformer<V,Integer> vsf

varf

protected org.apache.commons.collections15.Transformer<V,Float> varf

factory

protected VertexShapeFactory<V> factory

DEFAULT_SIZE

public static final int DEFAULT_SIZE
See Also:
Constant Field Values

DEFAULT_ASPECT_RATIO

public static final float DEFAULT_ASPECT_RATIO
See Also:
Constant Field Values
Constructor Detail

AbstractVertexShapeTransformer

public AbstractVertexShapeTransformer(org.apache.commons.collections15.Transformer<V,Integer> vsf,
                                      org.apache.commons.collections15.Transformer<V,Float> varf)

AbstractVertexShapeTransformer

public AbstractVertexShapeTransformer()
Method Detail

setSizeTransformer

public void setSizeTransformer(org.apache.commons.collections15.Transformer<V,Integer> vsf)
Specified by:
setSizeTransformer in interface SettableVertexShapeTransformer<V>

setAspectRatioTransformer

public void setAspectRatioTransformer(org.apache.commons.collections15.Transformer<V,Float> varf)
Specified by:
setAspectRatioTransformer in interface SettableVertexShapeTransformer<V>


Copyright © 2009. All Rights Reserved.