T
- the type of sequence elements (tokens) the implementing decorator works withU
- the type of sequence elements (tokens) the underlying model works withpublic class DNAAlignmentModelDecorator<T,U> extends AbstractTokenReplacementAlignmentModelDecorator<T,U>
Constructor and Description |
---|
DNAAlignmentModelDecorator(TokenSet<T> tokenSet,
AlignmentModel<U> underlyingModel) |
Modifier and Type | Method and Description |
---|---|
protected U |
convertDecoratedToken(java.lang.String viewedSequenceID,
int viewedIndex,
T decoratedToken)
Inherited classes should perform the token translation from a viewed to an underlying token
by implementing this method.
|
protected T |
convertUnderlyingToken(java.lang.String underlyingSequenceID,
int underlyingIndex,
U underlyingToken)
Inherited classes should perform the token translation from an underlying to a viewed token
by implementing this method.
|
static DNAAlignmentModelDecorator<java.lang.Character,java.lang.Character> |
newCharacterInstance(AlignmentModel<java.lang.Character> underlyingModel) |
appendToken, appendTokens, convertDecoratedTokens, convertTokenChangeEvent, convertUnderlyingTokens, getChangeListeners, getMaxSequenceLength, getSequenceLength, getTokenAt, getWriteType, insertTokenAt, insertTokensAt, isTokensReadOnly, removeTokenAt, removeTokensAt, renameSequence, setTokenAt, setTokensAt
addSequence, addSequence, containsSequence, convertDecoratedSequenceID, convertDecoratedTokenIndex, convertSequenceChangeEvent, convertSequenceRenamedEvent, convertUnderlyingSequenceID, convertUnderlyingTokenIndex, getSequenceCount, getTokenSet, getUnderlyingModel, isSequencesReadOnly, removeSequence, sequenceIDIterator, sequenceIDsByName, sequenceNameByID, setTokenSet, setUnderlyingModel
fireAfterSequenceChange, fireAfterSequenceRenamed, fireAfterTokenChange, getID, getLabel, setID, setLabel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getID, getLabel, setID, setLabel
public DNAAlignmentModelDecorator(TokenSet<T> tokenSet, AlignmentModel<U> underlyingModel)
public static DNAAlignmentModelDecorator<java.lang.Character,java.lang.Character> newCharacterInstance(AlignmentModel<java.lang.Character> underlyingModel)
protected T convertUnderlyingToken(java.lang.String underlyingSequenceID, int underlyingIndex, U underlyingToken)
AbstractTokenReplacementAlignmentModelDecorator
convertUnderlyingToken
in class AbstractTokenReplacementAlignmentModelDecorator<T,U>
underlyingSequenceID
- the ID of the sequence in the underlying model containing the token to be convertedunderlyingIndex
- the column index of the token to be converted in the underlying modelunderlyingToken
- the token stored in (or shown by) the underlying providerprotected U convertDecoratedToken(java.lang.String viewedSequenceID, int viewedIndex, T decoratedToken)
AbstractTokenReplacementAlignmentModelDecorator
convertDecoratedToken
in class AbstractTokenReplacementAlignmentModelDecorator<T,U>
viewedSequenceID
- the ID of the sequence in this decorator containing the token to be convertedviewedIndex
- the column index of the token to be converted in this view (Note that this index may be behind
current end of the sequence, of this method is used to elongate a sequence.)decoratedToken
- the token shown in the view instance