|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.graph.GraphState.ObjectContext
public static final class GraphState.ObjectContext
This class represents an object context. A
graph state has a current object context which is obtained by
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.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.Object getObject()
public java.lang.Object getValue(java.lang.Object owner)
owner
.
owner
- a key for the context map
null
public 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
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |