edu.uci.ics.jung.visualization.decorators
Class GradientEdgePaintTransformer<V,E>
java.lang.Object
edu.uci.ics.jung.visualization.decorators.GradientEdgePaintTransformer<V,E>
- Direct Known Subclasses:
- PluggableRendererDemo.GradientPickedEdgePaintFunction
public class GradientEdgePaintTransformer<V,E>
- extends Object
Creates GradientPaint instances which can be used
to paint an Edge. For DirectedEdges,
the color will blend from c1 (source) to
c2 (destination); for UndirectedEdges,
the color will be c1 at each end and c2
in the middle.
- Author:
- Joshua O'Madadhain
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
c1
protected Color c1
c2
protected Color c2
vv
protected VisualizationViewer<V,E> vv
transformer
protected BidirectionalTransformer transformer
selfLoop
protected selfLoop
GradientEdgePaintTransformer
public GradientEdgePaintTransformer(Color c1,
Color c2,
VisualizationViewer<V,E> vv)
transform
public Paint transform(E e)
getColor1
protected Color getColor1(E e)
- Returns
c1. Subclasses may override
this method to enable more complex behavior (e.g., for
picked edges).
getColor2
protected Color getColor2(E e)
- Returns
c2. Subclasses may override
this method to enable more complex behavior (e.g., for
picked edges).
Copyright © 2010 null. All Rights Reserved.