org.biojava.utils
Interface Changeable
- All Known Subinterfaces:
- Alignment, Alphabet, AlphabetIndex, Annotatable, Annotation, ARAlignment, AtomicSymbol, BasisSymbol, ComponentFeature, Count, Distribution, DotState, EmissionState, Feature, FeatureHolder, FeatureTypes.Repository, FeatureTypes.Type, FiniteAlphabet, FramedFeature, GappedSequence, GappedSymbolList, HomologyFeature, MarkovModel, ModelInState, OrderNDistribution, RealizingFeatureHolder, RemoteFeature, RestrictionSite, SeqSimilaritySearchHit, SeqSimilaritySearchResult, SeqSimilaritySearchSubHit, Sequence, SequenceDB, SequenceDBLite, SimilarityPairFeature, State, StatePath, StrandedFeature, Symbol, SymbolList, SymbolTokenization, Taxon, UnequalLengthAlignment, UnigeneCluster, UnigeneDB
- All Known Implementing Classes:
- AbstractAlphabet, AbstractAnnotation, AbstractChangeable, AbstractDistribution, AbstractFeatureHolder, AbstractOrderNDistribution, AbstractSequenceDB, AbstractSymbol, AbstractSymbolList, AbstractTaxon, AbstractULAlignment, AbstractULAlignment.SubULAlignment, AnnotatedSequenceDB, BioFetchSequenceDB, BioSQLSequenceDB, CharacterTokenization, DASSequenceDB, DistributedSequenceDB, DoubleAlphabet, DoubleAlphabet.DoubleRange, DoubleAlphabet.DoubleSymbol, DoubleAlphabet.SubDoubleAlphabet, DummySequence, DummySequenceDB, FeatureHolder.EmptyFeatureHolder, FeatureTypes.RepositoryImpl, FlatSequenceDB, FlexibleAlignment, FundamentalAtomicSymbol, GapDistribution, HashSequenceDB, IndexedCount, IndexedSequenceDB, IntegerAlphabet, IntegerAlphabet.IntegerSymbol, LazyFeatureHolder, LazyFilterFeatureHolder, MergeAnnotation, OverlayAnnotation, PairDistribution, PairwiseSequencePanel, ProjectedFeature, ProjectedFeatureHolder, ProjectedStrandedFeature, org.biojava.bio.seq.ragbag.RagbagAbstractSequence, ReferenceServer, RelabeledAlignment, SequenceDBSearchHit, SequenceDBSearchResult, SequenceDBSearchSubHit, SequencePanel, SequencePoster, SimilarityPairFeature.EmptyPairwiseAlignment, SimpleAlignment, SimpleAssembly, SimpleAtomicSymbol, org.biojava.bio.symbol.SimpleBasisSymbol, SimpleDotState, SimpleEmissionState, SimpleFeature, SimpleFramedFeature, SimpleGappedSequence, SimpleGappedSymbolList, SimpleHomologyFeature, SimpleMarkovModel, SimpleModelInState, SimpleRemoteFeature, SimpleRestrictionSite, SimpleSeqSimilaritySearchHit, SimpleSeqSimilaritySearchResult, SimpleSeqSimilaritySearchSubHit, SimpleSequence, SimpleSimilarityPairFeature, SimpleStatePath, SimpleStrandedFeature, org.biojava.bio.symbol.SimpleSymbol, SingletonAlphabet, SubSequence, SymbolList.EmptySymbolList, TranslatedDistribution, TranslatedSequencePanel, Unchangeable, ViewSequence, WebSequenceDB, WMAsMM, WordTokenization
- public interface Changeable
This is a flag interface that defines the common add/remove listener methods
for classes and interfaces that wish to indicate that they are sources of
ChangeEvents.
- Author:
- Matthew Pocock
addChangeListener
public void addChangeListener(ChangeListener cl)
- Add a listener that will be informed of all changes.
- Parameters:
cl
- the ChangeListener to add
addChangeListener
public void addChangeListener(ChangeListener cl,
ChangeType ct)
- Add a listener that will be informed of changes of a given type.
- Parameters:
cl
- the ChangeListenerct
- the ChangeType it is to be informed of
removeChangeListener
public void removeChangeListener(ChangeListener cl)
- Remove a listener that was interested in all types of changes.
- Parameters:
cl
- a ChangeListener to remove
removeChangeListener
public void removeChangeListener(ChangeListener cl,
ChangeType ct)
- Remove a listener that was interested in a specific types of changes.
- Parameters:
cl
- a ChangeListener to removect
- the ChangeType that it was interested in
isUnchanging
public boolean isUnchanging(ChangeType ct)
A particular ChangeType can never be raised by this Changeable.
If this returns true, then it is guaranteed that change events of this type
(and all child types) can never under any circumstances be fired by this
Changeable instance. If it returns false, that does not mean that this type
of event will or even can be raised, but that it is worth registering
listeners incase.
- Parameters:
ct
- the ChangeType to check
- Returns:
- true if ChangeEvents of this type are guaranteed to never be fired