Package edu.uci.ics.jung.samples
Class EdgeLabelDemo.MutableDirectionalEdgeValue
java.lang.Object
edu.uci.ics.jung.visualization.decorators.ConstantDirectionalEdgeValueTransformer<Integer,Number>
edu.uci.ics.jung.samples.EdgeLabelDemo.MutableDirectionalEdgeValue
- All Implemented Interfaces:
com.google.common.base.Function<Context<Graph<Integer,
,Number>, Number>, Number> Function<Context<Graph<Integer,
Number>, Number>, Number>
- Enclosing class:
EdgeLabelDemo
class EdgeLabelDemo.MutableDirectionalEdgeValue
extends ConstantDirectionalEdgeValueTransformer<Integer,Number>
subclassed to hold two BoundedRangeModel instances that
are used by JSliders to move the edge label positions
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) BoundedRangeModel
(package private) BoundedRangeModel
Fields inherited from class edu.uci.ics.jung.visualization.decorators.ConstantDirectionalEdgeValueTransformer
directed_value, undirected_value
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class edu.uci.ics.jung.visualization.decorators.ConstantDirectionalEdgeValueTransformer
apply, setDirectedValue, setUndirectedValue
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
-
undirectedModel
BoundedRangeModel undirectedModel -
directedModel
BoundedRangeModel directedModel
-
-
Constructor Details
-
MutableDirectionalEdgeValue
public MutableDirectionalEdgeValue(double undirected, double directed)
-
-
Method Details
-
getDirectedModel
- Returns:
- Returns the directedModel.
-
getUndirectedModel
- Returns:
- Returns the undirectedModel.
-