public static class BasicModularGraphModel.BasicEdgeModel extends java.lang.Object implements MutableEdgeModel
Constructor and Description |
---|
BasicEdgeModel() |
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.
|
java.lang.Object |
getHead(java.lang.Object edge)
Return the head node of the given edge.
|
java.lang.Object |
getTail(java.lang.Object edge)
Return the tail node of this edge.
|
boolean |
isDirected(java.lang.Object edge)
Return whether or not this edge is directed.
|
void |
setHead(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.
|
void |
setTail(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.
|
public boolean acceptHead(java.lang.Object edge, java.lang.Object node)
acceptHead
in interface MutableEdgeModel
public boolean acceptTail(java.lang.Object edge, java.lang.Object node)
acceptTail
in interface MutableEdgeModel
public java.lang.Object getHead(java.lang.Object edge)
public java.lang.Object getTail(java.lang.Object edge)
public boolean isDirected(java.lang.Object edge)
isDirected
in interface EdgeModel
public void setHead(java.lang.Object edge, java.lang.Object newHead)
setHead
in interface MutableEdgeModel
public void setTail(java.lang.Object edge, java.lang.Object newTail)
setTail
in interface MutableEdgeModel