edu.uci.ics.jung.graph.decorators
Class ConstantEdgeValue
java.lang.Object
edu.uci.ics.jung.graph.decorators.ConstantEdgeValue
- All Implemented Interfaces:
- NumberEdgeValue
public class ConstantEdgeValue
- extends Object
- implements NumberEdgeValue
Returns a constructor-specified constant value for each edge.
- Author:
- Joshua O'Madadhain
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
protected Number value
ConstantEdgeValue
public ConstantEdgeValue(double value)
ConstantEdgeValue
public ConstantEdgeValue(Number value)
getNumber
public Number getNumber(ArchetypeEdge arg0)
- Specified by:
getNumber
in interface NumberEdgeValue
- Parameters:
arg0
- the edge to examine
- Returns:
- the Number associated with this edge
- See Also:
NumberEdgeValue.getNumber(edu.uci.ics.jung.graph.ArchetypeEdge)
setNumber
public void setNumber(ArchetypeEdge arg0,
Number arg1)
- Specified by:
setNumber
in interface NumberEdgeValue
- Parameters:
arg0
- the edge whose value we're settingarg1
- the Number to which we're setting the edge- See Also:
NumberEdgeValue.setNumber(edu.uci.ics.jung.graph.ArchetypeEdge, java.lang.Number)