edu.uci.ics.jung.visualization.decorators
Class ConstantDirectionalEdgeValueTransformer<V,E>
java.lang.Object
edu.uci.ics.jung.visualization.decorators.ConstantDirectionalEdgeValueTransformer<V,E>
- All Implemented Interfaces:
- org.apache.commons.collections15.Transformer<Context<Graph<V,E>,E>,Number>
public class ConstantDirectionalEdgeValueTransformer<V,E>
- extends Object
- implements org.apache.commons.collections15.Transformer<Context<Graph<V,E>,E>,Number>
Returns the constructor-specified value for each edge type.
- Author:
- Joshua O'Madadhain
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
undirected_value
protected Double undirected_value
directed_value
protected Double directed_value
ConstantDirectionalEdgeValueTransformer
public ConstantDirectionalEdgeValueTransformer(double undirected,
double directed)
- Parameters:
undirected
- directed
-
transform
public Number transform(Context<Graph<V,E>,E> context)
- Specified by:
transform
in interface org.apache.commons.collections15.Transformer<Context<Graph<V,E>,E>,Number>
- See Also:
Transformer.transform(Object)
setUndirectedValue
public void setUndirectedValue(double value)
- Sets the value returned for undirected edges to
value
.
- Parameters:
value
- the new value to return for undirected edges
setDirectedValue
public void setDirectedValue(double value)
- Sets the value returned for directed edges to
value
.
- Parameters:
value
- the new value to return for directed edges
Copyright © 2009. All Rights Reserved.