{
if (cs != null)
{
- resBoxColour = cs.findColour(seq.getCharAt(i), i, seq.getIndex());
+ resBoxColour = cs.findColour(seq.getCharAt(i), i, seq);
}
else if (forOverview
&& !jalview.util.Comparison.isGap(seq.getCharAt(i)))
{
try
{
- col = oldColourScheme.findColour(aa.charAt(0), -1, -1);
+ col = oldColourScheme.findColour(aa.charAt(0), -1, null);
} catch (Exception ex)
{
}
{
if (cs != null)
{
- resBoxColour = cs.findColour(seq.getCharAt(i), i, seq.getIndex());
+ resBoxColour = cs.findColour(seq.getCharAt(i), i, seq);
}
else if (forOverview
&& !jalview.util.Comparison.isGap(seq.getCharAt(i)))
{
try
{
- col = oldColourScheme.findColour(aa.charAt(0), -1, -1);
+ col = oldColourScheme.findColour(aa.charAt(0), -1, null);
} catch (Exception ex)
{
}
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.GraphLine;
+import jalview.datamodel.SequenceI;
import java.awt.Color;
* @return DOCUMENT ME!
*/
@Override
- public Color findColour(char c, int j, int sequenceIndex)
+ public Color findColour(char c, int j, SequenceI seq)
{
Color currentColour = Color.white;
if (colourScheme != null)
{
- currentColour = colourScheme.findColour(c, j, sequenceIndex);
+ currentColour = colourScheme.findColour(c, j, seq);
}
else if (range != 0)
{
import jalview.analysis.AAFrequency;
import java.awt.Color;
-
+import jalview.datamodel.SequenceI;
public class Blosum62ColourScheme extends ResidueColourScheme
{
public Blosum62ColourScheme()
}
@Override
- public Color findColour(char res, int j, int sequenceIndex)
+ public Color findColour(char res, int j, SequenceI seq)
{
if ('a' <= res && res <= 'z')
{
}
@Override
- public Color findColour(char c, int j, int sequenceIndex)
+ public Color findColour(char c, int j, SequenceI seq)
{
Color currentColour;
import java.awt.Color;
+import jalview.datamodel.SequenceI;
public interface ColourSchemeI
{
public Color findColour(char c);
- public Color findColour(char c, int j, int sequenceIndex);
+ public Color findColour(char c, int j, SequenceI seq);
public void setConsensus(java.util.Hashtable[] h);
*/
package jalview.schemes;
+import jalview.datamodel.SequenceI;
+
import java.awt.Color;
/**
* @return DOCUMENT ME!
*/
@Override
- public Color findColour(char c, int j, int sequenceIndex)
+ public Color findColour(char c, int j, SequenceI seq)
{
Color currentColour;
if ((threshold == 0) || aboveThreshold(c, j))
import jalview.analysis.AAFrequency;
import jalview.datamodel.SequenceGroup;
+import jalview.datamodel.SequenceI;
import java.awt.Color;
@Override
- public Color findColour(char c, int j, int sequenceIndex)
+ public Color findColour(char c, int j, SequenceI seq)
{
if ('a' <= c && c <= 'z')
{
import jalview.analysis.AAFrequency;
import jalview.analysis.Conservation;
+import jalview.datamodel.SequenceI;
import java.awt.Color;
import java.util.Hashtable;
}
@Override
- public Color findColour(char c, int j, int sequenceIndex)
+ public Color findColour(char c, int j, SequenceI seq)
{
Color currentColour;
*/
package jalview.schemes;
+import jalview.datamodel.SequenceI;
+
import java.awt.Color;
/**
* @return DOCUMENT ME!
*/
@Override
- public Color findColour(char c, int j, int sequenceIndex)
+ public Color findColour(char c, int j, SequenceI seq)
{
if (threshold > 0)
{
import java.awt.Color;
import java.util.StringTokenizer;
+import jalview.datamodel.SequenceI;
public class UserColourScheme extends ResidueColourScheme
{
}
@Override
- public Color findColour(char c, int j, int sequenceIndex)
+ public Color findColour(char c, int j, SequenceI seq)
{
Color currentColour;
int index = ResidueProperties.aaIndex[c];