public class BasicModularGraphModel extends MutableModularGraphModel
Red |
Modifier and Type | Class and Description |
---|---|
static class |
BasicModularGraphModel.BasicEdgeModel |
static class |
BasicModularGraphModel.BasicNodeModel |
_graphListeners
Constructor and Description |
---|
BasicModularGraphModel(Graph root)
Construct an empty graph model whose
root is the given semantic object.
|
Modifier and Type | Method and Description |
---|---|
CompositeModel |
getCompositeModel(java.lang.Object composite)
Return the model for the given composite object.
|
EdgeModel |
getEdgeModel(java.lang.Object edge)
Return the model for the given edge object.
|
NodeModel |
getNodeModel(java.lang.Object node)
Return the node model for the given object.
|
java.lang.Object |
getProperty(java.lang.Object o,
java.lang.String propertyName)
Return the property of the object associated with
the given property name.
|
java.lang.Object |
getSemanticObject(java.lang.Object o)
Return the semantic object corresponding
to the given node, edge, or composite.
|
void |
setProperty(java.lang.Object o,
java.lang.String propertyName,
java.lang.Object value)
Set the property of the object associated with
the given property name.
|
void |
setSemanticObject(java.lang.Object o,
java.lang.Object sem)
Set the semantic object corresponding
to the given node, edge, or composite.
|
acceptHead, acceptTail, addNode, connectEdge, disconnectEdge, getMutableEdgeModel, getMutableNodeModel, removeNode, setEdgeHead, setEdgeTail
containsNode, getHead, getNodeCount, getParent, getRoot, getTail, inEdges, isComposite, isDirected, isEdge, isNode, nodes, nodesAfterEdges, nodesBeforeEdges, outEdges
addGraphListener, dispatchGraphEvent, removeGraphListener, setDispatchEnabled
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addGraphListener, containsNode, dispatchGraphEvent, getHead, getNodeCount, getParent, getRoot, getTail, inEdges, isComposite, isDirected, isEdge, isNode, nodes, nodesAfterEdges, nodesBeforeEdges, outEdges, removeGraphListener, setDispatchEnabled
public BasicModularGraphModel(Graph root)
public CompositeModel getCompositeModel(java.lang.Object composite)
getCompositeModel
in class ModularGraphModel
public EdgeModel getEdgeModel(java.lang.Object edge)
getEdgeModel
in class ModularGraphModel
public NodeModel getNodeModel(java.lang.Object node)
getNodeModel
in class ModularGraphModel
public java.lang.Object getProperty(java.lang.Object o, java.lang.String propertyName)
getProperty
in interface GraphModel
getProperty
in class ModularGraphModel
public java.lang.Object getSemanticObject(java.lang.Object o)
getSemanticObject
in interface GraphModel
getSemanticObject
in class ModularGraphModel
public void setProperty(java.lang.Object o, java.lang.String propertyName, java.lang.Object value)
setProperty
in interface GraphModel
setProperty
in class ModularGraphModel
public void setSemanticObject(java.lang.Object o, java.lang.Object sem)
setSemanticObject
in interface GraphModel
setSemanticObject
in class ModularGraphModel