|
|||||||||||
| 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
Decorator for any value type that extends the java.lang.Number class
| Constructor Summary | |
NumericDecorator(java.lang.Object key,
UserDataContainer.CopyAction copyAction)
Constructs and initializes the decorator |
|
| Method Summary | |
java.lang.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(java.lang.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 |
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NumericDecorator(java.lang.Object key,
UserDataContainer.CopyAction copyAction)
key - copyAction - | Method Detail |
public int intValue(UserDataContainer udc)
udc - the graph/vertex/edge
public java.lang.Number getValue(UserDataContainer udc)
udc - the graph/vertex/edge
public void setValue(java.lang.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 | ||||||||||