"Alignment output - " + e.getActionCommand(),\r
600, 500);\r
cap.setText(new AppletFormatAdapter().formatSequences(e.getActionCommand(),\r
- viewport.getAlignment().\r
- getSequences()));\r
+ viewport.getAlignment().getSequences(),\r
+ viewport.showDBPrefix,\r
+ viewport.showJVSuffix));\r
}\r
\r
public void closeMenuItem_actionPerformed(ActionEvent e)\r
new FontChooser(alignPanel);\r
}\r
\r
- protected void fullSeqId_actionPerformed(ActionEvent e)\r
+ public void dbref_actionPerformed(ItemEvent e)\r
{\r
- viewport.setShowJVSuffix(fullSeqId.getState());\r
+ viewport.showDBPrefix = dbref.getState();\r
alignPanel.fontChanged();\r
alignPanel.repaint();\r
}\r
\r
+ public void seqLimits_itemStateChanged(ItemEvent e)\r
+ {\r
+ viewport.setShowJVSuffix(seqLimits.getState());\r
+ alignPanel.fontChanged();\r
+ alignPanel.repaint();\r
+ }\r
+\r
+\r
protected void colourTextMenuItem_actionPerformed(ActionEvent e)\r
{\r
viewport.setColourText(colourTextMenuItem.getState());\r
MenuItem pasteThis = new MenuItem();\r
protected CheckboxMenuItem applyToAllGroups = new CheckboxMenuItem();\r
protected MenuItem font = new MenuItem();\r
- protected CheckboxMenuItem fullSeqId = new CheckboxMenuItem();\r
+ protected CheckboxMenuItem dbref = new CheckboxMenuItem();\r
protected CheckboxMenuItem scaleAbove = new CheckboxMenuItem();\r
protected CheckboxMenuItem scaleLeft = new CheckboxMenuItem();\r
protected CheckboxMenuItem scaleRight = new CheckboxMenuItem();\r
Menu helpMenu = new Menu();\r
MenuItem documentation = new MenuItem();\r
MenuItem about = new MenuItem();\r
+ protected CheckboxMenuItem seqLimits = new CheckboxMenuItem();\r
\r
- public GAlignFrame() {\r
+ public GAlignFrame() {\r
try {\r
jbInit();\r
setMenuBar(alignFrameMenuBar);\r
font_actionPerformed(e);\r
}\r
});\r
- fullSeqId.setLabel("Show Full Sequence ID");\r
- fullSeqId.setState(true);\r
- fullSeqId.addItemListener(new java.awt.event.ItemListener() {\r
+ dbref.setLabel("ShowSequence DB Refs");\r
+ dbref.setActionCommand("");\r
+ dbref.setState(true);\r
+ dbref.addItemListener(new java.awt.event.ItemListener() {\r
public void itemStateChanged(ItemEvent e) {\r
- fullSeqId_actionPerformed(null);\r
- }\r
+ dbref_actionPerformed(e);\r
+ }\r
});\r
scaleAbove.setLabel("Scale Above");\r
scaleAbove.setState(true);\r
about_actionPerformed(e);\r
}\r
});\r
+ seqLimits.setState(true);\r
+ seqLimits.setLabel("Show Sequence Limits");\r
+ seqLimits.addItemListener(new ItemListener()\r
+ {\r
+ public void itemStateChanged(ItemEvent e)\r
+ {\r
+ seqLimits_itemStateChanged(e);\r
+ }\r
+ });\r
\r
- alignFrameMenuBar.add(fileMenu);\r
+ alignFrameMenuBar.add(fileMenu);\r
alignFrameMenuBar.add(editMenu);\r
alignFrameMenuBar.add(searchMenu);\r
alignFrameMenuBar.add(viewMenu);\r
searchMenu.add(findMenuItem);\r
viewMenu.add(font);\r
viewMenu.addSeparator();\r
- viewMenu.add(wrapMenuItem);\r
+ viewMenu.add(dbref);\r
+ viewMenu.add(seqLimits);\r
+ viewMenu.addSeparator();\r
+ viewMenu.add(wrapMenuItem);\r
viewMenu.add(scaleAbove);\r
viewMenu.add(scaleLeft);\r
viewMenu.add(scaleRight);\r
viewMenu.addSeparator();\r
- viewMenu.add(fullSeqId);\r
- viewMenu.add(viewBoxesMenuItem);\r
+ viewMenu.add(viewBoxesMenuItem);\r
viewMenu.add(viewTextMenuItem);\r
viewMenu.add(colourTextMenuItem);\r
viewMenu.add(renderGapsMenuItem);\r
protected void font_actionPerformed(ActionEvent e) {\r
}\r
\r
- protected void fullSeqId_actionPerformed(ActionEvent e) {\r
- }\r
-\r
protected void epsFile_actionPerformed(ActionEvent e) {\r
}\r
\r
\r
protected void about_actionPerformed(ActionEvent e) {\r
}\r
+\r
+ public void dbref_actionPerformed(ItemEvent e)\r
+ {\r
+\r
+ }\r
+\r
+ public void seqLimits_itemStateChanged(ItemEvent e)\r
+ {\r
+\r
+ }\r
}\r