import jalview.api.AlignViewportI;
import jalview.api.AlignmentViewPanel;
import jalview.api.FeatureSettingsControllerI;
+import jalview.api.FeatureSettingsModelI;
import jalview.api.SplitContainerI;
import jalview.api.ViewStyleI;
import jalview.api.analysis.SimilarityParamsI;
@Override
public void setStatus(String text)
{
- statusBar.setText(text);
+ statusBar.setText(text == null || text.isEmpty() ? " " : text);
}
/*
PrintWriter out = new PrintWriter(
new FileWriter(backupfiles.getTempFilePath()));
- // TESTING code here
- boolean TESTING = true;
- if (TESTING)
- {
- out.print("; TESTSTART\n");
- int count = 20;
- for (int i = 0; i < count; i++)
- {
- // Thread.sleep(1000);
- out.println("; TEST: " + (count - 1 - i));
- }
- }
out.print(output);
- if (TESTING)
- {
- out.print("; TESTEND\n");
- }
out.close();
this.setTitle(file);
statusBar.setText(MessageManager.formatMessage(
}
/**
- * DOCUMENT ME!
+ * Creates and writes a PNG image of the alignment, to the given file if
+ * specified, else after prompting for the output file
*
- * @param e
- * DOCUMENT ME!
+ * @param f
+ * @param forSplitFrame
*/
@Override
- public void createPNG(File f)
+ public void createPNG(File f, boolean forSplitFrame)
{
- alignPanel.makePNG(f);
+ alignPanel.makePNG(f, forSplitFrame);
}
/**
- * DOCUMENT ME!
+ * Creates and writes an EPS image of the alignment, to the given file if
+ * specified, else after prompting for the output file
*
- * @param e
- * DOCUMENT ME!
+ * @param f
+ * @param forSplitFrame
*/
@Override
- public void createEPS(File f)
+ public void createEPS(File f, boolean forSplitFrame)
{
- alignPanel.makeEPS(f);
+ alignPanel.makeEPS(f, forSplitFrame);
}
@Override
- public void createSVG(File f)
+ public void createSVG(File f, boolean forSplitFrame)
{
- alignPanel.makeSVG(f);
+ alignPanel.makeSVG(f, forSplitFrame);
}
@Override
newGraphGroups.add(q, null);
}
newGraphGroups.set(newann.graphGroup,
- new Integer(++fgroup));
+ Integer.valueOf(++fgroup));
}
newann.graphGroup = newGraphGroups.get(newann.graphGroup)
.intValue();
newGraphGroups.add(q, null);
}
newGraphGroups.set(newann.graphGroup,
- new Integer(++fgroup));
+ Integer.valueOf(++fgroup));
}
newann.graphGroup = newGraphGroups.get(newann.graphGroup)
.intValue();
protected void scaleAbove_actionPerformed(ActionEvent e)
{
viewport.setScaleAboveWrapped(scaleAbove.isSelected());
- // TODO: do we actually need to update overview for scale above change ?
+ alignPanel.updateLayout();
alignPanel.paintAlignment(true, false);
}
protected void scaleLeft_actionPerformed(ActionEvent e)
{
viewport.setScaleLeftWrapped(scaleLeft.isSelected());
+ alignPanel.updateLayout();
alignPanel.paintAlignment(true, false);
}
protected void scaleRight_actionPerformed(ActionEvent e)
{
viewport.setScaleRightWrapped(scaleRight.isSelected());
+ alignPanel.updateLayout();
alignPanel.paintAlignment(true, false);
}
@Override
public void finished()
{
+
+ for (FeatureSettingsModelI srcSettings : dbRefFetcher
+ .getFeatureSettingsModels())
+ {
+
+ alignPanel.av.mergeFeaturesStyle(srcSettings);
+ }
AlignFrame.this.setMenusForViewport();
}
});
@Override
public void finished()
{
+ FeatureSettingsModelI srcSettings = dassource[0]
+ .getFeatureColourScheme();
+ alignPanel.av.mergeFeaturesStyle(
+ srcSettings);
AlignFrame.this.setMenusForViewport();
}
});