tp = new TreePanel(alignPanel, type, modelName, options);
- frameTitle = formCalculationTitle(tp.getPanelTitle(),onSelection, viewport.getViewName(),this.title);
+ frameTitle = formCalculationTitle(tp.getPanelTitle(),onSelection,this.title);
Desktop.addInternalFrame(tp, frameTitle, 600, 500);
}
* @param title - alignment frame title
* @return <calculation Name> (?on region) from (?viewName of) alignment name
*/
- private String formCalculationTitle(String panelTitle,
- boolean onSelection, String viewName, String title)
+ public String formCalculationTitle(String panelTitle,
+ boolean onSelection, String title)
{
String frameTitle = panelTitle;
frameTitle += " from ";
- if (viewName!=null)
+ if (viewport.getViewName()!=null)
{
frameTitle += viewport.getViewName() + " of ";
}
@Override
public void run()
{
+ String pairwise_alignment_title = af.formCalculationTitle(
+ MessageManager.getString("action.pairwise_alignment")
+ + " with " + sm.getName(),
+ af.getViewport().getSelectionGroup() != null,
+ af.getTitle());
JInternalFrame frame = new JInternalFrame();
frame.setFrameIcon(null);
frame.setContentPane(
new PairwiseAlignPanel(af.getViewport(), (ScoreMatrix) sm));
- Desktop.addInternalFrame(frame,
- MessageManager.getString("action.pairwise_alignment"), 600,
- 500);
+ Desktop.addInternalFrame(frame, pairwise_alignment_title, 600, 500);
}
}).start();
}
private boolean working;
+ String newPcaTitle = null;
/**
* Constructor given sequence data, a similarity (or distance) score model
* name, and score calculation parameters
.getScoreModel(modelName, ap);
setPcaModel(
new PCAModel(seqstrings, seqs, nucleotide, scoreModel, params));
+
+ newPcaTitle = alignPanel.alignFrame.formCalculationTitle(
+ MessageManager.formatMessage("label.calc_title", "PCA",
+ getPcaModel().getScoreModelName()),
+ selected, ap.alignFrame.getTitle());
+
PaintRefresher.Register(this, av.getSequenceSetId());
setRotatableCanvas(new RotatableCanvas(alignPanel));
repaint();
if (getParent() == null)
{
- Desktop.addInternalFrame(this,
- MessageManager.formatMessage("label.calc_title", "PCA",
- getPcaModel().getScoreModelName()),
+ Desktop.addInternalFrame(this, newPcaTitle,
475, 450);
this.setMinimumSize(new Dimension(MIN_WIDTH, MIN_HEIGHT));
}
private boolean working;
+ private String newPasimapTitle;
+
/**
* Constructor given sequence data, a similarity (or distance) score model
* name, and score calculation parameters
ScoreModelI scoreModel = ScoreModels.getInstance()
.getScoreModel(modelName, ap);
setPasimapModel(new PaSiMapModel(av, seqs, nucleotide, scoreModel));
+
+ newPasimapTitle = alignPanel.alignFrame.formCalculationTitle(
+ MessageManager.formatMessage("label.calc_title", "PaSiMap",
+ scoreModel.getName()),
+ selected, ap.alignFrame.getTitle());
+
PaintRefresher.Register(this, av.getSequenceSetId());
setRotatableCanvas(new RotatableCanvas(alignPanel));
if (!getPasimapModel().isCancelled() && getParent() == null)
{
Desktop.addInternalFrame(this,
- MessageManager.formatMessage("label.calc_title", "PaSiMap",
- ap.alignFrame.getTitle()),
+ newPasimapTitle,
475, 450);
this.setMinimumSize(new Dimension(MIN_WIDTH, MIN_HEIGHT));
}
double totscore)
{
System.out
- .println("Pairwise alignment scaled similarity score matrix"+getPairwiseSimscoresAsString()+"\n");
+ .println("Pairwise alignment scaled similarity score matrix "+getPairwiseSimscoresAsString()+"\n");
for (int i = 0; i < seqs.length; i++)
{