public interface ColourSchemeI\r
{\r
public Color findColour(String aa);\r
- public Vector getColours(SequenceI s, Vector aa);\r
- public Color getColour (SequenceI s, int pos, Vector aa);\r
- public Vector getColours(SequenceGroup sg, Vector aa);\r
public Color findColour(SequenceI seq, String s,int j, Vector aa);\r
\r
public boolean canThreshold();\r
this.pidColours = ResidueProperties.pidColours;\r
this.thresholds = ResidueProperties.pidThresholds;\r
}\r
- public Color getColour(SequenceI seq, int j,Vector aa) {\r
+ /* public Color getColour(SequenceI seq, int j,Vector aa) {\r
Color c = Color.white;\r
\r
String s = seq.getSequence(j,j+1);\r
\r
return c;\r
}\r
-\r
+*/\r
public Color findColour(SequenceI seq,String s, int j,Vector aa) {\r
Color c = Color.white;\r
Hashtable hash = null;\r
}\r
\r
// aa should maybe be a class\r
- public Color getColour(SequenceI seq, int j,Vector aa) {\r
+ /* public Color getColour(SequenceI seq, int j,Vector aa) {\r
\r
Color c = Color.white;\r
String s = seq.getSequence(j,j+1);\r
\r
\r
return c;\r
- }\r
+ }*/\r
+\r
public int getThreshold() {\r
return threshold;\r
}\r
threshold = ct;\r
}\r
\r
- public Vector getColours(SequenceI s, Vector aa) {\r
- Vector colours = new Vector();\r
-\r
- for (int j = 0; j < s.getLength(); j++)\r
- colours.addElement(getColour(s,j,aa));\r
-\r
- return colours;\r
- }\r
-\r
- public Vector getColours(SequenceGroup sg, Vector aa) {\r
- Vector colours = new Vector();\r
-\r
- for (int j = 0; j < sg.getSize(); j++) {\r
- SequenceI s = sg.getSequenceAt(j);\r
-\r
- for (int i = 0; i < s.getLength();i++) {\r
- colours.addElement(getColour(s,i,aa));\r
- }\r
- }\r
- return colours;\r
- }\r
-\r
public boolean aboveThreshold(Vector aa,SequenceI seq, int j, int threshold) {\r
String s = seq.getSequence(j,j+1);\r
Hashtable hash = (Hashtable)aa.elementAt(j);\r
this.max = max;\r
}\r
\r
- public Color getColour(SequenceI seq, int j, Vector aa) {\r
+ /* public Color getColour(SequenceI seq, int j, Vector aa) {\r
Color c = Color.white;\r
String s = seq.getSequence(j,j+1);\r
\r
// c = Color.white;\r
\r
return c;\r
- }\r
+ }*/\r
\r
public Color findColour(SequenceI seq,String s,int j,Vector aa)\r
{\r