de.grogra.graph
public static final class GraphState.ObjectContext extends java.lang.Object
GraphState.getObjectContext() and set by
GraphState.setObjectContext(Object, boolean) and
GraphState.setObjectContext(ObjectContext). An object
context consists of two parts:
getObject(), isNode())
GraphState.setObjectContext(Object, boolean). The map
uses == to compare keys.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getObject()
Returns the object of this context.
|
java.lang.Object |
getValue(java.lang.Object owner)
Returns the value associated with
owner. |
boolean |
isNode()
Defines whether this object context specifies a node or an edge.
|
void |
setValue(java.lang.Object owner,
java.lang.Object value)
Associates a value with an owner in the context map.
|
public java.lang.Object getObject()
public java.lang.Object getValue(java.lang.Object owner)
owner.owner - a key for the context mapnullpublic boolean isNode()
true if getObject() returns a node,
false if it returns an edgepublic void setValue(java.lang.Object owner,
java.lang.Object value)
owner - a key for the context mapvalue - the new value to associate with owner