public int inc = 30;\r
int colourThreshold = 7;\r
\r
- public ConservationColourScheme(SequenceGroup sg)\r
+ public ConservationColourScheme(Conservation cons, ColourSchemeI oldcs)\r
{\r
super();\r
- this.conserve = sg.getConservation();\r
- colourThreshold = 7;\r
- this.cs = sg.cs;\r
+ conserve = cons;\r
+ cs = oldcs;\r
}\r
\r
public void setColours(DrawableSequence seq, int j) {\r
}\r
\r
seq.setColor(c);\r
-\r
}\r
- public Color findColour(SequenceI seq, String s, int i, java.util.Vector whatever)\r
+ public Color findColour(String s, int i, java.util.Vector whatever)\r
{\r
Color c = null;\r
if (colourThreshold > 0 && conserve.getConsSequence() != null)\r
}\r
\r
public Color findColour(DrawableSequence seq, String s, int j) {\r
- return cs.findColour(null, s, -1, null);\r
+ return cs.findColour( s, -1, null);\r
}\r
public boolean fullConservation(int j) {\r
String tmp = conserve.getConsSequence().getSequence().substring(j,j+1);\r