| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
|
| 20 |
|
|
| 21 |
|
package jalview.jbgui; |
| 22 |
|
|
| 23 |
|
import java.awt.BorderLayout; |
| 24 |
|
import java.awt.Color; |
| 25 |
|
import java.awt.Component; |
| 26 |
|
import java.awt.GridLayout; |
| 27 |
|
import java.awt.event.ActionEvent; |
| 28 |
|
import java.awt.event.ActionListener; |
| 29 |
|
import java.awt.event.FocusAdapter; |
| 30 |
|
import java.awt.event.FocusEvent; |
| 31 |
|
import java.awt.event.KeyEvent; |
| 32 |
|
import java.awt.event.MouseAdapter; |
| 33 |
|
import java.awt.event.MouseEvent; |
| 34 |
|
import java.util.HashMap; |
| 35 |
|
import java.util.List; |
| 36 |
|
import java.util.Map; |
| 37 |
|
|
| 38 |
|
import javax.swing.BorderFactory; |
| 39 |
|
import javax.swing.ButtonGroup; |
| 40 |
|
import javax.swing.JCheckBoxMenuItem; |
| 41 |
|
import javax.swing.JInternalFrame; |
| 42 |
|
import javax.swing.JLabel; |
| 43 |
|
import javax.swing.JMenu; |
| 44 |
|
import javax.swing.JMenuBar; |
| 45 |
|
import javax.swing.JMenuItem; |
| 46 |
|
import javax.swing.JPanel; |
| 47 |
|
import javax.swing.JRadioButtonMenuItem; |
| 48 |
|
import javax.swing.JTabbedPane; |
| 49 |
|
import javax.swing.KeyStroke; |
| 50 |
|
import javax.swing.event.ChangeEvent; |
| 51 |
|
import javax.swing.event.MenuEvent; |
| 52 |
|
import javax.swing.event.MenuListener; |
| 53 |
|
|
| 54 |
|
import jalview.analysis.AnnotationSorter.SequenceAnnotationOrder; |
| 55 |
|
import jalview.analysis.GeneticCodeI; |
| 56 |
|
import jalview.analysis.GeneticCodes; |
| 57 |
|
import jalview.api.SplitContainerI; |
| 58 |
|
import jalview.bin.Cache; |
| 59 |
|
import jalview.gui.JvSwingUtils; |
| 60 |
|
import jalview.gui.Preferences; |
| 61 |
|
import jalview.io.FileFormats; |
| 62 |
|
import jalview.schemes.ResidueColourScheme; |
| 63 |
|
import jalview.util.MessageManager; |
| 64 |
|
import jalview.util.Platform; |
| 65 |
|
|
| 66 |
|
@SuppressWarnings("serial") |
| |
|
| 59% |
Uncovered Elements: 448 (1,093) |
Complexity: 301 |
Complexity Density: 0.39 |
|
| 67 |
|
public class GAlignFrame extends JInternalFrame |
| 68 |
|
{ |
| 69 |
|
protected JMenuBar alignFrameMenuBar = new JMenuBar(); |
| 70 |
|
|
| 71 |
|
protected JMenuItem closeMenuItem = new JMenuItem(); |
| 72 |
|
|
| 73 |
|
public JMenu webService = new JMenu(); |
| 74 |
|
|
| 75 |
|
|
| 76 |
|
public JMenuItem webServiceNoServices; |
| 77 |
|
|
| 78 |
|
|
| 79 |
|
protected JCheckBoxMenuItem viewBoxesMenuItem = new JCheckBoxMenuItem(); |
| 80 |
|
|
| 81 |
|
protected JCheckBoxMenuItem viewTextMenuItem = new JCheckBoxMenuItem(); |
| 82 |
|
|
| 83 |
|
protected JMenu sortByAnnotScore = new JMenu(); |
| 84 |
|
|
| 85 |
|
public JLabel statusBar = new JLabel(); |
| 86 |
|
|
| 87 |
|
|
| 88 |
|
|
| 89 |
|
protected JMenu outputTextboxMenu = new JMenu(); |
| 90 |
|
|
| 91 |
|
protected JCheckBoxMenuItem annotationPanelMenuItem = new JCheckBoxMenuItem(); |
| 92 |
|
|
| 93 |
|
protected JCheckBoxMenuItem colourTextMenuItem = new JCheckBoxMenuItem(); |
| 94 |
|
|
| 95 |
|
protected JCheckBoxMenuItem showNonconservedMenuItem = new JCheckBoxMenuItem(); |
| 96 |
|
|
| 97 |
|
protected JMenuItem undoMenuItem = new JMenuItem(); |
| 98 |
|
|
| 99 |
|
protected JMenuItem redoMenuItem = new JMenuItem(); |
| 100 |
|
|
| 101 |
|
protected JCheckBoxMenuItem wrapMenuItem = new JCheckBoxMenuItem(); |
| 102 |
|
|
| 103 |
|
protected JCheckBoxMenuItem renderGapsMenuItem = new JCheckBoxMenuItem(); |
| 104 |
|
|
| 105 |
|
public JCheckBoxMenuItem showSeqFeatures = new JCheckBoxMenuItem(); |
| 106 |
|
|
| 107 |
|
JMenuItem copy = new JMenuItem(); |
| 108 |
|
|
| 109 |
|
JMenuItem copyHighlighted = new JMenuItem(); |
| 110 |
|
|
| 111 |
|
JMenuItem cut = new JMenuItem(); |
| 112 |
|
|
| 113 |
|
JMenu pasteMenu = new JMenu(); |
| 114 |
|
|
| 115 |
|
protected JCheckBoxMenuItem seqLimits = new JCheckBoxMenuItem(); |
| 116 |
|
|
| 117 |
|
protected JCheckBoxMenuItem scaleAbove = new JCheckBoxMenuItem(); |
| 118 |
|
|
| 119 |
|
protected JCheckBoxMenuItem scaleLeft = new JCheckBoxMenuItem(); |
| 120 |
|
|
| 121 |
|
protected JCheckBoxMenuItem scaleRight = new JCheckBoxMenuItem(); |
| 122 |
|
|
| 123 |
|
protected JCheckBoxMenuItem applyToAllGroups; |
| 124 |
|
|
| 125 |
|
protected JMenu colourMenu = new JMenu(); |
| 126 |
|
|
| 127 |
|
protected JMenuItem textColour; |
| 128 |
|
|
| 129 |
|
protected JCheckBoxMenuItem conservationMenuItem; |
| 130 |
|
|
| 131 |
|
protected JMenuItem modifyConservation; |
| 132 |
|
|
| 133 |
|
protected JCheckBoxMenuItem abovePIDThreshold; |
| 134 |
|
|
| 135 |
|
protected JMenuItem modifyPID; |
| 136 |
|
|
| 137 |
|
protected JCheckBoxMenuItem byConsensusSecondaryStructureMenuItem; |
| 138 |
|
|
| 139 |
|
protected JMenuItem modifyConsensusSecondaryStructureThreshold; |
| 140 |
|
|
| 141 |
|
protected JRadioButtonMenuItem annotationColour; |
| 142 |
|
|
| 143 |
|
protected JMenu sortByTreeMenu = new JMenu(); |
| 144 |
|
|
| 145 |
|
protected JCheckBoxMenuItem sortAnnBySequence; |
| 146 |
|
|
| 147 |
|
protected JCheckBoxMenuItem sortAnnByLabel; |
| 148 |
|
|
| 149 |
|
protected JMenu sortAnnotationByTreeMenu = new JMenu(); |
| 150 |
|
|
| 151 |
|
protected JMenu sort = new JMenu(); |
| 152 |
|
|
| 153 |
|
protected JMenuItem calculateTree = new JMenuItem(); |
| 154 |
|
|
| 155 |
|
protected JCheckBoxMenuItem padGapsMenuitem = new JCheckBoxMenuItem(); |
| 156 |
|
|
| 157 |
|
protected JCheckBoxMenuItem showNpFeatsMenuitem = new JCheckBoxMenuItem(); |
| 158 |
|
|
| 159 |
|
protected JCheckBoxMenuItem showDbRefsMenuitem = new JCheckBoxMenuItem(); |
| 160 |
|
|
| 161 |
|
protected JMenu showTranslation = new JMenu(); |
| 162 |
|
|
| 163 |
|
protected JMenuItem showReverse = new JMenuItem(); |
| 164 |
|
|
| 165 |
|
protected JMenuItem showReverseComplement = new JMenuItem(); |
| 166 |
|
|
| 167 |
|
protected JMenu showProducts = new JMenu(); |
| 168 |
|
|
| 169 |
|
protected JMenuItem runGroovy = new JMenuItem(); |
| 170 |
|
|
| 171 |
|
protected JMenuItem loadVcf; |
| 172 |
|
|
| 173 |
|
protected JCheckBoxMenuItem autoCalculate = new JCheckBoxMenuItem(); |
| 174 |
|
|
| 175 |
|
protected JCheckBoxMenuItem sortByTree = new JCheckBoxMenuItem(); |
| 176 |
|
|
| 177 |
|
protected JCheckBoxMenuItem listenToViewSelections = new JCheckBoxMenuItem(); |
| 178 |
|
|
| 179 |
|
protected JPanel statusPanel = new JPanel(); |
| 180 |
|
|
| 181 |
|
protected JMenuItem showAllSeqAnnotations = new JMenuItem(); |
| 182 |
|
|
| 183 |
|
protected JMenuItem hideAllSeqAnnotations = new JMenuItem(); |
| 184 |
|
|
| 185 |
|
protected JMenuItem showAllAlAnnotations = new JMenuItem(); |
| 186 |
|
|
| 187 |
|
protected JMenuItem hideAllAlAnnotations = new JMenuItem(); |
| 188 |
|
|
| 189 |
|
protected JCheckBoxMenuItem showComplementMenuItem = new JCheckBoxMenuItem(); |
| 190 |
|
|
| 191 |
|
protected JCheckBoxMenuItem hiddenMarkers = new JCheckBoxMenuItem(); |
| 192 |
|
|
| 193 |
|
protected JTabbedPane tabbedPane = new JTabbedPane(); |
| 194 |
|
|
| 195 |
|
protected JMenuItem reload = new JMenuItem(); |
| 196 |
|
|
| 197 |
|
protected JMenu formatMenu = new JMenu(); |
| 198 |
|
|
| 199 |
|
protected JCheckBoxMenuItem idRightAlign = new JCheckBoxMenuItem(); |
| 200 |
|
|
| 201 |
|
protected JCheckBoxMenuItem centreColumnLabelsMenuItem = new JCheckBoxMenuItem(); |
| 202 |
|
|
| 203 |
|
protected JCheckBoxMenuItem followHighlightMenuItem = new JCheckBoxMenuItem(); |
| 204 |
|
|
| 205 |
|
protected JMenuItem gatherViews = new JMenuItem(); |
| 206 |
|
|
| 207 |
|
protected JMenuItem expandViews = new JMenuItem(); |
| 208 |
|
|
| 209 |
|
protected JCheckBoxMenuItem showStrucProvider = new JCheckBoxMenuItem(); |
| 210 |
|
|
| 211 |
|
protected JCheckBoxMenuItem showSSConsensus = new JCheckBoxMenuItem(); |
| 212 |
|
|
| 213 |
|
protected JCheckBoxMenuItem showGroupSSConsensus = new JCheckBoxMenuItem(); |
| 214 |
|
|
| 215 |
|
protected JCheckBoxMenuItem showGroupConsensus = new JCheckBoxMenuItem(); |
| 216 |
|
|
| 217 |
|
protected JCheckBoxMenuItem showGroupConservation = new JCheckBoxMenuItem(); |
| 218 |
|
|
| 219 |
|
protected JCheckBoxMenuItem showConsensusHistogram = new JCheckBoxMenuItem(); |
| 220 |
|
|
| 221 |
|
protected JCheckBoxMenuItem showSequenceLogo = new JCheckBoxMenuItem(); |
| 222 |
|
|
| 223 |
|
protected JCheckBoxMenuItem normaliseSequenceLogo = new JCheckBoxMenuItem(); |
| 224 |
|
|
| 225 |
|
protected JCheckBoxMenuItem applyAutoAnnotationSettings = new JCheckBoxMenuItem(); |
| 226 |
|
|
| 227 |
|
protected JMenuItem openFeatureSettings; |
| 228 |
|
|
| 229 |
|
private SequenceAnnotationOrder annotationSortOrder; |
| 230 |
|
|
| 231 |
|
private boolean showAutoCalculatedAbove = false; |
| 232 |
|
|
| 233 |
|
private Map<KeyStroke, JMenuItem> accelerators = new HashMap<>(); |
| 234 |
|
|
| 235 |
|
private SplitContainerI splitFrame; |
| 236 |
|
|
| |
|
| 90.5% |
Uncovered Elements: 2 (21) |
Complexity: 3 |
Complexity Density: 0.16 |
|
| 237 |
475 |
public GAlignFrame()... |
| 238 |
|
{ |
| 239 |
475 |
try |
| 240 |
|
{ |
| 241 |
475 |
setFrameIcon(null); |
| 242 |
|
|
| 243 |
|
|
| 244 |
475 |
setName("jalview-alignment"); |
| 245 |
|
|
| 246 |
475 |
jbInit(); |
| 247 |
475 |
setJMenuBar(alignFrameMenuBar); |
| 248 |
|
|
| 249 |
|
|
| 250 |
475 |
for (String ff : FileFormats.getInstance().getWritableFormats(true)) |
| 251 |
|
{ |
| 252 |
5225 |
JMenuItem item = new JMenuItem(ff); |
| 253 |
|
|
| 254 |
5225 |
item.addActionListener(new ActionListener() |
| 255 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 256 |
0 |
@Override... |
| 257 |
|
public void actionPerformed(ActionEvent e) |
| 258 |
|
{ |
| 259 |
0 |
outputText_actionPerformed(e.getActionCommand()); |
| 260 |
|
} |
| 261 |
|
}); |
| 262 |
|
|
| 263 |
5225 |
outputTextboxMenu.add(item); |
| 264 |
|
} |
| 265 |
|
} catch (Exception e) |
| 266 |
|
{ |
| 267 |
0 |
jalview.bin.Console.errPrintln(e.toString()); |
| 268 |
|
} |
| 269 |
|
|
| 270 |
475 |
if (Platform.allowMnemonics()) |
| 271 |
|
{ |
| 272 |
475 |
closeMenuItem.setMnemonic('C'); |
| 273 |
475 |
outputTextboxMenu.setMnemonic('T'); |
| 274 |
475 |
undoMenuItem.setMnemonic('Z'); |
| 275 |
475 |
redoMenuItem.setMnemonic('0'); |
| 276 |
475 |
copy.setMnemonic('C'); |
| 277 |
475 |
cut.setMnemonic('U'); |
| 278 |
475 |
pasteMenu.setMnemonic('P'); |
| 279 |
475 |
reload.setMnemonic('R'); |
| 280 |
|
} |
| 281 |
|
} |
| 282 |
|
|
| |
|
| 99.1% |
Uncovered Elements: 5 (581) |
Complexity: 7 |
Complexity Density: 0.01 |
|
| 283 |
475 |
private void jbInit() throws Exception... |
| 284 |
|
{ |
| 285 |
475 |
setFrameIcon(null); |
| 286 |
475 |
initColourMenu(); |
| 287 |
|
|
| 288 |
475 |
JMenuItem saveAs = new JMenuItem( |
| 289 |
|
MessageManager.getString("action.save_as")); |
| 290 |
475 |
ActionListener al = new ActionListener() |
| 291 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 292 |
0 |
@Override... |
| 293 |
|
public void actionPerformed(ActionEvent e) |
| 294 |
|
{ |
| 295 |
0 |
saveAs_actionPerformed(); |
| 296 |
|
} |
| 297 |
|
}; |
| 298 |
|
|
| 299 |
|
|
| 300 |
475 |
KeyStroke keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_S, |
| 301 |
|
jalview.util.ShortcutKeyMaskExWrapper.getMenuShortcutKeyMaskEx() |
| 302 |
|
| jalview.util.ShortcutKeyMaskExWrapper.SHIFT_DOWN_MASK, |
| 303 |
|
false); |
| 304 |
475 |
addMenuActionAndAccelerator(keyStroke, saveAs, al); |
| 305 |
|
|
| 306 |
475 |
closeMenuItem.setText(MessageManager.getString("action.close")); |
| 307 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_W, |
| 308 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 309 |
|
.getMenuShortcutKeyMaskEx(), |
| 310 |
|
false); |
| 311 |
475 |
al = new ActionListener() |
| 312 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 313 |
0 |
@Override... |
| 314 |
|
public void actionPerformed(ActionEvent e) |
| 315 |
|
{ |
| 316 |
0 |
closeMenuItem_actionPerformed(false); |
| 317 |
|
} |
| 318 |
|
}; |
| 319 |
475 |
addMenuActionAndAccelerator(keyStroke, closeMenuItem, al); |
| 320 |
|
|
| 321 |
475 |
JMenu editMenu = new JMenu(MessageManager.getString("action.edit")); |
| 322 |
475 |
JMenu viewMenu = new JMenu(MessageManager.getString("action.view")); |
| 323 |
475 |
JMenu annotationsMenu = new JMenu( |
| 324 |
|
MessageManager.getString("action.annotations")); |
| 325 |
475 |
JMenu showMenu = new JMenu(MessageManager.getString("action.show")); |
| 326 |
475 |
colourMenu.setText(MessageManager.getString("action.colour")); |
| 327 |
475 |
JMenu calculateMenu = new JMenu( |
| 328 |
|
MessageManager.getString("action.calculate")); |
| 329 |
475 |
webService.setText(MessageManager.getString("action.web_service")); |
| 330 |
475 |
JMenuItem selectAllSequenceMenuItem = new JMenuItem( |
| 331 |
|
MessageManager.getString("action.select_all")); |
| 332 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_A, |
| 333 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 334 |
|
.getMenuShortcutKeyMaskEx(), |
| 335 |
|
false); |
| 336 |
475 |
al = new ActionListener() |
| 337 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 338 |
0 |
@Override... |
| 339 |
|
public void actionPerformed(ActionEvent e) |
| 340 |
|
{ |
| 341 |
0 |
selectAllSequenceMenuItem_actionPerformed(e); |
| 342 |
|
} |
| 343 |
|
}; |
| 344 |
475 |
addMenuActionAndAccelerator(keyStroke, selectAllSequenceMenuItem, al); |
| 345 |
|
|
| 346 |
475 |
JMenuItem deselectAllSequenceMenuItem = new JMenuItem( |
| 347 |
|
MessageManager.getString("action.deselect_all")); |
| 348 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0, false); |
| 349 |
475 |
al = new ActionListener() |
| 350 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 351 |
0 |
@Override... |
| 352 |
|
public void actionPerformed(ActionEvent e) |
| 353 |
|
{ |
| 354 |
0 |
deselectAllSequenceMenuItem_actionPerformed(e); |
| 355 |
|
} |
| 356 |
|
}; |
| 357 |
475 |
addMenuActionAndAccelerator(keyStroke, deselectAllSequenceMenuItem, al); |
| 358 |
|
|
| 359 |
475 |
JMenuItem invertSequenceMenuItem = new JMenuItem( |
| 360 |
|
MessageManager.getString("action.invert_sequence_selection")); |
| 361 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_I, |
| 362 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 363 |
|
.getMenuShortcutKeyMaskEx(), |
| 364 |
|
false); |
| 365 |
475 |
al = new ActionListener() |
| 366 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 367 |
0 |
@Override... |
| 368 |
|
public void actionPerformed(ActionEvent e) |
| 369 |
|
{ |
| 370 |
0 |
invertSequenceMenuItem_actionPerformed(e); |
| 371 |
|
} |
| 372 |
|
}; |
| 373 |
475 |
addMenuActionAndAccelerator(keyStroke, invertSequenceMenuItem, al); |
| 374 |
|
|
| 375 |
475 |
JMenuItem grpsFromSelection = new JMenuItem( |
| 376 |
|
MessageManager.getString("action.make_groups_selection")); |
| 377 |
475 |
grpsFromSelection.addActionListener(new ActionListener() |
| 378 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 379 |
0 |
@Override... |
| 380 |
|
public void actionPerformed(ActionEvent e) |
| 381 |
|
{ |
| 382 |
0 |
makeGrpsFromSelection_actionPerformed(e); |
| 383 |
|
} |
| 384 |
|
}); |
| 385 |
475 |
JMenuItem expandAlignment = new JMenuItem( |
| 386 |
|
MessageManager.getString("action.view_flanking_regions")); |
| 387 |
475 |
expandAlignment.setToolTipText( |
| 388 |
|
MessageManager.getString("label.view_flanking_regions")); |
| 389 |
475 |
expandAlignment.addActionListener(new ActionListener() |
| 390 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 391 |
0 |
@Override... |
| 392 |
|
public void actionPerformed(ActionEvent e) |
| 393 |
|
{ |
| 394 |
0 |
expand_newalign(e); |
| 395 |
|
} |
| 396 |
|
}); |
| 397 |
475 |
JMenuItem remove2LeftMenuItem = new JMenuItem( |
| 398 |
|
MessageManager.getString("action.remove_left")); |
| 399 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_L, |
| 400 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 401 |
|
.getMenuShortcutKeyMaskEx(), |
| 402 |
|
false); |
| 403 |
475 |
al = new ActionListener() |
| 404 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 405 |
0 |
@Override... |
| 406 |
|
public void actionPerformed(ActionEvent e) |
| 407 |
|
{ |
| 408 |
0 |
remove2LeftMenuItem_actionPerformed(e); |
| 409 |
|
} |
| 410 |
|
}; |
| 411 |
475 |
addMenuActionAndAccelerator(keyStroke, remove2LeftMenuItem, al); |
| 412 |
|
|
| 413 |
475 |
JMenuItem remove2RightMenuItem = new JMenuItem( |
| 414 |
|
MessageManager.getString("action.remove_right")); |
| 415 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_R, |
| 416 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 417 |
|
.getMenuShortcutKeyMaskEx(), |
| 418 |
|
false); |
| 419 |
475 |
al = new ActionListener() |
| 420 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 421 |
0 |
@Override... |
| 422 |
|
public void actionPerformed(ActionEvent e) |
| 423 |
|
{ |
| 424 |
0 |
remove2RightMenuItem_actionPerformed(e); |
| 425 |
|
} |
| 426 |
|
}; |
| 427 |
475 |
addMenuActionAndAccelerator(keyStroke, remove2RightMenuItem, al); |
| 428 |
|
|
| 429 |
475 |
JMenuItem removeGappedColumnMenuItem = new JMenuItem( |
| 430 |
|
MessageManager.getString("action.remove_empty_columns")); |
| 431 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_E, |
| 432 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 433 |
|
.getMenuShortcutKeyMaskEx(), |
| 434 |
|
false); |
| 435 |
475 |
al = new ActionListener() |
| 436 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 437 |
0 |
@Override... |
| 438 |
|
public void actionPerformed(ActionEvent e) |
| 439 |
|
{ |
| 440 |
0 |
removeGappedColumnMenuItem_actionPerformed(e); |
| 441 |
|
} |
| 442 |
|
}; |
| 443 |
475 |
addMenuActionAndAccelerator(keyStroke, removeGappedColumnMenuItem, al); |
| 444 |
|
|
| 445 |
475 |
JMenuItem removeAllGapsMenuItem = new JMenuItem( |
| 446 |
|
MessageManager.getString("action.remove_all_gaps")); |
| 447 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_E, |
| 448 |
|
jalview.util.ShortcutKeyMaskExWrapper.getMenuShortcutKeyMaskEx() |
| 449 |
|
| jalview.util.ShortcutKeyMaskExWrapper.SHIFT_DOWN_MASK, |
| 450 |
|
false); |
| 451 |
475 |
al = new ActionListener() |
| 452 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 453 |
0 |
@Override... |
| 454 |
|
public void actionPerformed(ActionEvent e) |
| 455 |
|
{ |
| 456 |
0 |
removeAllGapsMenuItem_actionPerformed(e); |
| 457 |
|
} |
| 458 |
|
}; |
| 459 |
475 |
addMenuActionAndAccelerator(keyStroke, removeAllGapsMenuItem, al); |
| 460 |
|
|
| 461 |
475 |
JMenuItem justifyLeftMenuItem = new JMenuItem( |
| 462 |
|
MessageManager.getString("action.left_justify")); |
| 463 |
475 |
justifyLeftMenuItem.setToolTipText( |
| 464 |
|
MessageManager.getString("tooltip.left_justify")); |
| 465 |
475 |
justifyLeftMenuItem.addActionListener(new ActionListener() |
| 466 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 467 |
0 |
@Override... |
| 468 |
|
public void actionPerformed(ActionEvent e) |
| 469 |
|
{ |
| 470 |
0 |
justifyLeftMenuItem_actionPerformed(e); |
| 471 |
|
} |
| 472 |
|
}); |
| 473 |
475 |
JMenuItem justifyRightMenuItem = new JMenuItem( |
| 474 |
|
MessageManager.getString("action.right_justify")); |
| 475 |
475 |
justifyRightMenuItem.setToolTipText( |
| 476 |
|
MessageManager.getString("action.left_justify")); |
| 477 |
|
|
| 478 |
475 |
justifyRightMenuItem.addActionListener(new ActionListener() |
| 479 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 480 |
0 |
@Override... |
| 481 |
|
public void actionPerformed(ActionEvent e) |
| 482 |
|
{ |
| 483 |
0 |
justifyRightMenuItem_actionPerformed(e); |
| 484 |
|
} |
| 485 |
|
}); |
| 486 |
475 |
viewBoxesMenuItem.setText(MessageManager.getString("action.boxes")); |
| 487 |
475 |
viewBoxesMenuItem.setState(true); |
| 488 |
475 |
viewBoxesMenuItem.addActionListener(new ActionListener() |
| 489 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 490 |
0 |
@Override... |
| 491 |
|
public void actionPerformed(ActionEvent e) |
| 492 |
|
{ |
| 493 |
0 |
viewBoxesMenuItem_actionPerformed(e); |
| 494 |
|
} |
| 495 |
|
}); |
| 496 |
475 |
viewTextMenuItem.setText(MessageManager.getString("action.text")); |
| 497 |
475 |
viewTextMenuItem.setState(true); |
| 498 |
475 |
viewTextMenuItem.addActionListener(new ActionListener() |
| 499 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 500 |
0 |
@Override... |
| 501 |
|
public void actionPerformed(ActionEvent e) |
| 502 |
|
{ |
| 503 |
0 |
viewTextMenuItem_actionPerformed(e); |
| 504 |
|
} |
| 505 |
|
}); |
| 506 |
475 |
showNonconservedMenuItem |
| 507 |
|
.setText(MessageManager.getString("label.show_non_conserved")); |
| 508 |
475 |
showNonconservedMenuItem.setState(false); |
| 509 |
475 |
showNonconservedMenuItem.addActionListener(new ActionListener() |
| 510 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 511 |
0 |
@Override... |
| 512 |
|
public void actionPerformed(ActionEvent e) |
| 513 |
|
{ |
| 514 |
0 |
showUnconservedMenuItem_actionPerformed(e); |
| 515 |
|
} |
| 516 |
|
}); |
| 517 |
475 |
JMenuItem sortPairwiseMenuItem = new JMenuItem( |
| 518 |
|
MessageManager.getString("action.by_pairwise_id")); |
| 519 |
475 |
sortPairwiseMenuItem.addActionListener(new ActionListener() |
| 520 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 521 |
0 |
@Override... |
| 522 |
|
public void actionPerformed(ActionEvent e) |
| 523 |
|
{ |
| 524 |
0 |
sortPairwiseMenuItem_actionPerformed(e); |
| 525 |
|
} |
| 526 |
|
}); |
| 527 |
475 |
JMenuItem sortIDMenuItem = new JMenuItem( |
| 528 |
|
MessageManager.getString("action.by_id")); |
| 529 |
475 |
sortIDMenuItem.addActionListener(new ActionListener() |
| 530 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 531 |
0 |
@Override... |
| 532 |
|
public void actionPerformed(ActionEvent e) |
| 533 |
|
{ |
| 534 |
0 |
sortIDMenuItem_actionPerformed(e); |
| 535 |
|
} |
| 536 |
|
}); |
| 537 |
475 |
JMenuItem sortDescriptionMenuItem = new JMenuItem( |
| 538 |
|
MessageManager.getString("action.by_description")); |
| 539 |
475 |
sortDescriptionMenuItem.addActionListener(new ActionListener() |
| 540 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 541 |
0 |
@Override... |
| 542 |
|
public void actionPerformed(ActionEvent e) |
| 543 |
|
{ |
| 544 |
0 |
sortDescriptionMenuItem_actionPerformed(e); |
| 545 |
|
} |
| 546 |
|
}); |
| 547 |
475 |
JMenuItem sortLengthMenuItem = new JMenuItem( |
| 548 |
|
MessageManager.getString("action.by_length")); |
| 549 |
475 |
sortLengthMenuItem.addActionListener(new ActionListener() |
| 550 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 551 |
0 |
@Override... |
| 552 |
|
public void actionPerformed(ActionEvent e) |
| 553 |
|
{ |
| 554 |
0 |
sortLengthMenuItem_actionPerformed(e); |
| 555 |
|
} |
| 556 |
|
}); |
| 557 |
475 |
JMenuItem sortGroupMenuItem = new JMenuItem( |
| 558 |
|
MessageManager.getString("action.by_group")); |
| 559 |
475 |
sortGroupMenuItem.addActionListener(new ActionListener() |
| 560 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 561 |
0 |
@Override... |
| 562 |
|
public void actionPerformed(ActionEvent e) |
| 563 |
|
{ |
| 564 |
0 |
sortGroupMenuItem_actionPerformed(e); |
| 565 |
|
} |
| 566 |
|
}); |
| 567 |
|
|
| 568 |
475 |
JMenuItem removeRedundancyMenuItem = new JMenuItem( |
| 569 |
|
MessageManager.getString("action.remove_redundancy")); |
| 570 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_D, |
| 571 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 572 |
|
.getMenuShortcutKeyMaskEx(), |
| 573 |
|
false); |
| 574 |
475 |
al = new ActionListener() |
| 575 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 576 |
0 |
@Override... |
| 577 |
|
public void actionPerformed(ActionEvent e) |
| 578 |
|
{ |
| 579 |
0 |
removeRedundancyMenuItem_actionPerformed(e); |
| 580 |
|
} |
| 581 |
|
}; |
| 582 |
475 |
addMenuActionAndAccelerator(keyStroke, removeRedundancyMenuItem, al); |
| 583 |
|
|
| 584 |
475 |
JMenuItem pairwiseAlignmentMenuItem = new JMenuItem( |
| 585 |
|
MessageManager.getString("action.pairwise_alignment")); |
| 586 |
475 |
pairwiseAlignmentMenuItem.addActionListener(new ActionListener() |
| 587 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 588 |
0 |
@Override... |
| 589 |
|
public void actionPerformed(ActionEvent e) |
| 590 |
|
{ |
| 591 |
0 |
pairwiseAlignmentMenuItem_actionPerformed(e); |
| 592 |
|
} |
| 593 |
|
}); |
| 594 |
|
|
| 595 |
475 |
this.getContentPane().setLayout(new BorderLayout()); |
| 596 |
475 |
alignFrameMenuBar.setFont(new java.awt.Font("Verdana", 0, 11)); |
| 597 |
475 |
statusBar.setBackground(Color.white); |
| 598 |
475 |
statusBar.setFont(new java.awt.Font("Verdana", 0, 11)); |
| 599 |
475 |
statusBar.setBorder(BorderFactory.createLineBorder(Color.black)); |
| 600 |
475 |
statusBar.setText(MessageManager.getString("label.status_bar")); |
| 601 |
475 |
outputTextboxMenu |
| 602 |
|
.setText(MessageManager.getString("label.out_to_textbox")); |
| 603 |
|
|
| 604 |
475 |
annotationPanelMenuItem.setActionCommand(""); |
| 605 |
475 |
annotationPanelMenuItem |
| 606 |
|
.setText(MessageManager.getString("label.show_annotations")); |
| 607 |
475 |
annotationPanelMenuItem |
| 608 |
|
.setState(Cache.getDefault("SHOW_ANNOTATIONS", true)); |
| 609 |
475 |
annotationPanelMenuItem.addActionListener(new ActionListener() |
| 610 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 611 |
0 |
@Override... |
| 612 |
|
public void actionPerformed(ActionEvent e) |
| 613 |
|
{ |
| 614 |
0 |
annotationPanelMenuItem_actionPerformed(e); |
| 615 |
|
} |
| 616 |
|
}); |
| 617 |
475 |
showAllAlAnnotations.setText( |
| 618 |
|
MessageManager.getString("label.show_all_al_annotations")); |
| 619 |
475 |
final boolean isAnnotationPanelShown = annotationPanelMenuItem |
| 620 |
|
.getState(); |
| 621 |
475 |
showAllAlAnnotations.setEnabled(isAnnotationPanelShown); |
| 622 |
475 |
showAllAlAnnotations.addActionListener(new ActionListener() |
| 623 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 624 |
0 |
@Override... |
| 625 |
|
public void actionPerformed(ActionEvent e) |
| 626 |
|
{ |
| 627 |
0 |
showAllAnnotations_actionPerformed(false, true); |
| 628 |
|
} |
| 629 |
|
}); |
| 630 |
475 |
hideAllAlAnnotations.setText( |
| 631 |
|
MessageManager.getString("label.hide_all_al_annotations")); |
| 632 |
475 |
hideAllAlAnnotations.setEnabled(isAnnotationPanelShown); |
| 633 |
475 |
hideAllAlAnnotations.addActionListener(new ActionListener() |
| 634 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 635 |
0 |
@Override... |
| 636 |
|
public void actionPerformed(ActionEvent e) |
| 637 |
|
{ |
| 638 |
0 |
hideAllAnnotations_actionPerformed(false, true); |
| 639 |
|
} |
| 640 |
|
}); |
| 641 |
475 |
showAllSeqAnnotations.setText( |
| 642 |
|
MessageManager.getString("label.show_all_seq_annotations")); |
| 643 |
475 |
showAllSeqAnnotations.setEnabled(isAnnotationPanelShown); |
| 644 |
475 |
showAllSeqAnnotations.addActionListener(new ActionListener() |
| 645 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 646 |
0 |
@Override... |
| 647 |
|
public void actionPerformed(ActionEvent e) |
| 648 |
|
{ |
| 649 |
0 |
showAllAnnotations_actionPerformed(true, false); |
| 650 |
|
} |
| 651 |
|
}); |
| 652 |
475 |
hideAllSeqAnnotations.setText( |
| 653 |
|
MessageManager.getString("label.hide_all_seq_annotations")); |
| 654 |
475 |
hideAllSeqAnnotations.setEnabled(isAnnotationPanelShown); |
| 655 |
475 |
hideAllSeqAnnotations.addActionListener(new ActionListener() |
| 656 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 657 |
0 |
@Override... |
| 658 |
|
public void actionPerformed(ActionEvent e) |
| 659 |
|
{ |
| 660 |
0 |
hideAllAnnotations_actionPerformed(true, false); |
| 661 |
|
} |
| 662 |
|
}); |
| 663 |
475 |
SequenceAnnotationOrder sortAnnotationsBy = SequenceAnnotationOrder |
| 664 |
|
.valueOf(Cache.getDefault(Preferences.SORT_ANNOTATIONS, |
| 665 |
|
SequenceAnnotationOrder.NONE.name())); |
| 666 |
475 |
sortAnnBySequence = new JCheckBoxMenuItem( |
| 667 |
|
MessageManager.getString("label.sort_annotations_by_sequence")); |
| 668 |
475 |
sortAnnByLabel = new JCheckBoxMenuItem( |
| 669 |
|
MessageManager.getString("label.sort_annotations_by_label")); |
| 670 |
475 |
sortAnnotationByTreeMenu.setText( |
| 671 |
|
MessageManager.getString("label.sort_annotations_by_tree")); |
| 672 |
|
|
| 673 |
475 |
sortAnnBySequence.setSelected( |
| 674 |
|
sortAnnotationsBy == SequenceAnnotationOrder.SEQUENCE_AND_LABEL); |
| 675 |
475 |
sortAnnBySequence.addActionListener(new ActionListener() |
| 676 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
| 677 |
0 |
@Override... |
| 678 |
|
public void actionPerformed(ActionEvent e) |
| 679 |
|
{ |
| 680 |
0 |
boolean newState = sortAnnBySequence.getState(); |
| 681 |
0 |
sortAnnByLabel.setSelected(false); |
| 682 |
0 |
setAnnotationSortOrder( |
| 683 |
0 |
newState ? SequenceAnnotationOrder.SEQUENCE_AND_LABEL |
| 684 |
|
: SequenceAnnotationOrder.NONE); |
| 685 |
0 |
sortAnnotations_actionPerformed(); |
| 686 |
|
} |
| 687 |
|
}); |
| 688 |
475 |
sortAnnByLabel.setSelected( |
| 689 |
|
sortAnnotationsBy == SequenceAnnotationOrder.LABEL_AND_SEQUENCE); |
| 690 |
475 |
sortAnnByLabel.addActionListener(new ActionListener() |
| 691 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 6 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
| 692 |
0 |
@Override... |
| 693 |
|
public void actionPerformed(ActionEvent e) |
| 694 |
|
{ |
| 695 |
0 |
boolean newState = sortAnnByLabel.getState(); |
| 696 |
0 |
sortAnnBySequence.setSelected(false); |
| 697 |
0 |
setAnnotationSortOrder( |
| 698 |
0 |
newState ? SequenceAnnotationOrder.LABEL_AND_SEQUENCE |
| 699 |
|
: SequenceAnnotationOrder.NONE); |
| 700 |
0 |
sortAnnotations_actionPerformed(); |
| 701 |
|
} |
| 702 |
|
}); |
| 703 |
475 |
showStrucProvider = new JCheckBoxMenuItem( |
| 704 |
|
MessageManager.getString("label.show_structure_provider")); |
| 705 |
475 |
showStrucProvider.addActionListener(new ActionListener() |
| 706 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 707 |
0 |
@Override... |
| 708 |
|
public void actionPerformed(ActionEvent e) |
| 709 |
|
{ |
| 710 |
0 |
showStructureProvider_actionPerformed(e); |
| 711 |
|
} |
| 712 |
|
|
| 713 |
|
}); |
| 714 |
475 |
colourTextMenuItem = new JCheckBoxMenuItem( |
| 715 |
|
MessageManager.getString("label.colour_text")); |
| 716 |
475 |
colourTextMenuItem.addActionListener(new ActionListener() |
| 717 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 718 |
0 |
@Override... |
| 719 |
|
public void actionPerformed(ActionEvent e) |
| 720 |
|
{ |
| 721 |
0 |
colourTextMenuItem_actionPerformed(e); |
| 722 |
|
} |
| 723 |
|
}); |
| 724 |
|
|
| 725 |
475 |
JMenuItem htmlMenuItem = new JMenuItem( |
| 726 |
|
MessageManager.getString("label.html")); |
| 727 |
475 |
htmlMenuItem.addActionListener(new ActionListener() |
| 728 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 729 |
0 |
@Override... |
| 730 |
|
public void actionPerformed(ActionEvent e) |
| 731 |
|
{ |
| 732 |
0 |
htmlMenuItem_actionPerformed(e); |
| 733 |
|
} |
| 734 |
|
}); |
| 735 |
|
|
| 736 |
475 |
JMenuItem createBioJS = new JMenuItem( |
| 737 |
|
MessageManager.getString("label.biojs_html_export")); |
| 738 |
475 |
createBioJS.addActionListener(new java.awt.event.ActionListener() |
| 739 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 740 |
0 |
@Override... |
| 741 |
|
public void actionPerformed(ActionEvent e) |
| 742 |
|
{ |
| 743 |
0 |
bioJSMenuItem_actionPerformed(e); |
| 744 |
|
} |
| 745 |
|
}); |
| 746 |
|
|
| 747 |
475 |
JMenuItem overviewMenuItem = new JMenuItem( |
| 748 |
|
MessageManager.getString("label.overview_window")); |
| 749 |
475 |
overviewMenuItem.addActionListener(new ActionListener() |
| 750 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 751 |
0 |
@Override... |
| 752 |
|
public void actionPerformed(ActionEvent e) |
| 753 |
|
{ |
| 754 |
0 |
overviewMenuItem_actionPerformed(e); |
| 755 |
|
} |
| 756 |
|
}); |
| 757 |
|
|
| 758 |
475 |
undoMenuItem.setEnabled(false); |
| 759 |
475 |
undoMenuItem.setText(MessageManager.getString("action.undo")); |
| 760 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_Z, |
| 761 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 762 |
|
.getMenuShortcutKeyMaskEx(), |
| 763 |
|
false); |
| 764 |
475 |
al = new ActionListener() |
| 765 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 766 |
0 |
@Override... |
| 767 |
|
public void actionPerformed(ActionEvent e) |
| 768 |
|
{ |
| 769 |
0 |
undoMenuItem_actionPerformed(e); |
| 770 |
|
} |
| 771 |
|
}; |
| 772 |
475 |
addMenuActionAndAccelerator(keyStroke, undoMenuItem, al); |
| 773 |
|
|
| 774 |
475 |
redoMenuItem.setEnabled(false); |
| 775 |
475 |
redoMenuItem.setText(MessageManager.getString("action.redo")); |
| 776 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_Y, |
| 777 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 778 |
|
.getMenuShortcutKeyMaskEx(), |
| 779 |
|
false); |
| 780 |
475 |
al = new ActionListener() |
| 781 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 782 |
0 |
@Override... |
| 783 |
|
public void actionPerformed(ActionEvent e) |
| 784 |
|
{ |
| 785 |
0 |
redoMenuItem_actionPerformed(e); |
| 786 |
|
} |
| 787 |
|
}; |
| 788 |
475 |
addMenuActionAndAccelerator(keyStroke, redoMenuItem, al); |
| 789 |
|
|
| 790 |
475 |
wrapMenuItem.setText(MessageManager.getString("label.wrap")); |
| 791 |
475 |
wrapMenuItem.addActionListener(new ActionListener() |
| 792 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 793 |
0 |
@Override... |
| 794 |
|
public void actionPerformed(ActionEvent e) |
| 795 |
|
{ |
| 796 |
0 |
wrapMenuItem_actionPerformed(e); |
| 797 |
|
} |
| 798 |
|
}); |
| 799 |
|
|
| 800 |
475 |
JMenuItem printMenuItem = new JMenuItem( |
| 801 |
|
MessageManager.getString("action.print")); |
| 802 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_P, |
| 803 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 804 |
|
.getMenuShortcutKeyMaskEx(), |
| 805 |
|
false); |
| 806 |
475 |
al = new ActionListener() |
| 807 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 808 |
0 |
@Override... |
| 809 |
|
public void actionPerformed(ActionEvent e) |
| 810 |
|
{ |
| 811 |
0 |
printMenuItem_actionPerformed(e); |
| 812 |
|
} |
| 813 |
|
}; |
| 814 |
475 |
addMenuActionAndAccelerator(keyStroke, printMenuItem, al); |
| 815 |
|
|
| 816 |
475 |
renderGapsMenuItem |
| 817 |
|
.setText(MessageManager.getString("action.show_gaps")); |
| 818 |
475 |
renderGapsMenuItem.setState(true); |
| 819 |
475 |
renderGapsMenuItem.addActionListener(new ActionListener() |
| 820 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 821 |
0 |
@Override... |
| 822 |
|
public void actionPerformed(ActionEvent e) |
| 823 |
|
{ |
| 824 |
0 |
renderGapsMenuItem_actionPerformed(e); |
| 825 |
|
} |
| 826 |
|
}); |
| 827 |
|
|
| 828 |
475 |
JMenuItem findMenuItem = new JMenuItem( |
| 829 |
|
MessageManager.getString("action.find")); |
| 830 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_F, |
| 831 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 832 |
|
.getMenuShortcutKeyMaskEx(), |
| 833 |
|
false); |
| 834 |
475 |
findMenuItem.setToolTipText(JvSwingUtils.wrapTooltip(true, |
| 835 |
|
MessageManager.getString("label.find_tip"))); |
| 836 |
475 |
al = new ActionListener() |
| 837 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 838 |
0 |
@Override... |
| 839 |
|
public void actionPerformed(ActionEvent e) |
| 840 |
|
{ |
| 841 |
0 |
findMenuItem_actionPerformed(e); |
| 842 |
|
} |
| 843 |
|
}; |
| 844 |
475 |
addMenuActionAndAccelerator(keyStroke, findMenuItem, al); |
| 845 |
|
|
| 846 |
475 |
showSeqFeatures.setText( |
| 847 |
|
MessageManager.getString("label.show_sequence_features")); |
| 848 |
475 |
showSeqFeatures.addActionListener(new ActionListener() |
| 849 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 850 |
0 |
@Override... |
| 851 |
|
public void actionPerformed(ActionEvent actionEvent) |
| 852 |
|
{ |
| 853 |
0 |
showSeqFeatures_actionPerformed(actionEvent); |
| 854 |
|
} |
| 855 |
|
}); |
| 856 |
|
|
| 857 |
|
|
| 858 |
|
|
| 859 |
|
|
| 860 |
|
|
| 861 |
|
|
| 862 |
475 |
showDbRefsMenuitem |
| 863 |
|
.setText(MessageManager.getString("label.show_database_refs")); |
| 864 |
475 |
showDbRefsMenuitem.addActionListener(new ActionListener() |
| 865 |
|
{ |
| 866 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 867 |
0 |
@Override... |
| 868 |
|
public void actionPerformed(ActionEvent e) |
| 869 |
|
{ |
| 870 |
0 |
showDbRefs_actionPerformed(e); |
| 871 |
|
} |
| 872 |
|
|
| 873 |
|
}); |
| 874 |
475 |
showNpFeatsMenuitem.setText( |
| 875 |
|
MessageManager.getString("label.show_non_positional_features")); |
| 876 |
475 |
showNpFeatsMenuitem.addActionListener(new ActionListener() |
| 877 |
|
{ |
| 878 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 879 |
0 |
@Override... |
| 880 |
|
public void actionPerformed(ActionEvent e) |
| 881 |
|
{ |
| 882 |
0 |
showNpFeats_actionPerformed(e); |
| 883 |
|
} |
| 884 |
|
|
| 885 |
|
}); |
| 886 |
475 |
showGroupConservation |
| 887 |
|
.setText(MessageManager.getString("label.group_conservation")); |
| 888 |
475 |
showGroupConservation.addActionListener(new ActionListener() |
| 889 |
|
{ |
| 890 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 891 |
0 |
@Override... |
| 892 |
|
public void actionPerformed(ActionEvent e) |
| 893 |
|
{ |
| 894 |
0 |
showGroupConservation_actionPerformed(e); |
| 895 |
|
} |
| 896 |
|
|
| 897 |
|
}); |
| 898 |
|
|
| 899 |
475 |
showSSConsensus.setText(MessageManager |
| 900 |
|
.getString("label.show_secondary_structure_consensus")); |
| 901 |
475 |
showSSConsensus.addActionListener(new ActionListener() |
| 902 |
|
{ |
| 903 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 904 |
0 |
@Override... |
| 905 |
|
public void actionPerformed(ActionEvent e) |
| 906 |
|
{ |
| 907 |
0 |
showSSConsensus_actionPerformed(e); |
| 908 |
|
} |
| 909 |
|
|
| 910 |
|
}); |
| 911 |
|
|
| 912 |
475 |
showGroupSSConsensus |
| 913 |
|
.setText(MessageManager.getString("label.group_ss_consensus")); |
| 914 |
475 |
showGroupSSConsensus.addActionListener(new ActionListener() |
| 915 |
|
{ |
| 916 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 917 |
0 |
@Override... |
| 918 |
|
public void actionPerformed(ActionEvent e) |
| 919 |
|
{ |
| 920 |
0 |
showGroupSSConsensus_actionPerformed(e); |
| 921 |
|
} |
| 922 |
|
|
| 923 |
|
}); |
| 924 |
|
|
| 925 |
475 |
showGroupConsensus |
| 926 |
|
.setText(MessageManager.getString("label.group_consensus")); |
| 927 |
475 |
showGroupConsensus.addActionListener(new ActionListener() |
| 928 |
|
{ |
| 929 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 930 |
0 |
@Override... |
| 931 |
|
public void actionPerformed(ActionEvent e) |
| 932 |
|
{ |
| 933 |
0 |
showGroupConsensus_actionPerformed(e); |
| 934 |
|
} |
| 935 |
|
|
| 936 |
|
}); |
| 937 |
475 |
showConsensusHistogram.setText( |
| 938 |
|
MessageManager.getString("label.show_consensus_histogram")); |
| 939 |
475 |
showConsensusHistogram.addActionListener(new ActionListener() |
| 940 |
|
{ |
| 941 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 942 |
0 |
@Override... |
| 943 |
|
public void actionPerformed(ActionEvent e) |
| 944 |
|
{ |
| 945 |
0 |
showConsensusHistogram_actionPerformed(e); |
| 946 |
|
} |
| 947 |
|
|
| 948 |
|
}); |
| 949 |
|
|
| 950 |
475 |
showSequenceLogo |
| 951 |
|
.setText(MessageManager.getString("label.show_consensus_logo")); |
| 952 |
475 |
showSequenceLogo.addActionListener(new ActionListener() |
| 953 |
|
{ |
| 954 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 955 |
0 |
@Override... |
| 956 |
|
public void actionPerformed(ActionEvent e) |
| 957 |
|
{ |
| 958 |
0 |
showSequenceLogo_actionPerformed(e); |
| 959 |
|
} |
| 960 |
|
|
| 961 |
|
}); |
| 962 |
475 |
normaliseSequenceLogo |
| 963 |
|
.setText(MessageManager.getString("label.norm_consensus_logo")); |
| 964 |
475 |
normaliseSequenceLogo.addActionListener(new ActionListener() |
| 965 |
|
{ |
| 966 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 967 |
0 |
@Override... |
| 968 |
|
public void actionPerformed(ActionEvent e) |
| 969 |
|
{ |
| 970 |
0 |
normaliseSequenceLogo_actionPerformed(e); |
| 971 |
|
} |
| 972 |
|
|
| 973 |
|
}); |
| 974 |
475 |
applyAutoAnnotationSettings |
| 975 |
|
.setText(MessageManager.getString("label.apply_all_groups")); |
| 976 |
475 |
applyAutoAnnotationSettings.setState(false); |
| 977 |
475 |
applyAutoAnnotationSettings.setVisible(true); |
| 978 |
475 |
applyAutoAnnotationSettings.addActionListener(new ActionListener() |
| 979 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 980 |
0 |
@Override... |
| 981 |
|
public void actionPerformed(ActionEvent e) |
| 982 |
|
{ |
| 983 |
0 |
applyAutoAnnotationSettings_actionPerformed(e); |
| 984 |
|
} |
| 985 |
|
}); |
| 986 |
|
|
| 987 |
475 |
ButtonGroup buttonGroup = new ButtonGroup(); |
| 988 |
475 |
final JRadioButtonMenuItem showAutoFirst = new JRadioButtonMenuItem( |
| 989 |
|
MessageManager.getString("label.show_first")); |
| 990 |
475 |
final JRadioButtonMenuItem showAutoLast = new JRadioButtonMenuItem( |
| 991 |
|
MessageManager.getString("label.show_last")); |
| 992 |
475 |
buttonGroup.add(showAutoFirst); |
| 993 |
475 |
buttonGroup.add(showAutoLast); |
| 994 |
475 |
final boolean autoFirst = Cache |
| 995 |
|
.getDefault(Preferences.SHOW_AUTOCALC_ABOVE, false); |
| 996 |
475 |
showAutoFirst.setSelected(autoFirst); |
| 997 |
475 |
setShowAutoCalculatedAbove(autoFirst); |
| 998 |
475 |
showAutoFirst.addActionListener(new ActionListener() |
| 999 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 1000 |
0 |
@Override... |
| 1001 |
|
public void actionPerformed(ActionEvent e) |
| 1002 |
|
{ |
| 1003 |
0 |
setShowAutoCalculatedAbove(showAutoFirst.isSelected()); |
| 1004 |
0 |
sortAnnotations_actionPerformed(); |
| 1005 |
|
} |
| 1006 |
|
}); |
| 1007 |
475 |
showAutoLast.setSelected(!showAutoFirst.isSelected()); |
| 1008 |
475 |
showAutoLast.addActionListener(new ActionListener() |
| 1009 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 1010 |
0 |
@Override... |
| 1011 |
|
public void actionPerformed(ActionEvent e) |
| 1012 |
|
{ |
| 1013 |
0 |
setShowAutoCalculatedAbove(!showAutoLast.isSelected()); |
| 1014 |
0 |
sortAnnotations_actionPerformed(); |
| 1015 |
|
} |
| 1016 |
|
}); |
| 1017 |
|
|
| 1018 |
475 |
JMenuItem deleteGroups = new JMenuItem( |
| 1019 |
|
MessageManager.getString("action.undefine_groups")); |
| 1020 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_U, |
| 1021 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 1022 |
|
.getMenuShortcutKeyMaskEx(), |
| 1023 |
|
false); |
| 1024 |
475 |
al = new ActionListener() |
| 1025 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1026 |
0 |
@Override... |
| 1027 |
|
public void actionPerformed(ActionEvent e) |
| 1028 |
|
{ |
| 1029 |
0 |
deleteGroups_actionPerformed(e); |
| 1030 |
|
} |
| 1031 |
|
}; |
| 1032 |
475 |
addMenuActionAndAccelerator(keyStroke, deleteGroups, al); |
| 1033 |
|
|
| 1034 |
475 |
JMenuItem annotationColumn = new JMenuItem( |
| 1035 |
|
MessageManager.getString("action.select_by_annotation")); |
| 1036 |
475 |
annotationColumn.addActionListener(new ActionListener() |
| 1037 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1038 |
0 |
@Override... |
| 1039 |
|
public void actionPerformed(ActionEvent e) |
| 1040 |
|
{ |
| 1041 |
0 |
annotationColumn_actionPerformed(e); |
| 1042 |
|
} |
| 1043 |
|
}); |
| 1044 |
|
|
| 1045 |
475 |
JMenuItem createGroup = new JMenuItem( |
| 1046 |
|
MessageManager.getString("action.create_group")); |
| 1047 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_G, |
| 1048 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 1049 |
|
.getMenuShortcutKeyMaskEx(), |
| 1050 |
|
false); |
| 1051 |
475 |
al = new ActionListener() |
| 1052 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1053 |
0 |
@Override... |
| 1054 |
|
public void actionPerformed(ActionEvent e) |
| 1055 |
|
{ |
| 1056 |
0 |
createGroup_actionPerformed(e); |
| 1057 |
|
} |
| 1058 |
|
}; |
| 1059 |
475 |
addMenuActionAndAccelerator(keyStroke, createGroup, al); |
| 1060 |
|
|
| 1061 |
475 |
JMenuItem unGroup = new JMenuItem( |
| 1062 |
|
MessageManager.getString("action.remove_group")); |
| 1063 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_G, |
| 1064 |
|
jalview.util.ShortcutKeyMaskExWrapper.getMenuShortcutKeyMaskEx() |
| 1065 |
|
| jalview.util.ShortcutKeyMaskExWrapper.SHIFT_DOWN_MASK, |
| 1066 |
|
false); |
| 1067 |
475 |
al = new ActionListener() |
| 1068 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1069 |
0 |
@Override... |
| 1070 |
|
public void actionPerformed(ActionEvent e) |
| 1071 |
|
{ |
| 1072 |
0 |
unGroup_actionPerformed(e); |
| 1073 |
|
} |
| 1074 |
|
}; |
| 1075 |
475 |
addMenuActionAndAccelerator(keyStroke, unGroup, al); |
| 1076 |
|
|
| 1077 |
475 |
copy.setText(MessageManager.getString("action.copy")); |
| 1078 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_C, |
| 1079 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 1080 |
|
.getMenuShortcutKeyMaskEx(), |
| 1081 |
|
false); |
| 1082 |
|
|
| 1083 |
475 |
al = new ActionListener() |
| 1084 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1085 |
0 |
@Override... |
| 1086 |
|
public void actionPerformed(ActionEvent e) |
| 1087 |
|
{ |
| 1088 |
0 |
copy_actionPerformed(); |
| 1089 |
|
} |
| 1090 |
|
}; |
| 1091 |
475 |
addMenuActionAndAccelerator(keyStroke, copy, al); |
| 1092 |
|
|
| 1093 |
475 |
cut.setText(MessageManager.getString("action.cut")); |
| 1094 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_X, |
| 1095 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 1096 |
|
.getMenuShortcutKeyMaskEx(), |
| 1097 |
|
false); |
| 1098 |
475 |
al = new ActionListener() |
| 1099 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1100 |
0 |
@Override... |
| 1101 |
|
public void actionPerformed(ActionEvent e) |
| 1102 |
|
{ |
| 1103 |
0 |
cut_actionPerformed(); |
| 1104 |
|
} |
| 1105 |
|
}; |
| 1106 |
475 |
addMenuActionAndAccelerator(keyStroke, cut, al); |
| 1107 |
|
|
| 1108 |
475 |
JMenuItem delete = new JMenuItem( |
| 1109 |
|
MessageManager.getString("action.delete")); |
| 1110 |
475 |
delete.addActionListener(new ActionListener() |
| 1111 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1112 |
0 |
@Override... |
| 1113 |
|
public void actionPerformed(ActionEvent e) |
| 1114 |
|
{ |
| 1115 |
0 |
delete_actionPerformed(); |
| 1116 |
|
} |
| 1117 |
|
}); |
| 1118 |
|
|
| 1119 |
475 |
pasteMenu.setText(MessageManager.getString("action.paste")); |
| 1120 |
475 |
JMenuItem pasteNew = new JMenuItem( |
| 1121 |
|
MessageManager.getString("label.to_new_alignment")); |
| 1122 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_V, |
| 1123 |
|
jalview.util.ShortcutKeyMaskExWrapper.getMenuShortcutKeyMaskEx() |
| 1124 |
|
| jalview.util.ShortcutKeyMaskExWrapper.SHIFT_DOWN_MASK, |
| 1125 |
|
false); |
| 1126 |
475 |
al = new ActionListener() |
| 1127 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1128 |
0 |
@Override... |
| 1129 |
|
public void actionPerformed(ActionEvent e) |
| 1130 |
|
{ |
| 1131 |
0 |
pasteNew_actionPerformed(e); |
| 1132 |
|
} |
| 1133 |
|
}; |
| 1134 |
475 |
addMenuActionAndAccelerator(keyStroke, pasteNew, al); |
| 1135 |
|
|
| 1136 |
475 |
JMenuItem pasteThis = new JMenuItem( |
| 1137 |
|
MessageManager.getString("label.to_this_alignment")); |
| 1138 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_V, |
| 1139 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 1140 |
|
.getMenuShortcutKeyMaskEx(), |
| 1141 |
|
false); |
| 1142 |
475 |
al = new ActionListener() |
| 1143 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1144 |
0 |
@Override... |
| 1145 |
|
public void actionPerformed(ActionEvent e) |
| 1146 |
|
{ |
| 1147 |
0 |
pasteThis_actionPerformed(e); |
| 1148 |
|
} |
| 1149 |
|
}; |
| 1150 |
475 |
addMenuActionAndAccelerator(keyStroke, pasteThis, al); |
| 1151 |
|
|
| 1152 |
475 |
JMenuItem createPNG = new JMenuItem("PNG"); |
| 1153 |
475 |
createPNG.addActionListener(new ActionListener() |
| 1154 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1155 |
0 |
@Override... |
| 1156 |
|
public void actionPerformed(ActionEvent e) |
| 1157 |
|
{ |
| 1158 |
0 |
createPNG_actionPerformed(e); |
| 1159 |
|
} |
| 1160 |
|
}); |
| 1161 |
475 |
createPNG.setActionCommand( |
| 1162 |
|
MessageManager.getString("label.save_png_image")); |
| 1163 |
|
|
| 1164 |
475 |
JMenuItem font = new JMenuItem(MessageManager.getString("action.font")); |
| 1165 |
475 |
font.addActionListener(new ActionListener() |
| 1166 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1167 |
0 |
@Override... |
| 1168 |
|
public void actionPerformed(ActionEvent e) |
| 1169 |
|
{ |
| 1170 |
0 |
font_actionPerformed(e); |
| 1171 |
|
} |
| 1172 |
|
}); |
| 1173 |
475 |
seqLimits.setText( |
| 1174 |
|
MessageManager.getString("label.show_sequence_limits")); |
| 1175 |
475 |
seqLimits.setState(Cache.getDefault("SHOW_JVSUFFIX", true)); |
| 1176 |
475 |
seqLimits.addActionListener(new ActionListener() |
| 1177 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1178 |
0 |
@Override... |
| 1179 |
|
public void actionPerformed(ActionEvent e) |
| 1180 |
|
{ |
| 1181 |
0 |
seqLimit_actionPerformed(e); |
| 1182 |
|
} |
| 1183 |
|
}); |
| 1184 |
475 |
JMenuItem epsFile = new JMenuItem("EPS"); |
| 1185 |
475 |
epsFile.addActionListener(new ActionListener() |
| 1186 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1187 |
0 |
@Override... |
| 1188 |
|
public void actionPerformed(ActionEvent e) |
| 1189 |
|
{ |
| 1190 |
0 |
createEPS_actionPerformed(e); |
| 1191 |
|
} |
| 1192 |
|
}); |
| 1193 |
|
|
| 1194 |
475 |
JMenuItem createSVG = new JMenuItem("SVG"); |
| 1195 |
475 |
createSVG.addActionListener(new ActionListener() |
| 1196 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1197 |
0 |
@Override... |
| 1198 |
|
public void actionPerformed(ActionEvent e) |
| 1199 |
|
{ |
| 1200 |
0 |
createSVG_actionPerformed(e); |
| 1201 |
|
} |
| 1202 |
|
}); |
| 1203 |
|
|
| 1204 |
475 |
JMenuItem loadTreeMenuItem = new JMenuItem( |
| 1205 |
|
MessageManager.getString("label.load_associated_tree")); |
| 1206 |
475 |
loadTreeMenuItem.setActionCommand( |
| 1207 |
|
MessageManager.getString("label.load_tree_for_sequence_set")); |
| 1208 |
475 |
loadTreeMenuItem.addActionListener(new ActionListener() |
| 1209 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1210 |
0 |
@Override... |
| 1211 |
|
public void actionPerformed(ActionEvent e) |
| 1212 |
|
{ |
| 1213 |
0 |
loadTreeMenuItem_actionPerformed(e); |
| 1214 |
|
} |
| 1215 |
|
}); |
| 1216 |
|
|
| 1217 |
475 |
scaleAbove.setVisible(false); |
| 1218 |
475 |
scaleAbove.setText(MessageManager.getString("action.scale_above")); |
| 1219 |
475 |
scaleAbove.addActionListener(new ActionListener() |
| 1220 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1221 |
0 |
@Override... |
| 1222 |
|
public void actionPerformed(ActionEvent e) |
| 1223 |
|
{ |
| 1224 |
0 |
scaleAbove_actionPerformed(e); |
| 1225 |
|
} |
| 1226 |
|
}); |
| 1227 |
475 |
scaleLeft.setVisible(false); |
| 1228 |
475 |
scaleLeft.setSelected(true); |
| 1229 |
475 |
scaleLeft.setText(MessageManager.getString("action.scale_left")); |
| 1230 |
475 |
scaleLeft.addActionListener(new ActionListener() |
| 1231 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1232 |
0 |
@Override... |
| 1233 |
|
public void actionPerformed(ActionEvent e) |
| 1234 |
|
{ |
| 1235 |
0 |
scaleLeft_actionPerformed(e); |
| 1236 |
|
} |
| 1237 |
|
}); |
| 1238 |
475 |
scaleRight.setVisible(false); |
| 1239 |
475 |
scaleRight.setSelected(true); |
| 1240 |
475 |
scaleRight.setText(MessageManager.getString("action.scale_right")); |
| 1241 |
475 |
scaleRight.addActionListener(new ActionListener() |
| 1242 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1243 |
0 |
@Override... |
| 1244 |
|
public void actionPerformed(ActionEvent e) |
| 1245 |
|
{ |
| 1246 |
0 |
scaleRight_actionPerformed(e); |
| 1247 |
|
} |
| 1248 |
|
}); |
| 1249 |
475 |
centreColumnLabelsMenuItem.setVisible(true); |
| 1250 |
475 |
centreColumnLabelsMenuItem.setState(false); |
| 1251 |
475 |
centreColumnLabelsMenuItem.setText( |
| 1252 |
|
MessageManager.getString("label.centre_column_labels")); |
| 1253 |
475 |
centreColumnLabelsMenuItem.addActionListener(new ActionListener() |
| 1254 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1255 |
0 |
@Override... |
| 1256 |
|
public void actionPerformed(ActionEvent e) |
| 1257 |
|
{ |
| 1258 |
0 |
centreColumnLabels_actionPerformed(e); |
| 1259 |
|
} |
| 1260 |
|
}); |
| 1261 |
475 |
followHighlightMenuItem.setVisible(true); |
| 1262 |
475 |
followHighlightMenuItem.setState(true); |
| 1263 |
475 |
followHighlightMenuItem |
| 1264 |
|
.setText(MessageManager.getString("label.automatic_scrolling")); |
| 1265 |
475 |
followHighlightMenuItem.addActionListener(new ActionListener() |
| 1266 |
|
{ |
| 1267 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1268 |
0 |
@Override... |
| 1269 |
|
public void actionPerformed(ActionEvent e) |
| 1270 |
|
{ |
| 1271 |
0 |
followHighlight_actionPerformed(); |
| 1272 |
|
} |
| 1273 |
|
|
| 1274 |
|
}); |
| 1275 |
|
|
| 1276 |
475 |
sortByTreeMenu |
| 1277 |
|
.setText(MessageManager.getString("action.by_tree_order")); |
| 1278 |
475 |
sort.setText(MessageManager.getString("action.sort")); |
| 1279 |
475 |
sort.addMenuListener(new MenuListener() |
| 1280 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1281 |
0 |
@Override... |
| 1282 |
|
public void menuSelected(MenuEvent e) |
| 1283 |
|
{ |
| 1284 |
0 |
buildTreeSortMenu(); |
| 1285 |
|
} |
| 1286 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 1287 |
0 |
@Override... |
| 1288 |
|
public void menuDeselected(MenuEvent e) |
| 1289 |
|
{ |
| 1290 |
|
} |
| 1291 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 1292 |
0 |
@Override... |
| 1293 |
|
public void menuCanceled(MenuEvent e) |
| 1294 |
|
{ |
| 1295 |
|
} |
| 1296 |
|
}); |
| 1297 |
475 |
sortByAnnotScore |
| 1298 |
|
.setText(MessageManager.getString("label.sort_by_score")); |
| 1299 |
475 |
sort.add(sortByAnnotScore); |
| 1300 |
475 |
sort.addMenuListener(new javax.swing.event.MenuListener() |
| 1301 |
|
{ |
| 1302 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 1303 |
0 |
@Override... |
| 1304 |
|
public void menuCanceled(MenuEvent e) |
| 1305 |
|
{ |
| 1306 |
|
} |
| 1307 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 1308 |
0 |
@Override... |
| 1309 |
|
public void menuDeselected(MenuEvent e) |
| 1310 |
|
{ |
| 1311 |
|
} |
| 1312 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1313 |
0 |
@Override... |
| 1314 |
|
public void menuSelected(MenuEvent e) |
| 1315 |
|
{ |
| 1316 |
0 |
buildSortByAnnotationScoresMenu(); |
| 1317 |
|
} |
| 1318 |
|
}); |
| 1319 |
475 |
sortByAnnotScore.setVisible(false); |
| 1320 |
|
|
| 1321 |
475 |
calculateTree |
| 1322 |
|
.setText(MessageManager.getString("action.calculate_tree_pca")); |
| 1323 |
|
|
| 1324 |
475 |
padGapsMenuitem.setText(MessageManager.getString("label.pad_gaps")); |
| 1325 |
475 |
padGapsMenuitem.setState(Cache.getDefault("PAD_GAPS", false)); |
| 1326 |
475 |
padGapsMenuitem.addActionListener(new ActionListener() |
| 1327 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1328 |
0 |
@Override... |
| 1329 |
|
public void actionPerformed(ActionEvent e) |
| 1330 |
|
{ |
| 1331 |
0 |
padGapsMenuitem_actionPerformed(e); |
| 1332 |
|
} |
| 1333 |
|
}); |
| 1334 |
475 |
JMenuItem vamsasStore = new JMenuItem( |
| 1335 |
|
MessageManager.getString("label.vamsas_store")); |
| 1336 |
475 |
vamsasStore.setVisible(false); |
| 1337 |
475 |
vamsasStore.addActionListener(new ActionListener() |
| 1338 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1339 |
0 |
@Override... |
| 1340 |
|
public void actionPerformed(ActionEvent e) |
| 1341 |
|
{ |
| 1342 |
0 |
vamsasStore_actionPerformed(e); |
| 1343 |
|
} |
| 1344 |
|
}); |
| 1345 |
|
|
| 1346 |
|
|
| 1347 |
|
|
| 1348 |
|
|
| 1349 |
475 |
showTranslation |
| 1350 |
|
.setText(MessageManager.getString("label.translate_cDNA")); |
| 1351 |
475 |
boolean first = true; |
| 1352 |
475 |
for (final GeneticCodeI table : GeneticCodes.getInstance() |
| 1353 |
|
.getCodeTables()) |
| 1354 |
|
{ |
| 1355 |
11875 |
JMenuItem item = new JMenuItem(table.getId() + " " + table.getName()); |
| 1356 |
11875 |
showTranslation.add(item); |
| 1357 |
11875 |
item.addActionListener(new ActionListener() |
| 1358 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1359 |
0 |
@Override... |
| 1360 |
|
public void actionPerformed(ActionEvent e) |
| 1361 |
|
{ |
| 1362 |
0 |
showTranslation_actionPerformed(table); |
| 1363 |
|
} |
| 1364 |
|
}); |
| 1365 |
11875 |
if (first) |
| 1366 |
|
{ |
| 1367 |
475 |
showTranslation.addSeparator(); |
| 1368 |
|
} |
| 1369 |
11875 |
first = false; |
| 1370 |
|
} |
| 1371 |
|
|
| 1372 |
475 |
showReverse.setText(MessageManager.getString("label.reverse")); |
| 1373 |
475 |
showReverse.addActionListener(new ActionListener() |
| 1374 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1375 |
0 |
@Override... |
| 1376 |
|
public void actionPerformed(ActionEvent e) |
| 1377 |
|
{ |
| 1378 |
0 |
showReverse_actionPerformed(false); |
| 1379 |
|
} |
| 1380 |
|
}); |
| 1381 |
475 |
showReverseComplement |
| 1382 |
|
.setText(MessageManager.getString("label.reverse_complement")); |
| 1383 |
475 |
showReverseComplement.addActionListener(new ActionListener() |
| 1384 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1385 |
0 |
@Override... |
| 1386 |
|
public void actionPerformed(ActionEvent e) |
| 1387 |
|
{ |
| 1388 |
0 |
showReverse_actionPerformed(true); |
| 1389 |
|
} |
| 1390 |
|
}); |
| 1391 |
|
|
| 1392 |
475 |
JMenuItem extractScores = new JMenuItem( |
| 1393 |
|
MessageManager.getString("label.extract_scores")); |
| 1394 |
475 |
extractScores.addActionListener(new ActionListener() |
| 1395 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1396 |
0 |
@Override... |
| 1397 |
|
public void actionPerformed(ActionEvent e) |
| 1398 |
|
{ |
| 1399 |
0 |
extractScores_actionPerformed(e); |
| 1400 |
|
} |
| 1401 |
|
}); |
| 1402 |
475 |
extractScores.setVisible(true); |
| 1403 |
|
|
| 1404 |
|
|
| 1405 |
|
|
| 1406 |
475 |
showProducts.setText(MessageManager.getString("label.get_cross_refs")); |
| 1407 |
|
|
| 1408 |
475 |
runGroovy.setText(MessageManager.getString("label.run_groovy")); |
| 1409 |
475 |
runGroovy.setToolTipText( |
| 1410 |
|
MessageManager.getString("label.run_groovy_tip")); |
| 1411 |
475 |
runGroovy.addActionListener(new ActionListener() |
| 1412 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1413 |
0 |
@Override... |
| 1414 |
|
public void actionPerformed(ActionEvent e) |
| 1415 |
|
{ |
| 1416 |
0 |
runGroovy_actionPerformed(); |
| 1417 |
|
} |
| 1418 |
|
}); |
| 1419 |
|
|
| 1420 |
475 |
openFeatureSettings = new JMenuItem( |
| 1421 |
|
MessageManager.getString("action.feature_settings")); |
| 1422 |
475 |
openFeatureSettings.addActionListener(new ActionListener() |
| 1423 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1424 |
0 |
@Override... |
| 1425 |
|
public void actionPerformed(ActionEvent e) |
| 1426 |
|
{ |
| 1427 |
0 |
featureSettings_actionPerformed(e); |
| 1428 |
|
} |
| 1429 |
|
}); |
| 1430 |
|
|
| 1431 |
|
|
| 1432 |
|
|
| 1433 |
|
|
| 1434 |
475 |
JMenuItem fetchSequence = new JMenuItem( |
| 1435 |
|
MessageManager.getString("label.fetch_sequences")); |
| 1436 |
475 |
fetchSequence.addActionListener(new ActionListener() |
| 1437 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1438 |
0 |
@Override... |
| 1439 |
|
public void actionPerformed(ActionEvent e) |
| 1440 |
|
{ |
| 1441 |
0 |
fetchSequence_actionPerformed(); |
| 1442 |
|
} |
| 1443 |
|
}); |
| 1444 |
|
|
| 1445 |
475 |
JMenuItem associatedData = new JMenuItem( |
| 1446 |
|
MessageManager.getString("label.load_features_annotations")); |
| 1447 |
475 |
associatedData.addActionListener(new ActionListener() |
| 1448 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1449 |
0 |
@Override... |
| 1450 |
|
public void actionPerformed(ActionEvent e) |
| 1451 |
|
{ |
| 1452 |
0 |
associatedData_actionPerformed(e); |
| 1453 |
|
} |
| 1454 |
|
}); |
| 1455 |
475 |
loadVcf = new JMenuItem( |
| 1456 |
|
MessageManager.getString("label.load_vcf_file")); |
| 1457 |
475 |
loadVcf.setToolTipText(MessageManager.getString("label.load_vcf")); |
| 1458 |
475 |
loadVcf.addActionListener(new ActionListener() |
| 1459 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1460 |
0 |
@Override... |
| 1461 |
|
public void actionPerformed(ActionEvent e) |
| 1462 |
|
{ |
| 1463 |
0 |
loadVcf_actionPerformed(); |
| 1464 |
|
} |
| 1465 |
|
}); |
| 1466 |
475 |
autoCalculate.setText( |
| 1467 |
|
MessageManager.getString("label.autocalculate_consensus")); |
| 1468 |
475 |
autoCalculate.setState(Cache.getDefault("AUTO_CALC_CONSENSUS", true)); |
| 1469 |
475 |
autoCalculate.addActionListener(new ActionListener() |
| 1470 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1471 |
0 |
@Override... |
| 1472 |
|
public void actionPerformed(ActionEvent e) |
| 1473 |
|
{ |
| 1474 |
0 |
autoCalculate_actionPerformed(e); |
| 1475 |
|
} |
| 1476 |
|
}); |
| 1477 |
475 |
sortByTree.setText( |
| 1478 |
|
MessageManager.getString("label.sort_alignment_new_tree")); |
| 1479 |
475 |
sortByTree.setToolTipText("<html>" + MessageManager.getString( |
| 1480 |
|
"label.enable_automatically_sort_alignment_when_open_new_tree")); |
| 1481 |
475 |
sortByTree.setState(Cache.getDefault("SORT_BY_TREE", false)); |
| 1482 |
475 |
sortByTree.addActionListener(new ActionListener() |
| 1483 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1484 |
0 |
@Override... |
| 1485 |
|
public void actionPerformed(ActionEvent e) |
| 1486 |
|
{ |
| 1487 |
0 |
sortByTreeOption_actionPerformed(e); |
| 1488 |
|
} |
| 1489 |
|
}); |
| 1490 |
|
|
| 1491 |
475 |
listenToViewSelections.setText( |
| 1492 |
|
MessageManager.getString("label.listen_for_selections")); |
| 1493 |
475 |
listenToViewSelections |
| 1494 |
|
.setToolTipText("<html>" + MessageManager.getString( |
| 1495 |
|
"label.selections_mirror_selections_made_same_sequences_other_views")); |
| 1496 |
475 |
listenToViewSelections.setState(false); |
| 1497 |
475 |
listenToViewSelections.addActionListener(new ActionListener() |
| 1498 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1499 |
0 |
@Override... |
| 1500 |
|
public void actionPerformed(ActionEvent e) |
| 1501 |
|
{ |
| 1502 |
0 |
listenToViewSelections_actionPerformed(e); |
| 1503 |
|
} |
| 1504 |
|
}); |
| 1505 |
|
|
| 1506 |
475 |
JMenu addSequenceMenu = new JMenu( |
| 1507 |
|
MessageManager.getString("label.add_sequences")); |
| 1508 |
475 |
JMenuItem addFromFile = new JMenuItem( |
| 1509 |
|
MessageManager.getString("label.from_file")); |
| 1510 |
475 |
addFromFile.addActionListener(new ActionListener() |
| 1511 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1512 |
0 |
@Override... |
| 1513 |
|
public void actionPerformed(ActionEvent e) |
| 1514 |
|
{ |
| 1515 |
0 |
addFromFile_actionPerformed(e); |
| 1516 |
|
} |
| 1517 |
|
}); |
| 1518 |
475 |
JMenuItem addFromText = new JMenuItem( |
| 1519 |
|
MessageManager.getString("label.from_textbox")); |
| 1520 |
475 |
addFromText.addActionListener(new ActionListener() |
| 1521 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1522 |
0 |
@Override... |
| 1523 |
|
public void actionPerformed(ActionEvent e) |
| 1524 |
|
{ |
| 1525 |
0 |
addFromText_actionPerformed(e); |
| 1526 |
|
} |
| 1527 |
|
}); |
| 1528 |
475 |
JMenuItem addFromURL = new JMenuItem( |
| 1529 |
|
MessageManager.getString("label.from_url")); |
| 1530 |
475 |
addFromURL.addActionListener(new ActionListener() |
| 1531 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1532 |
0 |
@Override... |
| 1533 |
|
public void actionPerformed(ActionEvent e) |
| 1534 |
|
{ |
| 1535 |
0 |
addFromURL_actionPerformed(e); |
| 1536 |
|
} |
| 1537 |
|
}); |
| 1538 |
475 |
JMenuItem exportFeatures = new JMenuItem( |
| 1539 |
|
MessageManager.getString("label.export_features")); |
| 1540 |
475 |
exportFeatures.addActionListener(new ActionListener() |
| 1541 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1542 |
0 |
@Override... |
| 1543 |
|
public void actionPerformed(ActionEvent e) |
| 1544 |
|
{ |
| 1545 |
0 |
exportFeatures_actionPerformed(e); |
| 1546 |
|
} |
| 1547 |
|
}); |
| 1548 |
475 |
JMenuItem exportAnnotations = new JMenuItem( |
| 1549 |
|
MessageManager.getString("label.export_annotations")); |
| 1550 |
475 |
exportAnnotations.addActionListener(new ActionListener() |
| 1551 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1552 |
0 |
@Override... |
| 1553 |
|
public void actionPerformed(ActionEvent e) |
| 1554 |
|
{ |
| 1555 |
0 |
exportAnnotations_actionPerformed(e); |
| 1556 |
|
} |
| 1557 |
|
}); |
| 1558 |
475 |
statusPanel.setLayout(new GridLayout()); |
| 1559 |
475 |
JMenuItem showAllSeqs = new JMenuItem( |
| 1560 |
|
MessageManager.getString("label.all_sequences")); |
| 1561 |
475 |
showAllSeqs.setToolTipText( |
| 1562 |
|
MessageManager.getString("label.toggle_sequence_visibility")); |
| 1563 |
475 |
showAllSeqs.addActionListener(new ActionListener() |
| 1564 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1565 |
0 |
@Override... |
| 1566 |
|
public void actionPerformed(ActionEvent e) |
| 1567 |
|
{ |
| 1568 |
0 |
showAllSeqs_actionPerformed(e); |
| 1569 |
|
} |
| 1570 |
|
}); |
| 1571 |
475 |
JMenuItem showAllColumns = new JMenuItem( |
| 1572 |
|
MessageManager.getString("label.all_columns")); |
| 1573 |
475 |
showAllColumns.setToolTipText( |
| 1574 |
|
MessageManager.getString("label.toggle_columns_visibility")); |
| 1575 |
475 |
showAllColumns.addActionListener(new ActionListener() |
| 1576 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1577 |
0 |
@Override... |
| 1578 |
|
public void actionPerformed(ActionEvent e) |
| 1579 |
|
{ |
| 1580 |
0 |
showAllColumns_actionPerformed(e); |
| 1581 |
|
} |
| 1582 |
|
}); |
| 1583 |
475 |
JMenu hideMenu = new JMenu(MessageManager.getString("action.hide")); |
| 1584 |
475 |
JMenuItem hideSelSequences = new JMenuItem( |
| 1585 |
|
MessageManager.getString("label.selected_sequences")); |
| 1586 |
475 |
hideSelSequences.setToolTipText( |
| 1587 |
|
MessageManager.getString("label.toggle_sequence_visibility")); |
| 1588 |
475 |
hideSelSequences.addActionListener(new ActionListener() |
| 1589 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1590 |
0 |
@Override... |
| 1591 |
|
public void actionPerformed(ActionEvent e) |
| 1592 |
|
{ |
| 1593 |
0 |
hideSelSequences_actionPerformed(e); |
| 1594 |
|
} |
| 1595 |
|
}); |
| 1596 |
475 |
JMenuItem hideSelColumns = new JMenuItem( |
| 1597 |
|
MessageManager.getString("label.selected_columns")); |
| 1598 |
475 |
hideSelColumns.setToolTipText( |
| 1599 |
|
MessageManager.getString("label.toggle_columns_visibility")); |
| 1600 |
475 |
hideSelColumns.addActionListener(new ActionListener() |
| 1601 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1602 |
0 |
@Override... |
| 1603 |
|
public void actionPerformed(ActionEvent e) |
| 1604 |
|
{ |
| 1605 |
0 |
hideSelColumns_actionPerformed(e); |
| 1606 |
|
} |
| 1607 |
|
}); |
| 1608 |
475 |
JMenuItem hideAllSelection = new JMenuItem( |
| 1609 |
|
MessageManager.getString("label.selected_region")); |
| 1610 |
475 |
hideAllSelection.addActionListener(new ActionListener() |
| 1611 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1612 |
0 |
@Override... |
| 1613 |
|
public void actionPerformed(ActionEvent e) |
| 1614 |
|
{ |
| 1615 |
0 |
hideAllSelection_actionPerformed(e); |
| 1616 |
|
} |
| 1617 |
|
}); |
| 1618 |
|
|
| 1619 |
475 |
JMenuItem hideAllButSelection = new JMenuItem( |
| 1620 |
|
MessageManager.getString("label.all_but_selected_region")); |
| 1621 |
475 |
hideAllButSelection.addActionListener(new ActionListener() |
| 1622 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1623 |
0 |
@Override... |
| 1624 |
|
public void actionPerformed(ActionEvent e) |
| 1625 |
|
{ |
| 1626 |
0 |
hideAllButSelection_actionPerformed(e); |
| 1627 |
|
} |
| 1628 |
|
}); |
| 1629 |
475 |
JMenuItem showAllhidden = new JMenuItem( |
| 1630 |
|
MessageManager.getString("label.all_sequences_columns")); |
| 1631 |
475 |
showAllhidden.setToolTipText(MessageManager |
| 1632 |
|
.getString("label.toggles_visibility_hidden_selected_regions")); |
| 1633 |
475 |
showAllhidden.addActionListener(new ActionListener() |
| 1634 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1635 |
0 |
@Override... |
| 1636 |
|
public void actionPerformed(ActionEvent e) |
| 1637 |
|
{ |
| 1638 |
0 |
showAllhidden_actionPerformed(e); |
| 1639 |
|
} |
| 1640 |
|
}); |
| 1641 |
475 |
hiddenMarkers.setText( |
| 1642 |
|
MessageManager.getString("action.show_hidden_markers")); |
| 1643 |
475 |
hiddenMarkers.addActionListener(new ActionListener() |
| 1644 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1645 |
0 |
@Override... |
| 1646 |
|
public void actionPerformed(ActionEvent e) |
| 1647 |
|
{ |
| 1648 |
0 |
hiddenMarkers_actionPerformed(e); |
| 1649 |
|
} |
| 1650 |
|
}); |
| 1651 |
|
|
| 1652 |
475 |
JMenuItem invertColSel = new JMenuItem( |
| 1653 |
|
MessageManager.getString("action.invert_column_selection")); |
| 1654 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_I, |
| 1655 |
|
jalview.util.ShortcutKeyMaskExWrapper.getMenuShortcutKeyMaskEx() |
| 1656 |
|
| jalview.util.ShortcutKeyMaskExWrapper.ALT_DOWN_MASK, |
| 1657 |
|
false); |
| 1658 |
475 |
al = new ActionListener() |
| 1659 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1660 |
0 |
@Override... |
| 1661 |
|
public void actionPerformed(ActionEvent e) |
| 1662 |
|
{ |
| 1663 |
0 |
invertColSel_actionPerformed(e); |
| 1664 |
|
} |
| 1665 |
|
}; |
| 1666 |
475 |
addMenuActionAndAccelerator(keyStroke, invertColSel, al); |
| 1667 |
|
|
| 1668 |
475 |
showComplementMenuItem.setVisible(false); |
| 1669 |
475 |
showComplementMenuItem.addActionListener(new ActionListener() |
| 1670 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1671 |
0 |
@Override... |
| 1672 |
|
public void actionPerformed(ActionEvent e) |
| 1673 |
|
{ |
| 1674 |
0 |
showComplement_actionPerformed(showComplementMenuItem.getState()); |
| 1675 |
|
} |
| 1676 |
|
}); |
| 1677 |
|
|
| 1678 |
475 |
tabbedPane.addChangeListener(new javax.swing.event.ChangeListener() |
| 1679 |
|
{ |
| |
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
| 1680 |
157 |
@Override... |
| 1681 |
|
public void stateChanged(ChangeEvent evt) |
| 1682 |
|
{ |
| 1683 |
157 |
JTabbedPane pane = (JTabbedPane) evt.getSource(); |
| 1684 |
157 |
int sel = pane.getSelectedIndex(); |
| 1685 |
157 |
tabSelectionChanged(sel); |
| 1686 |
|
} |
| 1687 |
|
}); |
| 1688 |
475 |
tabbedPane.addMouseListener(new MouseAdapter() |
| 1689 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
| 1690 |
0 |
@Override... |
| 1691 |
|
public void mousePressed(MouseEvent e) |
| 1692 |
|
{ |
| 1693 |
0 |
if (e.isPopupTrigger()) |
| 1694 |
|
{ |
| 1695 |
0 |
tabbedPane_mousePressed(e); |
| 1696 |
|
} |
| 1697 |
|
} |
| 1698 |
|
|
| |
|
| 0% |
Uncovered Elements: 4 (4) |
Complexity: 2 |
Complexity Density: 1 |
|
| 1699 |
0 |
@Override... |
| 1700 |
|
public void mouseReleased(MouseEvent e) |
| 1701 |
|
{ |
| 1702 |
0 |
if (e.isPopupTrigger()) |
| 1703 |
|
{ |
| 1704 |
0 |
tabbedPane_mousePressed(e); |
| 1705 |
|
} |
| 1706 |
|
} |
| 1707 |
|
}); |
| 1708 |
475 |
tabbedPane.addFocusListener(new FocusAdapter() |
| 1709 |
|
{ |
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1710 |
61 |
@Override... |
| 1711 |
|
public void focusGained(FocusEvent e) |
| 1712 |
|
{ |
| 1713 |
61 |
tabbedPane_focusGained(e); |
| 1714 |
|
} |
| 1715 |
|
}); |
| 1716 |
|
|
| 1717 |
475 |
JMenuItem save = new JMenuItem(MessageManager.getString("action.save")); |
| 1718 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_S, |
| 1719 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 1720 |
|
.getMenuShortcutKeyMaskEx(), |
| 1721 |
|
false); |
| 1722 |
475 |
al = new ActionListener() |
| 1723 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1724 |
0 |
@Override... |
| 1725 |
|
public void actionPerformed(ActionEvent e) |
| 1726 |
|
{ |
| 1727 |
0 |
save_actionPerformed(e); |
| 1728 |
|
} |
| 1729 |
|
}; |
| 1730 |
475 |
addMenuActionAndAccelerator(keyStroke, save, al); |
| 1731 |
|
|
| 1732 |
475 |
reload.setEnabled(false); |
| 1733 |
475 |
reload.setText(MessageManager.getString("action.reload")); |
| 1734 |
475 |
reload.addActionListener(new ActionListener() |
| 1735 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1736 |
0 |
@Override... |
| 1737 |
|
public void actionPerformed(ActionEvent e) |
| 1738 |
|
{ |
| 1739 |
0 |
reload_actionPerformed(e); |
| 1740 |
|
} |
| 1741 |
|
}); |
| 1742 |
|
|
| 1743 |
475 |
JMenuItem newView = new JMenuItem( |
| 1744 |
|
MessageManager.getString("action.new_view")); |
| 1745 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_T, |
| 1746 |
|
jalview.util.ShortcutKeyMaskExWrapper |
| 1747 |
|
.getMenuShortcutKeyMaskEx(), |
| 1748 |
|
false); |
| 1749 |
475 |
al = new ActionListener() |
| 1750 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1751 |
0 |
@Override... |
| 1752 |
|
public void actionPerformed(ActionEvent e) |
| 1753 |
|
{ |
| 1754 |
0 |
newView_actionPerformed(e); |
| 1755 |
|
} |
| 1756 |
|
}; |
| 1757 |
475 |
addMenuActionAndAccelerator(keyStroke, newView, al); |
| 1758 |
|
|
| 1759 |
475 |
tabbedPane.setToolTipText("<html><i>" |
| 1760 |
|
+ MessageManager.getString("label.rename_tab_eXpand_reGroup") |
| 1761 |
|
+ "</i></html>"); |
| 1762 |
|
|
| 1763 |
475 |
formatMenu.setText(MessageManager.getString("action.format")); |
| 1764 |
475 |
JMenu selectMenu = new JMenu(MessageManager.getString("action.select")); |
| 1765 |
|
|
| 1766 |
475 |
idRightAlign.setText( |
| 1767 |
|
MessageManager.getString("label.right_align_sequence_id")); |
| 1768 |
475 |
idRightAlign.addActionListener(new ActionListener() |
| 1769 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1770 |
0 |
@Override... |
| 1771 |
|
public void actionPerformed(ActionEvent e) |
| 1772 |
|
{ |
| 1773 |
0 |
idRightAlign_actionPerformed(e); |
| 1774 |
|
} |
| 1775 |
|
}); |
| 1776 |
|
|
| 1777 |
475 |
gatherViews.setEnabled(false); |
| 1778 |
475 |
gatherViews.setText(MessageManager.getString("action.gather_views")); |
| 1779 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_G, 0, false); |
| 1780 |
475 |
al = new ActionListener() |
| 1781 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1782 |
0 |
@Override... |
| 1783 |
|
public void actionPerformed(ActionEvent e) |
| 1784 |
|
{ |
| 1785 |
0 |
gatherViews_actionPerformed(e); |
| 1786 |
|
} |
| 1787 |
|
}; |
| 1788 |
475 |
addMenuActionAndAccelerator(keyStroke, gatherViews, al); |
| 1789 |
|
|
| 1790 |
475 |
expandViews.setEnabled(false); |
| 1791 |
475 |
expandViews.setText(MessageManager.getString("action.expand_views")); |
| 1792 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_X, 0, false); |
| 1793 |
475 |
al = new ActionListener() |
| 1794 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1795 |
0 |
@Override... |
| 1796 |
|
public void actionPerformed(ActionEvent e) |
| 1797 |
|
{ |
| 1798 |
0 |
expandViews_actionPerformed(e); |
| 1799 |
|
} |
| 1800 |
|
}; |
| 1801 |
475 |
addMenuActionAndAccelerator(keyStroke, expandViews, al); |
| 1802 |
|
|
| 1803 |
475 |
JMenuItem pageSetup = new JMenuItem( |
| 1804 |
|
MessageManager.getString("action.page_setup")); |
| 1805 |
475 |
pageSetup.addActionListener(new ActionListener() |
| 1806 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1807 |
0 |
@Override... |
| 1808 |
|
public void actionPerformed(ActionEvent e) |
| 1809 |
|
{ |
| 1810 |
0 |
pageSetup_actionPerformed(e); |
| 1811 |
|
} |
| 1812 |
|
}); |
| 1813 |
475 |
JMenuItem alignmentProperties = new JMenuItem( |
| 1814 |
|
MessageManager.getString("label.alignment_props")); |
| 1815 |
475 |
alignmentProperties.addActionListener(new ActionListener() |
| 1816 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1817 |
0 |
@Override... |
| 1818 |
|
public void actionPerformed(ActionEvent actionEvent) |
| 1819 |
|
{ |
| 1820 |
0 |
alignmentProperties(); |
| 1821 |
|
} |
| 1822 |
|
}); |
| 1823 |
475 |
JMenuItem selectHighlighted = new JMenuItem( |
| 1824 |
|
MessageManager.getString("action.select_highlighted_columns")); |
| 1825 |
475 |
selectHighlighted.setToolTipText( |
| 1826 |
|
MessageManager.getString("tooltip.select_highlighted_columns")); |
| 1827 |
475 |
al = new ActionListener() |
| 1828 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1829 |
0 |
@Override... |
| 1830 |
|
public void actionPerformed(ActionEvent actionEvent) |
| 1831 |
|
{ |
| 1832 |
0 |
selectHighlightedColumns_actionPerformed(actionEvent); |
| 1833 |
|
} |
| 1834 |
|
}; |
| 1835 |
475 |
selectHighlighted.addActionListener(al); |
| 1836 |
|
|
| 1837 |
475 |
copyHighlighted = new JMenuItem( |
| 1838 |
|
MessageManager.getString("action.copy_highlighted_regions")); |
| 1839 |
475 |
keyStroke = KeyStroke.getKeyStroke(KeyEvent.VK_C, |
| 1840 |
|
jalview.util.ShortcutKeyMaskExWrapper.getMenuShortcutKeyMaskEx() |
| 1841 |
|
+ jalview.util.ShortcutKeyMaskExWrapper.SHIFT_DOWN_MASK, |
| 1842 |
|
false); |
| 1843 |
475 |
copyHighlighted.setToolTipText( |
| 1844 |
|
MessageManager.getString("tooltip.copy_highlighted_regions")); |
| 1845 |
475 |
al = new ActionListener() |
| 1846 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 1847 |
0 |
@Override... |
| 1848 |
|
public void actionPerformed(ActionEvent actionEvent) |
| 1849 |
|
{ |
| 1850 |
0 |
copyHighlightedColumns_actionPerformed(actionEvent); |
| 1851 |
|
} |
| 1852 |
|
}; |
| 1853 |
475 |
addMenuActionAndAccelerator(keyStroke, copyHighlighted, al); |
| 1854 |
475 |
copyHighlighted.addActionListener(al); |
| 1855 |
|
|
| 1856 |
475 |
ButtonGroup ssButtonGroup = new ButtonGroup(); |
| 1857 |
|
|
| 1858 |
475 |
JMenu tooltipSettingsMenu = new JMenu( |
| 1859 |
|
MessageManager.getString("label.sequence_id_tooltip")); |
| 1860 |
475 |
JMenu autoAnnMenu = new JMenu( |
| 1861 |
|
MessageManager.getString("label.autocalculated_annotation")); |
| 1862 |
|
|
| 1863 |
475 |
JMenu showSS = new JMenu( |
| 1864 |
|
MessageManager.getString("label.show_secondary_structure")); |
| 1865 |
|
|
| 1866 |
475 |
JRadioButtonMenuItem radioButtonAllSS = new JRadioButtonMenuItem( |
| 1867 |
|
MessageManager.getString("option.ss_providers_all")); |
| 1868 |
475 |
radioButtonAllSS.addActionListener(new ActionListener() |
| 1869 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
| 1870 |
0 |
@Override... |
| 1871 |
|
public void actionPerformed(ActionEvent e) |
| 1872 |
|
{ |
| 1873 |
0 |
showOrHideSecondaryStructureForSource( |
| 1874 |
|
MessageManager.getString("option.ss_providers_all"), true); |
| 1875 |
|
|
| 1876 |
0 |
Component[] components = showSS.getMenuComponents(); |
| 1877 |
0 |
for (Component component : components) |
| 1878 |
|
{ |
| 1879 |
0 |
if (component instanceof JCheckBoxMenuItem) |
| 1880 |
|
{ |
| 1881 |
0 |
((JCheckBoxMenuItem) component).setSelected(true); |
| 1882 |
|
} |
| 1883 |
|
} |
| 1884 |
|
} |
| 1885 |
|
}); |
| 1886 |
475 |
ssButtonGroup.add(radioButtonAllSS); |
| 1887 |
475 |
showSS.add(radioButtonAllSS); |
| 1888 |
|
|
| 1889 |
475 |
JRadioButtonMenuItem radioButtonNoneSS = new JRadioButtonMenuItem( |
| 1890 |
|
MessageManager.getString("option.ss_providers_none")); |
| 1891 |
475 |
radioButtonNoneSS.addActionListener(new ActionListener() |
| 1892 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 2 |
Complexity Density: 0.4 |
|
| 1893 |
0 |
@Override... |
| 1894 |
|
public void actionPerformed(ActionEvent e) |
| 1895 |
|
{ |
| 1896 |
0 |
showOrHideSecondaryStructureForSource( |
| 1897 |
|
MessageManager.getString("option.ss_providers_none"), |
| 1898 |
|
false); |
| 1899 |
|
|
| 1900 |
0 |
Component[] components = showSS.getMenuComponents(); |
| 1901 |
0 |
for (Component component : components) |
| 1902 |
|
{ |
| 1903 |
0 |
if (component instanceof JCheckBoxMenuItem) |
| 1904 |
|
{ |
| 1905 |
0 |
((JCheckBoxMenuItem) component).setSelected(false); |
| 1906 |
|
} |
| 1907 |
|
} |
| 1908 |
|
} |
| 1909 |
|
}); |
| 1910 |
475 |
ssButtonGroup.add(radioButtonNoneSS); |
| 1911 |
475 |
showSS.add(radioButtonNoneSS); |
| 1912 |
475 |
showSS.addSeparator(); |
| 1913 |
|
|
| 1914 |
475 |
annotationsMenu.addMenuListener(new MenuListener() |
| 1915 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 1916 |
0 |
@Override... |
| 1917 |
|
public void menuSelected(MenuEvent e) |
| 1918 |
|
{ |
| 1919 |
0 |
updateShowSecondaryStructureMenu(showSS, ssButtonGroup); |
| 1920 |
|
|
| 1921 |
|
|
| 1922 |
0 |
buildSortAnnotationByTreeMenu(); |
| 1923 |
|
} |
| 1924 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 1925 |
0 |
@Override... |
| 1926 |
|
public void menuDeselected(MenuEvent e) |
| 1927 |
|
{ |
| 1928 |
|
|
| 1929 |
|
|
| 1930 |
|
} |
| 1931 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 1932 |
0 |
@Override... |
| 1933 |
|
public void menuCanceled(MenuEvent e) |
| 1934 |
|
{ |
| 1935 |
|
|
| 1936 |
|
|
| 1937 |
|
} |
| 1938 |
|
}); |
| 1939 |
|
|
| 1940 |
475 |
JMenu exportImageMenu = new JMenu( |
| 1941 |
|
MessageManager.getString("label.export_image")); |
| 1942 |
475 |
JMenu fileMenu = new JMenu(MessageManager.getString("action.file")); |
| 1943 |
475 |
alignFrameMenuBar.add(fileMenu); |
| 1944 |
475 |
alignFrameMenuBar.add(editMenu); |
| 1945 |
475 |
alignFrameMenuBar.add(selectMenu); |
| 1946 |
475 |
alignFrameMenuBar.add(viewMenu); |
| 1947 |
475 |
alignFrameMenuBar.add(annotationsMenu); |
| 1948 |
475 |
alignFrameMenuBar.add(formatMenu); |
| 1949 |
475 |
alignFrameMenuBar.add(colourMenu); |
| 1950 |
475 |
alignFrameMenuBar.add(calculateMenu); |
| 1951 |
475 |
if (!Platform.isJS()) |
| 1952 |
|
{ |
| 1953 |
475 |
alignFrameMenuBar.add(webService); |
| 1954 |
|
} |
| 1955 |
|
|
| 1956 |
475 |
fileMenu.add(fetchSequence); |
| 1957 |
475 |
fileMenu.add(addSequenceMenu); |
| 1958 |
475 |
fileMenu.add(reload); |
| 1959 |
475 |
fileMenu.addSeparator(); |
| 1960 |
475 |
fileMenu.add(vamsasStore); |
| 1961 |
475 |
fileMenu.add(save); |
| 1962 |
475 |
fileMenu.add(saveAs); |
| 1963 |
475 |
fileMenu.add(outputTextboxMenu); |
| 1964 |
475 |
fileMenu.add(pageSetup); |
| 1965 |
475 |
fileMenu.add(printMenuItem); |
| 1966 |
475 |
fileMenu.addSeparator(); |
| 1967 |
475 |
fileMenu.add(exportImageMenu); |
| 1968 |
475 |
fileMenu.add(exportFeatures); |
| 1969 |
475 |
fileMenu.add(exportAnnotations); |
| 1970 |
475 |
fileMenu.add(loadTreeMenuItem); |
| 1971 |
475 |
fileMenu.add(associatedData); |
| 1972 |
475 |
if (!Platform.isJS()) |
| 1973 |
|
{ |
| 1974 |
475 |
fileMenu.add(loadVcf); |
| 1975 |
|
} |
| 1976 |
475 |
fileMenu.addSeparator(); |
| 1977 |
475 |
fileMenu.add(closeMenuItem); |
| 1978 |
|
|
| 1979 |
475 |
pasteMenu.add(pasteNew); |
| 1980 |
475 |
pasteMenu.add(pasteThis); |
| 1981 |
475 |
editMenu.add(undoMenuItem); |
| 1982 |
475 |
editMenu.add(redoMenuItem); |
| 1983 |
475 |
editMenu.add(cut); |
| 1984 |
475 |
editMenu.add(copy); |
| 1985 |
475 |
editMenu.add(copyHighlighted); |
| 1986 |
475 |
editMenu.add(pasteMenu); |
| 1987 |
475 |
editMenu.add(delete); |
| 1988 |
475 |
editMenu.addSeparator(); |
| 1989 |
475 |
editMenu.add(remove2LeftMenuItem); |
| 1990 |
475 |
editMenu.add(remove2RightMenuItem); |
| 1991 |
475 |
editMenu.add(removeGappedColumnMenuItem); |
| 1992 |
475 |
editMenu.add(removeAllGapsMenuItem); |
| 1993 |
475 |
editMenu.add(removeRedundancyMenuItem); |
| 1994 |
475 |
editMenu.addSeparator(); |
| 1995 |
|
|
| 1996 |
475 |
editMenu.add(justifyLeftMenuItem); |
| 1997 |
475 |
editMenu.add(justifyRightMenuItem); |
| 1998 |
|
|
| 1999 |
475 |
editMenu.addSeparator(); |
| 2000 |
475 |
editMenu.add(padGapsMenuitem); |
| 2001 |
|
|
| 2002 |
475 |
showMenu.add(showAllColumns); |
| 2003 |
475 |
showMenu.add(showAllSeqs); |
| 2004 |
475 |
showMenu.add(showAllhidden); |
| 2005 |
475 |
hideMenu.add(hideSelColumns); |
| 2006 |
475 |
hideMenu.add(hideSelSequences); |
| 2007 |
475 |
hideMenu.add(hideAllSelection); |
| 2008 |
475 |
hideMenu.add(hideAllButSelection); |
| 2009 |
475 |
viewMenu.add(newView); |
| 2010 |
475 |
viewMenu.add(expandViews); |
| 2011 |
475 |
viewMenu.add(gatherViews); |
| 2012 |
475 |
viewMenu.addSeparator(); |
| 2013 |
475 |
viewMenu.add(showMenu); |
| 2014 |
475 |
viewMenu.add(hideMenu); |
| 2015 |
475 |
viewMenu.add(showComplementMenuItem); |
| 2016 |
475 |
viewMenu.addSeparator(); |
| 2017 |
475 |
viewMenu.add(followHighlightMenuItem); |
| 2018 |
475 |
viewMenu.addSeparator(); |
| 2019 |
475 |
viewMenu.add(showSeqFeatures); |
| 2020 |
|
|
| 2021 |
475 |
viewMenu.add(openFeatureSettings); |
| 2022 |
475 |
tooltipSettingsMenu.add(showDbRefsMenuitem); |
| 2023 |
475 |
tooltipSettingsMenu.add(showNpFeatsMenuitem); |
| 2024 |
475 |
viewMenu.add(tooltipSettingsMenu); |
| 2025 |
475 |
viewMenu.addSeparator(); |
| 2026 |
475 |
viewMenu.add(alignmentProperties); |
| 2027 |
475 |
viewMenu.addSeparator(); |
| 2028 |
475 |
viewMenu.add(overviewMenuItem); |
| 2029 |
|
|
| 2030 |
475 |
annotationsMenu.add(annotationPanelMenuItem); |
| 2031 |
475 |
annotationsMenu.addSeparator(); |
| 2032 |
475 |
annotationsMenu.add(showAllAlAnnotations); |
| 2033 |
475 |
annotationsMenu.add(hideAllAlAnnotations); |
| 2034 |
475 |
annotationsMenu.addSeparator(); |
| 2035 |
475 |
annotationsMenu.add(showAllSeqAnnotations); |
| 2036 |
475 |
annotationsMenu.add(hideAllSeqAnnotations); |
| 2037 |
475 |
annotationsMenu.add(sortAnnBySequence); |
| 2038 |
475 |
annotationsMenu.add(sortAnnByLabel); |
| 2039 |
475 |
annotationsMenu.add(sortAnnotationByTreeMenu); |
| 2040 |
475 |
annotationsMenu.addSeparator(); |
| 2041 |
475 |
annotationsMenu.add(showSS); |
| 2042 |
475 |
annotationsMenu.add(showStrucProvider); |
| 2043 |
475 |
annotationsMenu.addSeparator(); |
| 2044 |
475 |
autoAnnMenu.add(showAutoFirst); |
| 2045 |
475 |
autoAnnMenu.add(showAutoLast); |
| 2046 |
475 |
autoAnnMenu.addSeparator(); |
| 2047 |
475 |
autoAnnMenu.add(applyAutoAnnotationSettings); |
| 2048 |
475 |
autoAnnMenu.add(showConsensusHistogram); |
| 2049 |
475 |
autoAnnMenu.add(showSequenceLogo); |
| 2050 |
475 |
autoAnnMenu.add(normaliseSequenceLogo); |
| 2051 |
|
|
| 2052 |
475 |
autoAnnMenu.addSeparator(); |
| 2053 |
475 |
autoAnnMenu.add(showGroupConservation); |
| 2054 |
475 |
autoAnnMenu.add(showGroupConsensus); |
| 2055 |
475 |
autoAnnMenu.add(showGroupSSConsensus); |
| 2056 |
475 |
annotationsMenu.add(autoAnnMenu); |
| 2057 |
|
|
| 2058 |
475 |
sort.add(sortIDMenuItem); |
| 2059 |
475 |
sort.add(sortDescriptionMenuItem); |
| 2060 |
475 |
sort.add(sortLengthMenuItem); |
| 2061 |
475 |
sort.add(sortGroupMenuItem); |
| 2062 |
475 |
sort.add(sortPairwiseMenuItem); |
| 2063 |
475 |
sort.add(sortByTreeMenu); |
| 2064 |
475 |
calculateMenu.add(sort); |
| 2065 |
475 |
calculateMenu.add(calculateTree); |
| 2066 |
475 |
calculateMenu.addSeparator(); |
| 2067 |
475 |
calculateMenu.add(pairwiseAlignmentMenuItem); |
| 2068 |
475 |
calculateMenu.addSeparator(); |
| 2069 |
475 |
calculateMenu.add(showTranslation); |
| 2070 |
475 |
calculateMenu.add(showReverse); |
| 2071 |
475 |
calculateMenu.add(showReverseComplement); |
| 2072 |
475 |
calculateMenu.add(showProducts); |
| 2073 |
475 |
calculateMenu.add(autoCalculate); |
| 2074 |
475 |
calculateMenu.add(sortByTree); |
| 2075 |
475 |
calculateMenu.addSeparator(); |
| 2076 |
475 |
calculateMenu.add(expandAlignment); |
| 2077 |
475 |
calculateMenu.add(extractScores); |
| 2078 |
475 |
if (!Platform.isJS()) |
| 2079 |
|
{ |
| 2080 |
475 |
calculateMenu.addSeparator(); |
| 2081 |
475 |
calculateMenu.add(runGroovy); |
| 2082 |
|
} |
| 2083 |
|
|
| 2084 |
475 |
webServiceNoServices = new JMenuItem( |
| 2085 |
|
MessageManager.getString("label.no_services")); |
| 2086 |
475 |
webService.add(webServiceNoServices); |
| 2087 |
475 |
if (!Platform.isJS()) |
| 2088 |
|
{ |
| 2089 |
475 |
exportImageMenu.add(htmlMenuItem); |
| 2090 |
|
} |
| 2091 |
475 |
exportImageMenu.add(epsFile); |
| 2092 |
475 |
exportImageMenu.add(createPNG); |
| 2093 |
475 |
if (!Platform.isJS()) |
| 2094 |
|
{ |
| 2095 |
475 |
exportImageMenu.add(createBioJS); |
| 2096 |
475 |
exportImageMenu.add(createSVG); |
| 2097 |
|
} |
| 2098 |
475 |
addSequenceMenu.add(addFromFile); |
| 2099 |
475 |
addSequenceMenu.add(addFromText); |
| 2100 |
475 |
addSequenceMenu.add(addFromURL); |
| 2101 |
475 |
this.getContentPane().add(statusPanel, java.awt.BorderLayout.SOUTH); |
| 2102 |
475 |
statusPanel.add(statusBar, null); |
| 2103 |
475 |
this.getContentPane().add(tabbedPane, java.awt.BorderLayout.CENTER); |
| 2104 |
|
|
| 2105 |
475 |
formatMenu.add(font); |
| 2106 |
475 |
formatMenu.addSeparator(); |
| 2107 |
475 |
formatMenu.add(wrapMenuItem); |
| 2108 |
475 |
formatMenu.add(scaleAbove); |
| 2109 |
475 |
formatMenu.add(scaleLeft); |
| 2110 |
475 |
formatMenu.add(scaleRight); |
| 2111 |
475 |
formatMenu.add(seqLimits); |
| 2112 |
475 |
formatMenu.add(idRightAlign); |
| 2113 |
475 |
formatMenu.add(hiddenMarkers); |
| 2114 |
475 |
formatMenu.add(viewBoxesMenuItem); |
| 2115 |
475 |
formatMenu.add(viewTextMenuItem); |
| 2116 |
475 |
formatMenu.add(colourTextMenuItem); |
| 2117 |
475 |
formatMenu.add(renderGapsMenuItem); |
| 2118 |
475 |
formatMenu.add(centreColumnLabelsMenuItem); |
| 2119 |
475 |
formatMenu.add(showNonconservedMenuItem); |
| 2120 |
475 |
selectMenu.add(findMenuItem); |
| 2121 |
475 |
selectMenu.addSeparator(); |
| 2122 |
475 |
selectMenu.add(selectAllSequenceMenuItem); |
| 2123 |
475 |
selectMenu.add(deselectAllSequenceMenuItem); |
| 2124 |
475 |
selectMenu.add(invertSequenceMenuItem); |
| 2125 |
475 |
selectMenu.add(invertColSel); |
| 2126 |
475 |
selectMenu.add(createGroup); |
| 2127 |
475 |
selectMenu.add(unGroup); |
| 2128 |
475 |
selectMenu.add(grpsFromSelection); |
| 2129 |
475 |
selectMenu.add(deleteGroups); |
| 2130 |
475 |
selectMenu.add(annotationColumn); |
| 2131 |
475 |
selectMenu.add(selectHighlighted); |
| 2132 |
|
|
| 2133 |
|
|
| 2134 |
|
|
| 2135 |
|
|
| 2136 |
|
} |
| 2137 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2138 |
0 |
protected void showStructureProvider_actionPerformed(ActionEvent e)... |
| 2139 |
|
{ |
| 2140 |
|
|
| 2141 |
|
|
| 2142 |
|
} |
| 2143 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2144 |
0 |
protected void showSSConsensus_actionPerformed(ActionEvent e)... |
| 2145 |
|
{ |
| 2146 |
|
|
| 2147 |
|
|
| 2148 |
|
} |
| 2149 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2150 |
0 |
protected void createPNG_actionPerformed(ActionEvent object)... |
| 2151 |
|
{ |
| 2152 |
|
|
| 2153 |
|
|
| 2154 |
|
} |
| 2155 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2156 |
0 |
protected void createEPS_actionPerformed(ActionEvent object)... |
| 2157 |
|
{ |
| 2158 |
|
|
| 2159 |
|
|
| 2160 |
|
} |
| 2161 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2162 |
0 |
protected void createSVG_actionPerformed(ActionEvent object)... |
| 2163 |
|
{ |
| 2164 |
|
|
| 2165 |
|
|
| 2166 |
|
} |
| 2167 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2168 |
0 |
protected void copyHighlightedColumns_actionPerformed(... |
| 2169 |
|
ActionEvent actionEvent) |
| 2170 |
|
{ |
| 2171 |
|
|
| 2172 |
|
} |
| 2173 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2174 |
0 |
protected void loadVcf_actionPerformed()... |
| 2175 |
|
{ |
| 2176 |
|
} |
| 2177 |
|
|
| 2178 |
|
|
| 2179 |
|
|
| 2180 |
|
|
| 2181 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (19) |
Complexity: 1 |
Complexity Density: 0.05 |
|
| 2182 |
475 |
protected void initColourMenu()... |
| 2183 |
|
{ |
| 2184 |
475 |
applyToAllGroups = new JCheckBoxMenuItem( |
| 2185 |
|
MessageManager.getString("label.apply_colour_to_all_groups")); |
| 2186 |
475 |
applyToAllGroups.addActionListener(new ActionListener() |
| 2187 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2188 |
0 |
@Override... |
| 2189 |
|
public void actionPerformed(ActionEvent e) |
| 2190 |
|
{ |
| 2191 |
0 |
applyToAllGroups_actionPerformed(applyToAllGroups.isSelected()); |
| 2192 |
|
} |
| 2193 |
|
}); |
| 2194 |
|
|
| 2195 |
475 |
textColour = new JMenuItem( |
| 2196 |
|
MessageManager.getString("label.text_colour")); |
| 2197 |
475 |
textColour.addActionListener(new ActionListener() |
| 2198 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2199 |
0 |
@Override... |
| 2200 |
|
public void actionPerformed(ActionEvent e) |
| 2201 |
|
{ |
| 2202 |
0 |
textColour_actionPerformed(); |
| 2203 |
|
} |
| 2204 |
|
}); |
| 2205 |
|
|
| 2206 |
475 |
conservationMenuItem = new JCheckBoxMenuItem( |
| 2207 |
|
MessageManager.getString("action.by_conservation")); |
| 2208 |
475 |
conservationMenuItem.addActionListener(new ActionListener() |
| 2209 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2210 |
0 |
@Override... |
| 2211 |
|
public void actionPerformed(ActionEvent e) |
| 2212 |
|
{ |
| 2213 |
0 |
conservationMenuItem_actionPerformed( |
| 2214 |
|
conservationMenuItem.isSelected()); |
| 2215 |
|
} |
| 2216 |
|
}); |
| 2217 |
|
|
| 2218 |
475 |
byConsensusSecondaryStructureMenuItem = new JCheckBoxMenuItem( |
| 2219 |
|
MessageManager.getString( |
| 2220 |
|
"action.by_secondary_structure_conservation")); |
| 2221 |
475 |
byConsensusSecondaryStructureMenuItem |
| 2222 |
|
.addActionListener(new ActionListener() |
| 2223 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2224 |
0 |
@Override... |
| 2225 |
|
public void actionPerformed(ActionEvent e) |
| 2226 |
|
{ |
| 2227 |
0 |
colourByConsensusSecondaryStructureMenuItem_actionPerformed( |
| 2228 |
|
byConsensusSecondaryStructureMenuItem.isSelected()); |
| 2229 |
|
} |
| 2230 |
|
}); |
| 2231 |
|
|
| 2232 |
475 |
abovePIDThreshold = new JCheckBoxMenuItem( |
| 2233 |
|
MessageManager.getString("label.above_identity_threshold")); |
| 2234 |
475 |
abovePIDThreshold.addActionListener(new ActionListener() |
| 2235 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2236 |
0 |
@Override... |
| 2237 |
|
public void actionPerformed(ActionEvent e) |
| 2238 |
|
{ |
| 2239 |
0 |
abovePIDThreshold_actionPerformed(abovePIDThreshold.isSelected()); |
| 2240 |
|
} |
| 2241 |
|
}); |
| 2242 |
475 |
modifyPID = new JMenuItem( |
| 2243 |
|
MessageManager.getString("label.modify_identity_threshold")); |
| 2244 |
475 |
modifyPID.addActionListener(new ActionListener() |
| 2245 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2246 |
0 |
@Override... |
| 2247 |
|
public void actionPerformed(ActionEvent e) |
| 2248 |
|
{ |
| 2249 |
0 |
modifyPID_actionPerformed(); |
| 2250 |
|
} |
| 2251 |
|
}); |
| 2252 |
475 |
modifyConservation = new JMenuItem(MessageManager |
| 2253 |
|
.getString("label.modify_conservation_threshold")); |
| 2254 |
475 |
modifyConservation.addActionListener(new ActionListener() |
| 2255 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2256 |
0 |
@Override... |
| 2257 |
|
public void actionPerformed(ActionEvent e) |
| 2258 |
|
{ |
| 2259 |
0 |
modifyConservation_actionPerformed(); |
| 2260 |
|
} |
| 2261 |
|
}); |
| 2262 |
|
|
| 2263 |
475 |
modifyConsensusSecondaryStructureThreshold = new JMenuItem( |
| 2264 |
|
MessageManager.getString( |
| 2265 |
|
"label.modify_secondary_structure_conservation_threshold")); |
| 2266 |
475 |
modifyConsensusSecondaryStructureThreshold |
| 2267 |
|
.addActionListener(new ActionListener() |
| 2268 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2269 |
0 |
@Override... |
| 2270 |
|
public void actionPerformed(ActionEvent e) |
| 2271 |
|
{ |
| 2272 |
0 |
modifyConsensusSecondaryStructureThreshold_actionPerformed(); |
| 2273 |
|
} |
| 2274 |
|
}); |
| 2275 |
|
|
| 2276 |
475 |
annotationColour = new JRadioButtonMenuItem( |
| 2277 |
|
MessageManager.getString("action.by_annotation")); |
| 2278 |
475 |
annotationColour.setName(ResidueColourScheme.ANNOTATION_COLOUR); |
| 2279 |
475 |
annotationColour.addActionListener(new ActionListener() |
| 2280 |
|
{ |
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2281 |
0 |
@Override... |
| 2282 |
|
public void actionPerformed(ActionEvent e) |
| 2283 |
|
{ |
| 2284 |
0 |
annotationColour_actionPerformed(); |
| 2285 |
|
} |
| 2286 |
|
}); |
| 2287 |
|
} |
| 2288 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2289 |
0 |
protected void selectHighlightedColumns_actionPerformed(... |
| 2290 |
|
ActionEvent actionEvent) |
| 2291 |
|
{ |
| 2292 |
|
|
| 2293 |
|
|
| 2294 |
|
} |
| 2295 |
|
|
| 2296 |
|
|
| 2297 |
|
|
| 2298 |
|
|
| 2299 |
|
|
| 2300 |
|
@param |
| 2301 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2302 |
0 |
protected void showReverse_actionPerformed(boolean complement)... |
| 2303 |
|
{ |
| 2304 |
|
} |
| 2305 |
|
|
| 2306 |
|
|
| 2307 |
|
|
| 2308 |
|
|
| 2309 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2310 |
0 |
protected void runGroovy_actionPerformed()... |
| 2311 |
|
{ |
| 2312 |
|
|
| 2313 |
|
} |
| 2314 |
|
|
| 2315 |
|
|
| 2316 |
|
|
| 2317 |
|
|
| 2318 |
|
|
| 2319 |
|
@param |
| 2320 |
|
@param |
| 2321 |
|
@param |
| 2322 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
| 2323 |
12825 |
protected void addMenuActionAndAccelerator(KeyStroke keyStroke,... |
| 2324 |
|
JMenuItem menuItem, ActionListener actionListener) |
| 2325 |
|
{ |
| 2326 |
12825 |
menuItem.setAccelerator(keyStroke); |
| 2327 |
12825 |
accelerators.put(keyStroke, menuItem); |
| 2328 |
12825 |
menuItem.addActionListener(actionListener); |
| 2329 |
|
} |
| 2330 |
|
|
| 2331 |
|
|
| 2332 |
|
|
| 2333 |
|
|
| 2334 |
|
@param |
| 2335 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2336 |
0 |
protected void sortAnnotations_actionPerformed()... |
| 2337 |
|
{ |
| 2338 |
|
} |
| 2339 |
|
|
| 2340 |
|
|
| 2341 |
|
|
| 2342 |
|
|
| 2343 |
|
@param |
| 2344 |
|
|
| 2345 |
|
@param |
| 2346 |
|
|
| 2347 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2348 |
0 |
protected void showAllAnnotations_actionPerformed(boolean forSequences,... |
| 2349 |
|
boolean forAlignment) |
| 2350 |
|
{ |
| 2351 |
0 |
setAnnotationsVisibility(true, forSequences, forAlignment); |
| 2352 |
|
} |
| 2353 |
|
|
| 2354 |
|
|
| 2355 |
|
|
| 2356 |
|
|
| 2357 |
|
@param |
| 2358 |
|
|
| 2359 |
|
@param |
| 2360 |
|
|
| 2361 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2362 |
0 |
protected void hideAllAnnotations_actionPerformed(boolean forSequences,... |
| 2363 |
|
boolean forAlignment) |
| 2364 |
|
{ |
| 2365 |
0 |
setAnnotationsVisibility(false, forSequences, forAlignment); |
| 2366 |
|
} |
| 2367 |
|
|
| 2368 |
|
|
| 2369 |
|
|
| 2370 |
|
|
| 2371 |
|
|
| 2372 |
|
@param |
| 2373 |
|
@param |
| 2374 |
|
|
| 2375 |
|
@param |
| 2376 |
|
|
| 2377 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2378 |
0 |
public void setAnnotationsVisibility(boolean visible,... |
| 2379 |
|
boolean forSequences, boolean forAlignment) |
| 2380 |
|
{ |
| 2381 |
|
|
| 2382 |
|
} |
| 2383 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2384 |
0 |
protected void normaliseSequenceLogo_actionPerformed(ActionEvent e)... |
| 2385 |
|
{ |
| 2386 |
|
|
| 2387 |
|
|
| 2388 |
|
} |
| 2389 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2390 |
0 |
protected void listenToViewSelections_actionPerformed(ActionEvent e)... |
| 2391 |
|
{ |
| 2392 |
|
|
| 2393 |
|
|
| 2394 |
|
} |
| 2395 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2396 |
0 |
protected void showAllhidden_actionPerformed(ActionEvent e)... |
| 2397 |
|
{ |
| 2398 |
|
|
| 2399 |
|
|
| 2400 |
|
} |
| 2401 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2402 |
0 |
protected void hideAllButSelection_actionPerformed(ActionEvent e)... |
| 2403 |
|
{ |
| 2404 |
|
|
| 2405 |
|
|
| 2406 |
|
} |
| 2407 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2408 |
0 |
protected void hideAllSelection_actionPerformed(ActionEvent e)... |
| 2409 |
|
{ |
| 2410 |
|
|
| 2411 |
|
|
| 2412 |
|
} |
| 2413 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2414 |
0 |
protected void applyAutoAnnotationSettings_actionPerformed(ActionEvent e)... |
| 2415 |
|
{ |
| 2416 |
|
|
| 2417 |
|
|
| 2418 |
|
} |
| 2419 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2420 |
0 |
protected void showConsensusHistogram_actionPerformed(ActionEvent e)... |
| 2421 |
|
{ |
| 2422 |
|
|
| 2423 |
|
|
| 2424 |
|
} |
| 2425 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2426 |
0 |
protected void showSequenceLogo_actionPerformed(ActionEvent e)... |
| 2427 |
|
{ |
| 2428 |
|
|
| 2429 |
|
|
| 2430 |
|
} |
| 2431 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2432 |
0 |
protected void makeGrpsFromSelection_actionPerformed(ActionEvent e)... |
| 2433 |
|
{ |
| 2434 |
|
|
| 2435 |
|
|
| 2436 |
|
} |
| 2437 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2438 |
0 |
protected void showGroupConsensus_actionPerformed(ActionEvent e)... |
| 2439 |
|
{ |
| 2440 |
|
|
| 2441 |
|
|
| 2442 |
|
} |
| 2443 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2444 |
0 |
protected void showGroupSSConsensus_actionPerformed(ActionEvent e)... |
| 2445 |
|
{ |
| 2446 |
|
|
| 2447 |
|
|
| 2448 |
|
} |
| 2449 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2450 |
0 |
protected void showGroupConservation_actionPerformed(ActionEvent e)... |
| 2451 |
|
{ |
| 2452 |
|
|
| 2453 |
|
|
| 2454 |
|
} |
| 2455 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2456 |
0 |
protected void showUnconservedMenuItem_actionPerformed(ActionEvent e)... |
| 2457 |
|
{ |
| 2458 |
|
|
| 2459 |
|
|
| 2460 |
|
} |
| 2461 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2462 |
0 |
protected void justifyRightMenuItem_actionPerformed(ActionEvent e)... |
| 2463 |
|
{ |
| 2464 |
|
|
| 2465 |
|
|
| 2466 |
|
} |
| 2467 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2468 |
0 |
protected void justifyLeftMenuItem_actionPerformed(ActionEvent e)... |
| 2469 |
|
{ |
| 2470 |
|
|
| 2471 |
|
|
| 2472 |
|
} |
| 2473 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2474 |
0 |
protected void followHighlight_actionPerformed()... |
| 2475 |
|
{ |
| 2476 |
|
|
| 2477 |
|
|
| 2478 |
|
} |
| 2479 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2480 |
0 |
protected void showNpFeats_actionPerformed(ActionEvent e)... |
| 2481 |
|
{ |
| 2482 |
|
|
| 2483 |
|
|
| 2484 |
|
} |
| 2485 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2486 |
0 |
protected void showDbRefs_actionPerformed(ActionEvent e)... |
| 2487 |
|
{ |
| 2488 |
|
|
| 2489 |
|
|
| 2490 |
|
} |
| 2491 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2492 |
0 |
protected void centreColumnLabels_actionPerformed(ActionEvent e)... |
| 2493 |
|
{ |
| 2494 |
|
} |
| 2495 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2496 |
0 |
protected void buildSortByAnnotationScoresMenu()... |
| 2497 |
|
{ |
| 2498 |
|
} |
| 2499 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2500 |
0 |
protected void extractScores_actionPerformed(ActionEvent e)... |
| 2501 |
|
{ |
| 2502 |
|
} |
| 2503 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2504 |
0 |
protected void outputText_actionPerformed(String formatName)... |
| 2505 |
|
{ |
| 2506 |
|
} |
| 2507 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2508 |
0 |
public void addFromFile_actionPerformed(ActionEvent e)... |
| 2509 |
|
{ |
| 2510 |
|
|
| 2511 |
|
} |
| 2512 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2513 |
0 |
public void addFromText_actionPerformed(ActionEvent e)... |
| 2514 |
|
{ |
| 2515 |
|
|
| 2516 |
|
} |
| 2517 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2518 |
0 |
public void addFromURL_actionPerformed(ActionEvent e)... |
| 2519 |
|
{ |
| 2520 |
|
|
| 2521 |
|
} |
| 2522 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2523 |
0 |
public void exportFeatures_actionPerformed(ActionEvent e)... |
| 2524 |
|
{ |
| 2525 |
|
|
| 2526 |
|
} |
| 2527 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2528 |
0 |
public void exportAnnotations_actionPerformed(ActionEvent e)... |
| 2529 |
|
{ |
| 2530 |
|
|
| 2531 |
|
} |
| 2532 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2533 |
0 |
protected void htmlMenuItem_actionPerformed(ActionEvent e)... |
| 2534 |
|
{ |
| 2535 |
|
} |
| 2536 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2537 |
0 |
protected void bioJSMenuItem_actionPerformed(ActionEvent e)... |
| 2538 |
|
{ |
| 2539 |
|
|
| 2540 |
|
} |
| 2541 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2542 |
0 |
protected void closeMenuItem_actionPerformed(boolean b)... |
| 2543 |
|
{ |
| 2544 |
|
} |
| 2545 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2546 |
0 |
protected void redoMenuItem_actionPerformed(ActionEvent e)... |
| 2547 |
|
{ |
| 2548 |
|
} |
| 2549 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2550 |
0 |
protected void undoMenuItem_actionPerformed(ActionEvent e)... |
| 2551 |
|
{ |
| 2552 |
|
} |
| 2553 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2554 |
0 |
protected void selectAllSequenceMenuItem_actionPerformed(ActionEvent e)... |
| 2555 |
|
{ |
| 2556 |
|
} |
| 2557 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2558 |
0 |
protected void deselectAllSequenceMenuItem_actionPerformed(ActionEvent e)... |
| 2559 |
|
{ |
| 2560 |
|
} |
| 2561 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2562 |
0 |
protected void invertSequenceMenuItem_actionPerformed(ActionEvent e)... |
| 2563 |
|
{ |
| 2564 |
|
} |
| 2565 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2566 |
0 |
protected void remove2LeftMenuItem_actionPerformed(ActionEvent e)... |
| 2567 |
|
{ |
| 2568 |
|
} |
| 2569 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2570 |
0 |
protected void remove2RightMenuItem_actionPerformed(ActionEvent e)... |
| 2571 |
|
{ |
| 2572 |
|
} |
| 2573 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2574 |
0 |
protected void removeGappedColumnMenuItem_actionPerformed(ActionEvent e)... |
| 2575 |
|
{ |
| 2576 |
|
} |
| 2577 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2578 |
0 |
protected void removeAllGapsMenuItem_actionPerformed(ActionEvent e)... |
| 2579 |
|
{ |
| 2580 |
|
} |
| 2581 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2582 |
0 |
protected void wrapMenuItem_actionPerformed(ActionEvent e)... |
| 2583 |
|
{ |
| 2584 |
|
} |
| 2585 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2586 |
0 |
protected void viewBoxesMenuItem_actionPerformed(ActionEvent e)... |
| 2587 |
|
{ |
| 2588 |
|
} |
| 2589 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2590 |
0 |
protected void viewTextMenuItem_actionPerformed(ActionEvent e)... |
| 2591 |
|
{ |
| 2592 |
|
} |
| 2593 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2594 |
0 |
protected void colourTextMenuItem_actionPerformed(ActionEvent e)... |
| 2595 |
|
{ |
| 2596 |
|
} |
| 2597 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2598 |
0 |
protected void annotationPanelMenuItem_actionPerformed(ActionEvent e)... |
| 2599 |
|
{ |
| 2600 |
|
} |
| 2601 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2602 |
0 |
protected void overviewMenuItem_actionPerformed(ActionEvent e)... |
| 2603 |
|
{ |
| 2604 |
|
} |
| 2605 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2606 |
0 |
protected void sortPairwiseMenuItem_actionPerformed(ActionEvent e)... |
| 2607 |
|
{ |
| 2608 |
|
} |
| 2609 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2610 |
0 |
protected void sortIDMenuItem_actionPerformed(ActionEvent e)... |
| 2611 |
|
{ |
| 2612 |
|
} |
| 2613 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2614 |
0 |
protected void sortDescriptionMenuItem_actionPerformed(ActionEvent e)... |
| 2615 |
|
{ |
| 2616 |
|
} |
| 2617 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2618 |
0 |
protected void sortLengthMenuItem_actionPerformed(ActionEvent e)... |
| 2619 |
|
{ |
| 2620 |
|
} |
| 2621 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2622 |
0 |
protected void sortGroupMenuItem_actionPerformed(ActionEvent e)... |
| 2623 |
|
{ |
| 2624 |
|
} |
| 2625 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2626 |
0 |
protected void removeRedundancyMenuItem_actionPerformed(ActionEvent e)... |
| 2627 |
|
{ |
| 2628 |
|
} |
| 2629 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2630 |
0 |
protected void pairwiseAlignmentMenuItem_actionPerformed(ActionEvent e)... |
| 2631 |
|
{ |
| 2632 |
|
} |
| 2633 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2634 |
0 |
protected void neighbourTreeMenuItem_actionPerformed(ActionEvent e)... |
| 2635 |
|
{ |
| 2636 |
|
} |
| 2637 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2638 |
0 |
protected void conservationMenuItem_actionPerformed(boolean selected)... |
| 2639 |
|
{ |
| 2640 |
|
} |
| 2641 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2642 |
0 |
public void colourByConsensusSecondaryStructureMenuItem_actionPerformed(... |
| 2643 |
|
boolean selected) |
| 2644 |
|
{ |
| 2645 |
|
} |
| 2646 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2647 |
0 |
protected void printMenuItem_actionPerformed(ActionEvent e)... |
| 2648 |
|
{ |
| 2649 |
|
} |
| 2650 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2651 |
0 |
protected void renderGapsMenuItem_actionPerformed(ActionEvent e)... |
| 2652 |
|
{ |
| 2653 |
|
} |
| 2654 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2655 |
0 |
protected void findMenuItem_actionPerformed(ActionEvent e)... |
| 2656 |
|
{ |
| 2657 |
|
} |
| 2658 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2659 |
0 |
protected void abovePIDThreshold_actionPerformed(boolean selected)... |
| 2660 |
|
{ |
| 2661 |
|
} |
| 2662 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2663 |
0 |
public void showSeqFeatures_actionPerformed(ActionEvent actionEvent)... |
| 2664 |
|
{ |
| 2665 |
|
} |
| 2666 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2667 |
0 |
protected void deleteGroups_actionPerformed(ActionEvent e)... |
| 2668 |
|
{ |
| 2669 |
|
} |
| 2670 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2671 |
0 |
protected void createGroup_actionPerformed(ActionEvent e)... |
| 2672 |
|
{ |
| 2673 |
|
} |
| 2674 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2675 |
0 |
protected void unGroup_actionPerformed(ActionEvent e)... |
| 2676 |
|
{ |
| 2677 |
|
} |
| 2678 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2679 |
0 |
protected void copy_actionPerformed()... |
| 2680 |
|
{ |
| 2681 |
|
} |
| 2682 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2683 |
0 |
protected void cut_actionPerformed()... |
| 2684 |
|
{ |
| 2685 |
|
} |
| 2686 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2687 |
0 |
protected void delete_actionPerformed()... |
| 2688 |
|
{ |
| 2689 |
|
} |
| 2690 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2691 |
0 |
protected void pasteNew_actionPerformed(ActionEvent e)... |
| 2692 |
|
{ |
| 2693 |
|
} |
| 2694 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2695 |
0 |
protected void pasteThis_actionPerformed(ActionEvent e)... |
| 2696 |
|
{ |
| 2697 |
|
} |
| 2698 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2699 |
0 |
protected void applyToAllGroups_actionPerformed(boolean selected)... |
| 2700 |
|
{ |
| 2701 |
|
} |
| 2702 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2703 |
0 |
protected void font_actionPerformed(ActionEvent e)... |
| 2704 |
|
{ |
| 2705 |
|
} |
| 2706 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2707 |
0 |
protected void seqLimit_actionPerformed(ActionEvent e)... |
| 2708 |
|
{ |
| 2709 |
|
} |
| 2710 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2711 |
0 |
public void seqDBRef_actionPerformed(ActionEvent e)... |
| 2712 |
|
{ |
| 2713 |
|
|
| 2714 |
|
} |
| 2715 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2716 |
0 |
protected void loadTreeMenuItem_actionPerformed(ActionEvent e)... |
| 2717 |
|
{ |
| 2718 |
|
|
| 2719 |
|
} |
| 2720 |
|
|
| 2721 |
|
|
| 2722 |
|
|
| 2723 |
|
|
| 2724 |
|
|
| 2725 |
|
|
| 2726 |
|
@param |
| 2727 |
|
|
| 2728 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2729 |
0 |
protected void loadScores_actionPerformed(ActionEvent event)... |
| 2730 |
|
{ |
| 2731 |
|
|
| 2732 |
|
} |
| 2733 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2734 |
0 |
protected void scaleAbove_actionPerformed(ActionEvent e)... |
| 2735 |
|
{ |
| 2736 |
|
} |
| 2737 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2738 |
0 |
protected void scaleLeft_actionPerformed(ActionEvent e)... |
| 2739 |
|
{ |
| 2740 |
|
} |
| 2741 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2742 |
0 |
protected void scaleRight_actionPerformed(ActionEvent e)... |
| 2743 |
|
{ |
| 2744 |
|
} |
| 2745 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2746 |
0 |
protected void modifyPID_actionPerformed()... |
| 2747 |
|
{ |
| 2748 |
|
} |
| 2749 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2750 |
0 |
protected void modifyConservation_actionPerformed()... |
| 2751 |
|
{ |
| 2752 |
|
} |
| 2753 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2754 |
0 |
protected void modifyConsensusSecondaryStructureThreshold_actionPerformed()... |
| 2755 |
|
{ |
| 2756 |
|
} |
| 2757 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2758 |
0 |
protected void saveAs_actionPerformed()... |
| 2759 |
|
{ |
| 2760 |
|
} |
| 2761 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2762 |
0 |
protected void padGapsMenuitem_actionPerformed(ActionEvent e)... |
| 2763 |
|
{ |
| 2764 |
|
} |
| 2765 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2766 |
0 |
public void vamsasStore_actionPerformed(ActionEvent e)... |
| 2767 |
|
{ |
| 2768 |
|
|
| 2769 |
|
} |
| 2770 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2771 |
0 |
public void vamsasLoad_actionPerformed(ActionEvent e)... |
| 2772 |
|
{ |
| 2773 |
|
|
| 2774 |
|
} |
| 2775 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2776 |
0 |
public void showTranslation_actionPerformed(GeneticCodeI codeTable)... |
| 2777 |
|
{ |
| 2778 |
|
|
| 2779 |
|
} |
| 2780 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2781 |
0 |
public void featureSettings_actionPerformed(ActionEvent e)... |
| 2782 |
|
{ |
| 2783 |
|
|
| 2784 |
|
} |
| 2785 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2786 |
0 |
public void fetchSequence_actionPerformed()... |
| 2787 |
|
{ |
| 2788 |
|
|
| 2789 |
|
} |
| 2790 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2791 |
0 |
public void smoothFont_actionPerformed(ActionEvent e)... |
| 2792 |
|
{ |
| 2793 |
|
|
| 2794 |
|
} |
| 2795 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2796 |
0 |
public void annotationColour_actionPerformed()... |
| 2797 |
|
{ |
| 2798 |
|
} |
| 2799 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2800 |
0 |
public void annotationColumn_actionPerformed(ActionEvent e)... |
| 2801 |
|
{ |
| 2802 |
|
} |
| 2803 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2804 |
0 |
public void associatedData_actionPerformed(ActionEvent e)... |
| 2805 |
|
{ |
| 2806 |
|
|
| 2807 |
|
} |
| 2808 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2809 |
0 |
public void autoCalculate_actionPerformed(ActionEvent e)... |
| 2810 |
|
{ |
| 2811 |
|
|
| 2812 |
|
} |
| 2813 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2814 |
0 |
public void sortByTreeOption_actionPerformed(ActionEvent e)... |
| 2815 |
|
{ |
| 2816 |
|
|
| 2817 |
|
} |
| 2818 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2819 |
0 |
public void showAllSeqs_actionPerformed(ActionEvent e)... |
| 2820 |
|
{ |
| 2821 |
|
|
| 2822 |
|
} |
| 2823 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2824 |
0 |
public void showAllColumns_actionPerformed(ActionEvent e)... |
| 2825 |
|
{ |
| 2826 |
|
|
| 2827 |
|
} |
| 2828 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2829 |
0 |
public void hideSelSequences_actionPerformed(ActionEvent e)... |
| 2830 |
|
{ |
| 2831 |
|
|
| 2832 |
|
} |
| 2833 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2834 |
0 |
public void hideSelColumns_actionPerformed(ActionEvent e)... |
| 2835 |
|
{ |
| 2836 |
|
|
| 2837 |
|
} |
| 2838 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2839 |
0 |
public void hiddenMarkers_actionPerformed(ActionEvent e)... |
| 2840 |
|
{ |
| 2841 |
|
|
| 2842 |
|
} |
| 2843 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2844 |
0 |
public void findPdbId_actionPerformed(ActionEvent e)... |
| 2845 |
|
{ |
| 2846 |
|
|
| 2847 |
|
} |
| 2848 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2849 |
0 |
public void enterPdbId_actionPerformed(ActionEvent e)... |
| 2850 |
|
{ |
| 2851 |
|
|
| 2852 |
|
} |
| 2853 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2854 |
0 |
public void pdbFile_actionPerformed(ActionEvent e)... |
| 2855 |
|
{ |
| 2856 |
|
|
| 2857 |
|
} |
| 2858 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2859 |
0 |
public void invertColSel_actionPerformed(ActionEvent e)... |
| 2860 |
|
{ |
| 2861 |
|
|
| 2862 |
|
} |
| 2863 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2864 |
0 |
public void tabSelectionChanged(int sel)... |
| 2865 |
|
{ |
| 2866 |
|
|
| 2867 |
|
} |
| 2868 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2869 |
0 |
public void tabbedPane_mousePressed(MouseEvent e)... |
| 2870 |
|
{ |
| 2871 |
|
|
| 2872 |
|
} |
| 2873 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2874 |
61 |
public void tabbedPane_focusGained(FocusEvent e)... |
| 2875 |
|
{ |
| 2876 |
61 |
requestFocus(); |
| 2877 |
|
} |
| 2878 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2879 |
0 |
public void save_actionPerformed(ActionEvent e)... |
| 2880 |
|
{ |
| 2881 |
|
|
| 2882 |
|
} |
| 2883 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2884 |
0 |
public void reload_actionPerformed(ActionEvent e)... |
| 2885 |
|
{ |
| 2886 |
|
|
| 2887 |
|
} |
| 2888 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2889 |
0 |
public void newView_actionPerformed(ActionEvent e)... |
| 2890 |
|
{ |
| 2891 |
|
|
| 2892 |
|
} |
| 2893 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2894 |
0 |
public void textColour_actionPerformed()... |
| 2895 |
|
{ |
| 2896 |
|
|
| 2897 |
|
} |
| 2898 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2899 |
0 |
public void idRightAlign_actionPerformed(ActionEvent e)... |
| 2900 |
|
{ |
| 2901 |
|
|
| 2902 |
|
} |
| 2903 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2904 |
0 |
public void expandViews_actionPerformed(ActionEvent e)... |
| 2905 |
|
{ |
| 2906 |
|
|
| 2907 |
|
} |
| 2908 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2909 |
0 |
public void gatherViews_actionPerformed(ActionEvent e)... |
| 2910 |
|
{ |
| 2911 |
|
|
| 2912 |
|
} |
| 2913 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2914 |
0 |
public void buildTreeSortMenu()... |
| 2915 |
|
{ |
| 2916 |
|
|
| 2917 |
|
} |
| 2918 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2919 |
0 |
public void pageSetup_actionPerformed(ActionEvent e)... |
| 2920 |
|
{ |
| 2921 |
|
|
| 2922 |
|
} |
| 2923 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2924 |
0 |
public void alignmentProperties()... |
| 2925 |
|
{ |
| 2926 |
|
|
| 2927 |
|
} |
| 2928 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2929 |
0 |
protected void expand_newalign(ActionEvent e)... |
| 2930 |
|
{ |
| 2931 |
|
|
| 2932 |
|
|
| 2933 |
|
} |
| 2934 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2935 |
475 |
protected boolean isShowAutoCalculatedAbove()... |
| 2936 |
|
{ |
| 2937 |
475 |
return showAutoCalculatedAbove; |
| 2938 |
|
} |
| 2939 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2940 |
475 |
protected void setShowAutoCalculatedAbove(boolean showAutoCalculatedAbove)... |
| 2941 |
|
{ |
| 2942 |
475 |
this.showAutoCalculatedAbove = showAutoCalculatedAbove; |
| 2943 |
|
} |
| 2944 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2945 |
0 |
protected SequenceAnnotationOrder getAnnotationSortOrder()... |
| 2946 |
|
{ |
| 2947 |
0 |
return annotationSortOrder; |
| 2948 |
|
} |
| 2949 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2950 |
0 |
protected void setAnnotationSortOrder(... |
| 2951 |
|
SequenceAnnotationOrder annotationSortOrder) |
| 2952 |
|
{ |
| 2953 |
0 |
this.annotationSortOrder = annotationSortOrder; |
| 2954 |
|
} |
| 2955 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2956 |
33 |
public Map<KeyStroke, JMenuItem> getAccelerators()... |
| 2957 |
|
{ |
| 2958 |
33 |
return this.accelerators; |
| 2959 |
|
} |
| 2960 |
|
|
| 2961 |
|
|
| 2962 |
|
|
| 2963 |
|
|
| 2964 |
|
|
| 2965 |
|
@return |
| 2966 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2967 |
0 |
public int getTabIndex()... |
| 2968 |
|
{ |
| 2969 |
0 |
return tabbedPane.getSelectedIndex(); |
| 2970 |
|
} |
| 2971 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2972 |
51 |
public JPanel getStatusPanel()... |
| 2973 |
|
{ |
| 2974 |
51 |
return statusPanel; |
| 2975 |
|
} |
| 2976 |
|
|
| 2977 |
|
|
| 2978 |
|
|
| 2979 |
|
|
| 2980 |
|
|
| 2981 |
|
@param |
| 2982 |
|
|
| |
|
| 83.3% |
Uncovered Elements: 1 (6) |
Complexity: 2 |
Complexity Density: 0.5 |
|
| 2983 |
6 |
public void setSplitFrame(SplitContainerI sf)... |
| 2984 |
|
{ |
| 2985 |
6 |
this.splitFrame = sf; |
| 2986 |
6 |
if (sf != null) |
| 2987 |
|
{ |
| 2988 |
6 |
this.showComplementMenuItem.setVisible(true); |
| 2989 |
6 |
this.showComplementMenuItem.setState(true); |
| 2990 |
|
} |
| 2991 |
|
} |
| 2992 |
|
|
| |
|
| 100% |
Uncovered Elements: 0 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 2993 |
3 |
public SplitContainerI getSplitViewContainer()... |
| 2994 |
|
{ |
| 2995 |
3 |
return this.splitFrame; |
| 2996 |
|
} |
| 2997 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 2998 |
0 |
protected void showComplement_actionPerformed(boolean complement)... |
| 2999 |
|
{ |
| 3000 |
|
} |
| 3001 |
|
|
| |
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 3002 |
0 |
protected List<String> updateShowSSRadioButtons()... |
| 3003 |
|
{ |
| 3004 |
|
|
| 3005 |
0 |
return null; |
| 3006 |
|
} |
| 3007 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 3008 |
0 |
protected void showOrHideSecondaryStructureForSource(... |
| 3009 |
|
String ssSourceSelection, boolean visible) |
| 3010 |
|
{ |
| 3011 |
|
|
| 3012 |
|
|
| 3013 |
|
} |
| 3014 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 3015 |
0 |
protected void updateShowSecondaryStructureMenu(JMenu showSS,... |
| 3016 |
|
ButtonGroup ssButtonGroup) |
| 3017 |
|
{ |
| 3018 |
|
|
| 3019 |
|
|
| 3020 |
|
} |
| 3021 |
|
|
| |
|
| - |
Uncovered Elements: 0 (0) |
Complexity: 1 |
Complexity Density: - |
|
| 3022 |
0 |
public void buildSortAnnotationByTreeMenu()... |
| 3023 |
|
{ |
| 3024 |
|
|
| 3025 |
|
|
| 3026 |
|
} |
| 3027 |
|
} |