use of org.cytoscape.view.presentation.annotations.BoundedTextAnnotation in project cytoscape-impl by cytoscape.
the class BoundedTextAnnotationFactory method createAnnotation.
@Override
public BoundedTextAnnotation createAnnotation(Class<? extends BoundedTextAnnotation> type, CyNetworkView view, Map<String, String> argMap) {
if (!(view instanceof DGraphView))
return null;
DGraphView dView = (DGraphView) view;
if (type.equals(BoundedTextAnnotation.class)) {
final BoundedTextAnnotationImpl a = new BoundedTextAnnotationImpl(dView, argMap, getActiveWindow());
a.update();
return (BoundedTextAnnotation) a;
} else {
return null;
}
}
Aggregations