public class GradientEdgePaintTransformer<V,E> extends Object implements com.google.common.base.Function<E,Paint>
GradientPaint
instances which can be used
to paint an Edge
. For DirectedEdge
s,
the color will blend from c1
(source) to
c2
(destination); for UndirectedEdge
s,
the color will be c1
at each end and c2
in the middle.Modifier and Type | Field and Description |
---|---|
protected Color |
c1 |
protected Color |
c2 |
protected com.google.common.base.Predicate<Context<Graph<V,E>,E>> |
selfLoop |
protected BidirectionalTransformer |
transformer |
protected VisualizationViewer<V,E> |
vv |
Constructor and Description |
---|
GradientEdgePaintTransformer(Color c1,
Color c2,
VisualizationViewer<V,E> vv) |
Modifier and Type | Method and Description |
---|---|
Paint |
apply(E e) |
protected Color |
getColor1(E e)
Returns
c1 . |
protected Color |
getColor2(E e)
Returns
c2 . |
protected Color c1
protected Color c2
protected VisualizationViewer<V,E> vv
protected BidirectionalTransformer transformer
public GradientEdgePaintTransformer(Color c1, Color c2, VisualizationViewer<V,E> vv)
Copyright © 2015. All rights reserved.