Class WeightedEdgeStyler<E extends com.google.common.graph.EndpointPair>
- java.lang.Object
-
- com.googlecode.blaisemath.graph.view.WeightedEdgeStyler<E>
-
- Type Parameters:
E- edge type
- All Implemented Interfaces:
com.google.common.base.Function<E,com.googlecode.blaisemath.style.AttributeSet>,Function<E,com.googlecode.blaisemath.style.AttributeSet>
public class WeightedEdgeStyler<E extends com.google.common.graph.EndpointPair> extends Object implements com.google.common.base.Function<E,com.googlecode.blaisemath.style.AttributeSet>
Provides an edge styler for changing the appearance of edges in a weighted graph. Provides unique styles for positive and negative weights.- Author:
- Elisha Peterson
-
-
Constructor Summary
Constructors Constructor Description WeightedEdgeStyler(com.googlecode.blaisemath.style.AttributeSet parent, Map<E,Double> weights)Construct the customizer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.googlecode.blaisemath.style.AttributeSetapply(E o)Map<E,Double>getWeights()voidsetWeights(Map<E,Double> weights)
-
-
-
Method Detail
-
apply
public com.googlecode.blaisemath.style.AttributeSet apply(E o)
-
-