- All Superinterfaces:
public interface GroupAnnotation extends AnnotationThe GroupAnnotation is a container for a collection of annotations that should be grouped together.
A GroupAnnotation may contain members from either the foreground or background canvas. Changing the canvas of the GroupAnnotation itself will not automatically set its members to the same canvas, each annotation must have its setCanvas() method called individually.
The z-order of member annotations will automatically be set so that the annotations are adjacent within the same canvas. The AnnotationManager is free to change the z-order of annotations in order to maintain this property.
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>presentation-api</artifactId> </dependency>
Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
addMember(Annotation member)Add a new annotation to the group.
getMembers()Return the list of members for this group
removeMember(Annotation member)Remove an annotation from the group
Methods inherited from interface org.cytoscape.view.presentation.annotations.Annotation
addArrow, getArgMap, getArrows, getCanvasName, getName, getNetworkView, getSpecificZoom, getUUID, getZoom, isSelected, moveAnnotation, removeAnnotation, removeArrow, setCanvas, setName, setSelected, setSpecificZoom, setZoom, update
void addMember(Annotation member)Add a new annotation to the group.
member- the annotation to add to the group
IllegalArgumentException- if the given Annotation is already a member of another group
void removeMember(Annotation member)Remove an annotation from the group
member- the annotation to be removed