Package org.graphstream.stream
Annotation Type AnnotatedSink.Bind
@Documented @Retention(RUNTIME) @Target(METHOD) public static @interface AnnotatedSink.Bind
Annotation used to bind an event to a method. This bind is composed of a name
(the attribute key) and an element type. For example, the annotation
@Bind(value = "test", type = ElementType.NODE)will be triggered the annotated method when receiving 'nodeAttributeXXX()' methods.
-
Required Element Summary
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description SourceBase.ElementType
type
Type of element that triggered the annotated method.
-
Element Details
-
-
type
Type of element that triggered the annotated method. Default is GRAPH.- Returns:
- type of element in GRAPH, NODE or EDGE
- Default:
- org.graphstream.stream.SourceBase.ElementType.GRAPH
-