public static interface SequenceTrack.Manager.Provider
SequenceDocuments or SequenceAlignmentDocuments to indicate they provide sequence tracks.
For detailed information on sequence tracks, see SequenceTrack.
Rather than checking if a sequence or alignment is a track manager provider, you can use the convenience methods SequenceTrack.getTrackManager(com.biomatters.geneious.publicapi.documents.sequence.SequenceDocument)
and SequenceTrack.getTrackManager(com.biomatters.geneious.publicapi.documents.sequence.SequenceAlignmentDocument).
Alignments that implement SequenceTrack.Manager.Provider indicate they have tracks on their consensus sequence. Individual sequences in the alignment may also implement SequenceTrack.Manager.Provider if they provide tracks.| Modifier and Type | Method and Description |
|---|---|
SequenceTrack.Manager |
getTrackManager(boolean mayReturnNullIfNoTracks)
Gets a
SequenceTrack.Manager associated with this sequence for providing sequence tracks. |
SequenceTrack.Manager getTrackManager(boolean mayReturnNullIfNoTracks)
SequenceTrack.Manager associated with this sequence for providing sequence tracks. For detailed information on sequence tracks, see SequenceTrack.
If this method is called on an alignment, the track manager is for the consensus sequence. Individual sequences in the alignment may also implement SequenceTrack.Manager.Provider if they provide tracks.mayReturnNullIfNoTracks - to save on memory usage when dealing with lots of small sequences, some implementations may not wish to construct a TrackManager unless necessary. If this parameter is true the implementation may return null rather than an empty track manager if is has no tracks