Package edu.uci.ics.jung.samples
Class PluggableRendererDemo.EdgeWeightStrokeFunction<E>
- java.lang.Object
-
- edu.uci.ics.jung.samples.PluggableRendererDemo.EdgeWeightStrokeFunction<E>
-
- All Implemented Interfaces:
com.google.common.base.Function<E,java.awt.Stroke>
,java.util.function.Function<E,java.awt.Stroke>
- Enclosing class:
- PluggableRendererDemo
private static final class PluggableRendererDemo.EdgeWeightStrokeFunction<E> extends java.lang.Object implements com.google.common.base.Function<E,java.awt.Stroke>
-
-
Constructor Summary
Constructors Constructor Description EdgeWeightStrokeFunction(java.util.Map<E,java.lang.Number> edge_weight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Stroke
apply(E e)
protected boolean
drawHeavy(E e)
void
setWeighted(boolean weighted)
-
-
-
Field Detail
-
basic
protected static final java.awt.Stroke basic
-
heavy
protected static final java.awt.Stroke heavy
-
dotted
protected static final java.awt.Stroke dotted
-
weighted
protected boolean weighted
-
edge_weight
protected java.util.Map<E,java.lang.Number> edge_weight
-
-
Constructor Detail
-
EdgeWeightStrokeFunction
public EdgeWeightStrokeFunction(java.util.Map<E,java.lang.Number> edge_weight)
-
-