static class LinkedDirectedGraph.AnnotatedLinkedDirectedGraphNode<N,E> extends LinkedDirectedGraph.LinkedDirectedGraphNode<N,E>
| Modifier and Type | Field and Description |
|---|---|
protected Annotation |
annotation |
inEdgeList, outEdgeList, value| Constructor and Description |
|---|
AnnotatedLinkedDirectedGraphNode(N nodeValue) |
| Modifier and Type | Method and Description |
|---|---|
<A extends Annotation> |
getAnnotation()
Retrieves a piece of information that has been annotated.
|
void |
setAnnotation(Annotation data)
Annotates a piece of information to the object.
|
getColor, getId, getInEdges, getLabel, getOutEdges, getValue, toStringprotected Annotation annotation
AnnotatedLinkedDirectedGraphNode(N nodeValue)
nodeValue - Node's value.public <A extends Annotation> A getAnnotation()
AnnotatablegetAnnotation in interface AnnotatablegetAnnotation in class LinkedDirectedGraph.LinkedDirectedGraphNode<N,E>null if the object has not
been annotated.public void setAnnotation(Annotation data)
AnnotatablesetAnnotation in interface AnnotatablesetAnnotation in class LinkedDirectedGraph.LinkedDirectedGraphNode<N,E>data - Information to be annotated.