fr.setColour(type, ucs.findColour("A"));\r
}\r
\r
- sf = new SequenceFeature(type, desc, "", start, end);\r
- sf.setFeatureGroup(featureGroup);\r
+ sf = new SequenceFeature(type, desc, "", start, end, featureGroup);\r
\r
seq.addSequenceFeature(sf);\r
}\r
PIDColour_actionPerformed();\r
else if(evt.getSource()==BLOSUM62Colour)\r
BLOSUM62Colour_actionPerformed();\r
+ else if(evt.getSource()==annotationColour)\r
+ new AnnotationColourChooser(viewport, alignPanel);\r
else if(evt.getSource()==sortPairwiseMenuItem)\r
sortPairwiseMenuItem_actionPerformed();\r
else if(evt.getSource()==sortIDMenuItem)\r
protected Menu colourMenu = new Menu("Colour");\r
protected Menu calculateMenu = new Menu("Calculate");\r
protected MenuItem selectAllSequenceMenuItem = new MenuItem("Select all");\r
- protected MenuItem deselectAllSequenceMenuItem = new MenuItem();\r
- protected MenuItem invertSequenceMenuItem = new MenuItem();\r
+ protected MenuItem deselectAllSequenceMenuItem = new MenuItem("Deselect All");\r
+ protected MenuItem invertSequenceMenuItem = new MenuItem("Invert Selection");\r
protected MenuItem remove2LeftMenuItem = new MenuItem();\r
protected MenuItem remove2RightMenuItem = new MenuItem();\r
protected MenuItem removeGappedColumnMenuItem = new MenuItem();\r
\r
loadTree.addActionListener(this);\r
selectAllSequenceMenuItem.addActionListener(this);\r
- deselectAllSequenceMenuItem.setLabel("Deselect All");\r
deselectAllSequenceMenuItem.addActionListener(this);\r
- invertSequenceMenuItem.setLabel("Invert Selection");\r
invertSequenceMenuItem.addActionListener(this);\r
remove2LeftMenuItem.setLabel("Remove Left");\r
remove2LeftMenuItem.addActionListener(this);\r
sequenceFeatures.setLabel("Sequence Features");\r
sequenceFeatures.addItemListener(this);\r
sequenceFeatures.setState(false);\r
+ annotationColour.setLabel("by Annotation...");\r
+ annotationColour.addActionListener(this);\r
\r
alignFrameMenuBar.add(fileMenu);\r
alignFrameMenuBar.add(editMenu);\r
colourMenu.add(modifyConservation);\r
colourMenu.add(abovePIDThreshold);\r
colourMenu.add(modifyPID);\r
- calculateMenu.add(sort);\r
+ colourMenu.add(annotationColour);\r
+ calculateMenu.add(sort);\r
calculateMenu.add(calculate);\r
calculateMenu.addSeparator();\r
calculateMenu.add(pairwiseAlignmentMenuItem);\r
viewPopup, colourPopup, calculatePopup, helpPopup;\r
MenuItem featureSettings = new MenuItem();\r
CheckboxMenuItem sequenceFeatures = new CheckboxMenuItem();\r
+ MenuItem annotationColour = new MenuItem();\r
\r
public void mousePressed(MouseEvent evt)\r
{\r