public interface MutableGraphModel extends GraphModel
Yellow |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptHead(java.lang.Object edge,
java.lang.Object node)
Return true if the head of the given edge can be attached to the
given node.
|
boolean |
acceptTail(java.lang.Object edge,
java.lang.Object node)
Return true if the tail of the given edge can be attached to the
given node.
|
void |
addNode(java.lang.Object eventSource,
java.lang.Object node,
java.lang.Object parent)
Add a node to the given graph and notify listeners with a
NODE_ADDED event whose source is the given source object.
|
void |
connectEdge(java.lang.Object eventSource,
java.lang.Object edge,
java.lang.Object tailNode,
java.lang.Object headNode)
Connect the given edge to the given tail and head nodes,
and notify listeners with events whose source is the given
eventSource object
|
void |
disconnectEdge(java.lang.Object eventSource,
java.lang.Object edge)
Disconnect an edge from its two endpoints and notify graph
listeners with an EDGE_HEAD_CHANGED and an EDGE_TAIL_CHANGED
event whose source is the given source.
|
void |
removeNode(java.lang.Object eventSource,
java.lang.Object node)
Delete a node from its parent graph and notify
graph listeners with a NODE_REMOVED event.
|
void |
setEdgeHead(java.lang.Object eventSource,
java.lang.Object edge,
java.lang.Object newHead)
Connect an edge to the given head node and notify listeners
with an EDGE_HEAD_CHANGED event whose source is the given
eventSource object.
|
void |
setEdgeTail(java.lang.Object eventSource,
java.lang.Object edge,
java.lang.Object newTail)
Connect an edge to the given tail node and notify listeners
with an EDGE_TAIL_CHANGED event whose source is the given
eventSource object.
|
addGraphListener, containsNode, dispatchGraphEvent, getHead, getNodeCount, getParent, getProperty, getRoot, getSemanticObject, getTail, inEdges, isComposite, isDirected, isEdge, isNode, nodes, nodesAfterEdges, nodesBeforeEdges, outEdges, removeGraphListener, setDispatchEnabled, setProperty, setSemanticObject
boolean acceptHead(java.lang.Object edge, java.lang.Object node)
boolean acceptTail(java.lang.Object edge, java.lang.Object node)
void addNode(java.lang.Object eventSource, java.lang.Object node, java.lang.Object parent) throws GraphException
eventSource
- The source of the event that will be dispatched, e.g.
the view that made this call.GraphException
- if the operation fails.void connectEdge(java.lang.Object eventSource, java.lang.Object edge, java.lang.Object tailNode, java.lang.Object headNode) throws GraphException
eventSource
- The source of the event that will be dispatched, e.g.
the view that made this call.GraphException
- if the operation fails.void disconnectEdge(java.lang.Object eventSource, java.lang.Object edge) throws GraphException
eventSource
- The source of the event that will be dispatched, e.g.
the view that made this call.GraphException
- if the operation fails.void removeNode(java.lang.Object eventSource, java.lang.Object node) throws GraphException
eventSource
- The source of the event that will be dispatched, e.g.
the view that made this call.GraphException
- if the operation fails.void setEdgeHead(java.lang.Object eventSource, java.lang.Object edge, java.lang.Object newHead) throws GraphException
eventSource
- The source of the event that will be dispatched, e.g.
the view that made this call.GraphException
- if the operation fails.void setEdgeTail(java.lang.Object eventSource, java.lang.Object edge, java.lang.Object newTail) throws GraphException
eventSource
- The source of the event that will be dispatched, e.g.
the view that made this call.GraphException
- if the operation fails.