Cytoscape 3.1.1 API

org.cytoscape.view.presentation.annotations
Interface GroupAnnotation

All Superinterfaces:
Annotation

public interface GroupAnnotation
extends Annotation

The Group annotation is a container for a collextion of annotations that should be grouped together.


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.

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>

Field Summary
 
Fields inherited from interface org.cytoscape.view.presentation.annotations.Annotation
BACKGROUND, CANVAS, FOREGROUND, X, Y, ZOOM
 
Method Summary
 void addMember(Annotation member)
          Add a new annotation to the group
 List<Annotation> getMembers()
          Return the list of members for this group
 void removeMember(Annotation member)
          Remove an annotation from the group
 
Methods inherited from interface org.cytoscape.view.presentation.annotations.Annotation
addArrow, getArgMap, getArrows, getCanvasName, getNetworkView, getSpecificZoom, getZoom, isSelected, moveAnnotation, removeArrow, setCanvas, setSelected, setSpecificZoom, setZoom
 

Method Detail

addMember

void addMember(Annotation member)
Add a new annotation to the group

Parameters:
member - the annotation to add to the group

removeMember

void removeMember(Annotation member)
Remove an annotation from the group

Parameters:
member - the annotation to be removed

getMembers

List<Annotation> getMembers()
Return the list of members for this group

Returns:
the list of group members

Cytoscape 3.1.1 API

Copyright 2011 Cytoscape Consortium. All rights reserved.