Package edu.uci.ics.jung.samples
Class PluggableRendererDemo.GradientPickedEdgePaintFunction<V,E>
java.lang.Object
edu.uci.ics.jung.visualization.decorators.GradientEdgePaintTransformer<V,E>
edu.uci.ics.jung.samples.PluggableRendererDemo.GradientPickedEdgePaintFunction<V,E>
- Enclosing class:
PluggableRendererDemo
public class PluggableRendererDemo.GradientPickedEdgePaintFunction<V,E>
extends GradientEdgePaintTransformer<V,E>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Fields inherited from class edu.uci.ics.jung.visualization.decorators.GradientEdgePaintTransformer
c1, c2, transformer, vv
-
Constructor Summary
ConstructorsConstructorDescriptionGradientPickedEdgePaintFunction
(com.google.common.base.Function<E, Paint> defaultEdgePaintFunction, VisualizationViewer<V, E> vv) -
Method Summary
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
Methods inherited from interface com.google.common.base.Function
equals
-
Field Details
-
defaultFunc
-
fill_edge
protected boolean fill_edge -
selfLoop
-
-
Constructor Details
-
GradientPickedEdgePaintFunction
public GradientPickedEdgePaintFunction(com.google.common.base.Function<E, Paint> defaultEdgePaintFunction, VisualizationViewer<V, E> vv)
-
-
Method Details
-
useFill
public void useFill(boolean b) -
apply
-
getColor2
Description copied from class:GradientEdgePaintTransformer
Returnsc2
. Subclasses may override this method to enable more complex behavior (e.g., for picked edges).- Overrides:
getColor2
in classGradientEdgePaintTransformer<V,
E> - Parameters:
e
- the edge for which a color is to be retrieved- Returns:
- the constructor-supplied color
c2
-