/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9.0b2)
- * Copyright (C) 2015 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
* Compute cDNA consensus on protein alignment
*/
protein.initComplementConsensus();
- AlignmentViewPanel ap = topAlignment.isNucleotide() ? bottomFrame.alignPanel
+ AlignmentViewPanel ap = topAlignment.isNucleotide()
+ ? bottomFrame.alignPanel
: topFrame.alignPanel;
protein.updateConsensus(ap);
{
AlignmentViewport cdna = topFrame.getAlignViewport().getAlignment()
.isNucleotide() ? topFrame.viewport : bottomFrame.viewport;
- AlignmentViewport protein = cdna == topFrame.viewport ? bottomFrame.viewport
+ AlignmentViewport protein = cdna == topFrame.viewport
+ ? bottomFrame.viewport
: topFrame.viewport;
/*
if (w1 != w3)
{
Dimension d = topFrame.alignPanel.idPanel.idCanvas.getSize();
- topFrame.alignPanel.idPanel.idCanvas.setSize(new Dimension(w3,
- d.height));
+ topFrame.alignPanel.idPanel.idCanvas
+ .setSize(new Dimension(w3, d.height));
}
if (w2 != w3)
{
Dimension d = bottomFrame.alignPanel.idPanel.idCanvas.getSize();
- bottomFrame.alignPanel.idPanel.idCanvas.setSize(new Dimension(w3,
- d.height));
+ bottomFrame.alignPanel.idPanel.idCanvas
+ .setSize(new Dimension(w3, d.height));
}
/*
private void addAlignFrameComponents(AlignFrame af, Panel panel)
{
panel.setLayout(new BorderLayout());
- Panel menuPanel = af
- .makeEmbeddedPopupMenu(af.getMenuBar(), true, false);
+ Panel menuPanel = af.makeEmbeddedPopupMenu(af.getMenuBar(), true,
+ false);
panel.add(menuPanel, BorderLayout.NORTH);
panel.add(af.statusBar, BorderLayout.SOUTH);
panel.add(af.alignPanel, BorderLayout.CENTER);
createSplitFrameWindow(embedded, applet);
validate();
topFrame.alignPanel.adjustAnnotationHeight();
- topFrame.alignPanel.paintAlignment(true);
+ topFrame.alignPanel.paintAlignment(true, true);
bottomFrame.alignPanel.adjustAnnotationHeight();
- bottomFrame.alignPanel.paintAlignment(true);
+ bottomFrame.alignPanel.paintAlignment(true, true);
}
/**
this.add(outermost);
int width = Math.max(topFrame.frameWidth, bottomFrame.frameWidth);
int height = topFrame.frameHeight + bottomFrame.frameHeight;
- jalview.bin.JalviewLite
- .addFrame(this, this.getTitle(), width, height);
+ jalview.bin.JalviewLite.addFrame(this, this.getTitle(), width,
+ height);
}
}