edu.uci.ics.jung.visualization3d.decorators
Class PickableVertexPaintTransformer<V>

java.lang.Object
  extended by edu.uci.ics.jung.visualization3d.decorators.PickableVertexPaintTransformer<V>
All Implemented Interfaces:
org.apache.commons.collections15.Transformer<V,Paint>

public class PickableVertexPaintTransformer<V>
extends Object
implements org.apache.commons.collections15.Transformer<V,Paint>

Paints each vertex according to the Paint parameters given in the constructor, so that picked and non-picked vertices can be made to look different.


Field Summary
protected  Paint fill_paint
           
protected  PickedInfo<V> pi
           
protected  Paint picked_paint
           
 
Constructor Summary
PickableVertexPaintTransformer(PickedInfo<V> pi, Paint fill_paint, Paint picked_paint)
           
 
Method Summary
 Paint transform(V v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fill_paint

protected Paint fill_paint

picked_paint

protected Paint picked_paint

pi

protected PickedInfo<V> pi
Constructor Detail

PickableVertexPaintTransformer

public PickableVertexPaintTransformer(PickedInfo<V> pi,
                                      Paint fill_paint,
                                      Paint picked_paint)
Parameters:
pi - specifies which vertices report as "picked"
draw_paint - Paint used to draw vertex shapes
fill_paint - Paint used to fill vertex shapes
picked_paint - Paint used to fill picked vertex shapes
Method Detail

transform

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


Copyright © 2009. All Rights Reserved.