edu.uci.ics.jung.visualization.decorators
Class ConstantDirectionalEdgeValueTransformer<V,E>
- java.lang.Object
-
- edu.uci.ics.jung.visualization.decorators.ConstantDirectionalEdgeValueTransformer<V,E>
-
-
Constructor Summary
Constructors Constructor and Description ConstantDirectionalEdgeValueTransformer(double undirected, double directed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Numberapply(Context<Graph<V,E>,E> context)voidsetDirectedValue(double value)Sets the value returned for directed edges tovalue.voidsetUndirectedValue(double value)Sets the value returned for undirected edges tovalue.
-
-
-
Constructor Detail
-
ConstantDirectionalEdgeValueTransformer
public ConstantDirectionalEdgeValueTransformer(double undirected, double directed)- Parameters:
undirected- the value to return if the edge is undirecteddirected- the value to return if the edge is directed
-
-
Method Detail
-
setUndirectedValue
public void setUndirectedValue(double value)
Sets the value returned for undirected edges tovalue.- Parameters:
value- the new value to return for undirected edges
-
setDirectedValue
public void setDirectedValue(double value)
Sets the value returned for directed edges tovalue.- Parameters:
value- the new value to return for directed edges
-
-
DataMelt 3.0 © DataMelt by jWork.ORG