Search in sources :

Example 6 with Annotation

use of org.cytoscape.view.presentation.annotations.Annotation in project cytoscape-impl by cytoscape.

the class CyAnnotator method removeAnnotations.

public void removeAnnotations(Collection<? extends Annotation> annotations) {
    for (Annotation annotation : annotations) {
        annotationMap.remove((DingAnnotation) annotation);
        selectedAnnotations.remove(annotation);
    }
    updateNetworkAttributes(view.getModel());
}
Also used : AbstractAnnotation(org.cytoscape.ding.impl.cyannotator.annotations.AbstractAnnotation) GroupAnnotation(org.cytoscape.view.presentation.annotations.GroupAnnotation) Annotation(org.cytoscape.view.presentation.annotations.Annotation) DingAnnotation(org.cytoscape.ding.impl.cyannotator.annotations.DingAnnotation)

Aggregations

Annotation (org.cytoscape.view.presentation.annotations.Annotation)6 DingAnnotation (org.cytoscape.ding.impl.cyannotator.annotations.DingAnnotation)5 GroupAnnotation (org.cytoscape.view.presentation.annotations.GroupAnnotation)4 AbstractAnnotation (org.cytoscape.ding.impl.cyannotator.annotations.AbstractAnnotation)3 DGraphView (org.cytoscape.ding.impl.DGraphView)2 CyAnnotator (org.cytoscape.ding.impl.cyannotator.CyAnnotator)2 Point2D (java.awt.geom.Point2D)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 TreeMap (java.util.TreeMap)1 JComponent (javax.swing.JComponent)1 DNodeView (org.cytoscape.ding.impl.DNodeView)1 ArrowAnnotationImpl (org.cytoscape.ding.impl.cyannotator.annotations.ArrowAnnotationImpl)1 CyNetwork (org.cytoscape.model.CyNetwork)1 CyNode (org.cytoscape.model.CyNode)1 CyTable (org.cytoscape.model.CyTable)1 ArrowAnnotation (org.cytoscape.view.presentation.annotations.ArrowAnnotation)1