|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.jung.graph.decorators.Decorator
edu.uci.ics.jung.graph.decorators.NumericDecorator
public class NumericDecorator
Decorator for any value type that extends the java.lang.Number class
Constructor Summary | |
---|---|
NumericDecorator(Object key,
UserDataContainer.CopyAction copyAction)
Constructs and initializes the decorator |
Method Summary | |
---|---|
Number |
getValue(UserDataContainer udc)
Returns the decorated value as Number |
int |
intValue(UserDataContainer udc)
Retrieves the decorated value for the given graph/vertex/edge as an integer |
void |
setValue(Number value,
UserDataContainer udc)
Sets the value for a given graph/vertex/edge |
Methods inherited from class edu.uci.ics.jung.graph.decorators.Decorator |
---|
getCopyAction, getKey, hashCode, removeValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NumericDecorator(Object key, UserDataContainer.CopyAction copyAction)
key
- copyAction
- Method Detail |
---|
public int intValue(UserDataContainer udc)
udc
- the graph/vertex/edge
public Number getValue(UserDataContainer udc)
udc
- the graph/vertex/edge
public void setValue(Number value, UserDataContainer udc)
value
- the value to be storedudc
- the graph/vertex/edge being decorated
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |