edu.uci.ics.jung.visualization.decorators
Class PickableEdgePaintTransformer<E>

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

public class PickableEdgePaintTransformer<E>
extends Object
implements org.apache.commons.collections15.Transformer<E,Paint>

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

Author:
Tom Nelson, Joshua O'Madadhain

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

Field Detail

pi

protected PickedInfo<E> pi

draw_paint

protected Paint draw_paint

picked_paint

protected Paint picked_paint
Constructor Detail

PickableEdgePaintTransformer

public PickableEdgePaintTransformer(PickedInfo<E> pi,
                                    Paint draw_paint,
                                    Paint picked_paint)
Parameters:
pi - specifies which vertices report as "picked"
draw_paint - Paint used to draw edge shapes
picked_paint - Paint used to draw picked edge shapes
Method Detail

transform

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


Copyright © 2009. All Rights Reserved.