ColourSchemeI cs = globalColourScheme;
if (cs != null)
{
+ cs.alignmentChanged(alignment);
if (cs instanceof ClustalxColourScheme)
{
((ClustalxColourScheme) cs).resetClustalX(alignment.getSequences(),
{
return;
}
-
+ if (cs!=null)
+ {
+ cs.alignmentChanged(this);
+ }
try
{
Hashtable cnsns[] = AAFrequency.calculate(sequences, startRes,
ColourSchemeI cs = globalColourScheme;
if (cs != null)
{
+ cs.alignmentChanged(alignment);
if (cs instanceof ClustalxColourScheme)
{
((ClustalxColourScheme) cs).resetClustalX(alignment.getSequences(),
import java.awt.Color;
+import jalview.datamodel.AnnotatedCollectionI;
import jalview.datamodel.SequenceI;
+
public interface ColourSchemeI
{
public Color findColour(char c);
public void setThreshold(int ct, boolean ignoreGaps);
+ public void alignmentChanged(AnnotatedCollectionI alignment);
+
}
import jalview.analysis.AAFrequency;
import jalview.analysis.Conservation;
+import jalview.datamodel.AnnotatedCollectionI;
import jalview.datamodel.SequenceI;
import java.awt.Color;
return currentColour;
}
+ @Override public void alignmentChanged(AnnotatedCollectionI alignment) {};
/**
* Get the percentage threshold for this colour scheme