1 package jalview.renderer;
3 import jalview.analysis.Conservation;
4 import jalview.datamodel.AnnotatedCollectionI;
5 import jalview.datamodel.ProfilesI;
6 import jalview.datamodel.SequenceCollectionI;
7 import jalview.datamodel.SequenceI;
8 import jalview.schemes.ColourSchemeI;
10 import java.awt.Color;
13 public interface ResidueShaderI
16 public abstract void setConsensus(ProfilesI cons);
18 public abstract void setInformation(ProfilesI info);
20 public abstract boolean conservationApplied();
22 public abstract void setConservationApplied(boolean conservationApplied);
24 public abstract void setConservation(Conservation cons);
26 public abstract void alignmentChanged(AnnotatedCollectionI alignment,
27 Map<SequenceI, SequenceCollectionI> hiddenReps);
30 * Sets the percentage consensus threshold value, and whether gaps are ignored
31 * in percentage identity calculation
33 * @param consensusThreshold
36 public abstract void setThreshold(int consensusThreshold,
39 public abstract void setConservationInc(int i);
41 public abstract int getConservationInc();
44 * Get the percentage threshold for this colour scheme
46 * @return Returns the percentage threshold
48 public abstract int getThreshold();
51 * Returns the possibly context dependent colour for the given symbol at the
52 * aligned position in the given sequence. For example, the colour may depend
53 * on the symbol's relationship to the consensus residue for the column.
60 public abstract Color findColour(char symbol, int position, SequenceI seq);
62 public abstract ColourSchemeI getColourScheme();
64 public abstract void setColourScheme(ColourSchemeI cs);