static class LinkedUndirectedGraph.AnnotatedLinkedUndirectedGraphEdge<N,E> extends LinkedUndirectedGraph.LinkedUndirectedGraphEdge<N,E>
| Modifier and Type | Field and Description |
|---|---|
protected Annotation |
annotation |
value| Constructor and Description |
|---|
AnnotatedLinkedUndirectedGraphEdge(UndiGraph.UndiGraphNode<N,E> nodeA,
E edgeValue,
UndiGraph.UndiGraphNode<N,E> nodeB) |
| 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, getLabel, getNode1Id, getNode2Id, getNodeA, getNodeB, getValue, toStringprotected Annotation annotation
AnnotatedLinkedUndirectedGraphEdge(UndiGraph.UndiGraphNode<N,E> nodeA, E edgeValue, UndiGraph.UndiGraphNode<N,E> nodeB)
public <A extends Annotation> A getAnnotation()
AnnotatablegetAnnotation in interface AnnotatablegetAnnotation in class LinkedUndirectedGraph.LinkedUndirectedGraphEdge<N,E>null if the object has not
been annotated.public void setAnnotation(Annotation data)
AnnotatablesetAnnotation in interface AnnotatablesetAnnotation in class LinkedUndirectedGraph.LinkedUndirectedGraphEdge<N,E>data - Information to be annotated.