\r
int R = 0, G = 0, B = 0;\r
\r
+ public ColourSchemeI loadDefaultColours()\r
+ {\r
+ // NOT IMPLEMENTED YET IN APPLET VERSION\r
+ return null;\r
+ }\r
+\r
public UserDefinedColours(AlignmentPanel ap, SequenceGroup sg)\r
{\r
super();\r
newColours[i] = button.getBackground();\r
}\r
\r
- UserColourScheme ucs = new UserColourScheme();\r
+ UserColourScheme ucs = new UserColourScheme( newColours );\r
ucs.setThreshold(0);\r
- ucs.setColourScheme( newColours );\r
\r
if(seqGroup!=null)\r
seqGroup.cs = ucs;\r
newColours[i] = new Color(Integer.parseInt(in.readLine()));\r
}\r
\r
- ucs = new UserColourScheme();\r
+ ucs = new UserColourScheme(newColours);\r
ucs.setThreshold(0);\r
- ucs.setColourScheme(newColours);\r
\r
}\r
catch (Exception ex)\r
\r
protected void cancelButton_actionPerformed(ActionEvent e)\r
{\r
- UserColourScheme ucs = new UserColourScheme();\r
+\r
Color [] newColours = new Color[24];\r
for(int i=0; i<24; i++)\r
{\r
buttonPanel.getComponent(i).setBackground(newColours[i]);\r
}\r
\r
- ucs.setColourScheme( newColours );\r
+ UserColourScheme ucs = new UserColourScheme( newColours );\r
+\r
if (seqGroup != null)\r
seqGroup.cs = ucs;\r
else\r