public class PluggableRendererDemo.GradientPickedEdgePaintFunction<V,E> extends GradientEdgePaintTransformer<V,E>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
fill_edge |
c1, c2, transformer, vv| Constructor and Description |
|---|
GradientPickedEdgePaintFunction(com.google.common.base.Function<E,Paint> defaultEdgePaintFunction,
VisualizationViewer<V,E> vv) |
| Modifier and Type | Method and Description |
|---|---|
Paint |
apply(E e) |
protected Color |
getColor2(E e)
Returns
c2. |
void |
useFill(boolean b) |
getColor1public GradientPickedEdgePaintFunction(com.google.common.base.Function<E,Paint> defaultEdgePaintFunction, VisualizationViewer<V,E> vv)
public void useFill(boolean b)
protected Color getColor2(E e)
GradientEdgePaintTransformerc2. Subclasses may override
this method to enable more complex behavior (e.g., for
picked edges).getColor2 in class GradientEdgePaintTransformer<V,E>e - the edge for which a color is to be retrievedc2Copyright © 2016. All rights reserved.