public abstract static class SequenceViewerExtension.Factory extends Object
GeneiousPlugin.getSequenceViewerExtensionFactories()
Constructor and Description |
---|
SequenceViewerExtension.Factory() |
Modifier and Type | Method and Description |
---|---|
abstract SequenceViewerExtension |
createSequenceViewerExtension(DocumentViewer sequenceViewer,
AnnotatedPluginDocument[] documents,
SequenceViewerExtension.PropertyRetrieverAndEditor propertyRetriever)
Creates an instance of a sequence viewer extension.
|
public abstract SequenceViewerExtension createSequenceViewerExtension(DocumentViewer sequenceViewer, AnnotatedPluginDocument[] documents, SequenceViewerExtension.PropertyRetrieverAndEditor propertyRetriever)
sequenceViewer
- the sequence viewer the extension will be embedded in. There should be no need to for an extension to refer to this directly but it might be useful.documents
- the documents the sequence viewer is referring to. Most of the time these should be ignored since the way the sequence viewer may interpret the data on
the documents can vary. In particularly with SequenceListDocuments
containing mixtures of amino acid and nucleotide sequences and on
CombinedAlignmentAndSequenceDocuments
. An implementation should
instead use propertyRetriever.getAlphabet()
,
propertyRetriever.getNumberOfSequences()
,
and propertyRetriever.isAlignmentOrContig()
to decide if it should appear on this particular SequenceViewer.propertyRetriever
- for retrieving data describing the current state of the sequence viewer.