org.grinvin.graphs

Interface Annotation

All Superinterfaces:
AnnotationView
Known Subinterfaces:
MutableAnnotationModel
Known Implementing Classes:
DefaultAnnotation, DefaultAnnotationModel

public interface Annotation
extends AnnotationView

Method Summary

void
copy(AnnotationView original)
Make this annotation a copy of the given view using the peer of the original.
void
copy(AnnotationView original, GraphView newPeer)
Make this annotation a copy of the given view using the given peer.
void
setAnnotation(Edge edge, Object annotation)
Sets the annotation for the given Edge.
void
setAnnotation(Vertex vertex, Object annotation)
Sets the annotation for the given Vertex.

Methods inherited from interface org.grinvin.graphs.AnnotationView

getAnnotation, getAnnotation, getPeer

Method Details

copy

public void copy(AnnotationView original)
Make this annotation a copy of the given view using the peer of the original.

copy

public void copy(AnnotationView original,
                 GraphView newPeer)
Make this annotation a copy of the given view using the given peer. This peer is supposed to be a copy of the peer in the sense of method Graph.copy(GraphView).

setAnnotation

public void setAnnotation(Edge edge,
                          Object annotation)
Sets the annotation for the given Edge.

setAnnotation

public void setAnnotation(Vertex vertex,
                          Object annotation)
Sets the annotation for the given Vertex.