public interface AnnotationFactory<T extends Annotation>
Annotation
s. This factory will be provided
as a service through OSGi.Module: presentation-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>presentation-api</artifactId> </dependency>
Modifier and Type | Method and Description |
---|---|
T |
createAnnotation(Class<? extends T> type,
CyNetworkView view,
Map<String,String> argMap)
Create an annotation.
|
T createAnnotation(Class<? extends T> type, CyNetworkView view, Map<String,String> argMap)
AnnotationManager#addAnnotation()
method.type
- the class of annotation you want to createargMap
- the arguments to use to initialize the annotation. See the descriptions for
each annotation type to see the list of keys for the arg map.Copyright 2011 Cytoscape Consortium. All rights reserved.