edu.uci.ics.jung.samples
Class PluggableRendererDemo.GradientPickedEdgePaintFunction<V,E>

java.lang.Object
  extended by edu.uci.ics.jung.visualization.decorators.GradientEdgePaintTransformer<V,E>
      extended by edu.uci.ics.jung.samples.PluggableRendererDemo.GradientPickedEdgePaintFunction<V,E>
All Implemented Interfaces:
org.apache.commons.collections15.Transformer<E,Paint>
Enclosing class:
PluggableRendererDemo

public class PluggableRendererDemo.GradientPickedEdgePaintFunction<V,E>
extends GradientEdgePaintTransformer<V,E>


Field Summary
protected  boolean fill_edge
           
 
Fields inherited from class edu.uci.ics.jung.visualization.decorators.GradientEdgePaintTransformer
c1, c2, transformer, vv
 
Constructor Summary
PluggableRendererDemo.GradientPickedEdgePaintFunction(org.apache.commons.collections15.Transformer<E,Paint> defaultEdgePaintFunction, VisualizationViewer<V,E> vv)
           
 
Method Summary
protected  Color getColor2(E e)
          Returns c2.
 Paint transform(E e)
           
 void useFill(boolean b)
           
 
Methods inherited from class edu.uci.ics.jung.visualization.decorators.GradientEdgePaintTransformer
getColor1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fill_edge

protected boolean fill_edge
Constructor Detail

PluggableRendererDemo.GradientPickedEdgePaintFunction

public PluggableRendererDemo.GradientPickedEdgePaintFunction(org.apache.commons.collections15.Transformer<E,Paint> defaultEdgePaintFunction,
                                                             VisualizationViewer<V,E> vv)
Method Detail

useFill

public void useFill(boolean b)

transform

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

getColor2

protected Color getColor2(E e)
Description copied from class: GradientEdgePaintTransformer
Returns c2. Subclasses may override this method to enable more complex behavior (e.g., for picked edges).

Overrides:
getColor2 in class GradientEdgePaintTransformer<V,E>


Copyright © 2009. All Rights Reserved.