public class ArchaeopteryxFrame
{
- public static void createInstance(Phylogeny aptxTree)
+ public static ArchaeopteryxFrame createInstance(Phylogeny aptxTree)
{
- new ArchaeopteryxFrame(aptxTree);
+ return new ArchaeopteryxFrame(aptxTree);
}
- public static void createInstance(
+ public static ArchaeopteryxFrame createInstance(
TreeBuilder calculatedTree)
{
- new ArchaeopteryxFrame(calculatedTree);
+ return new ArchaeopteryxFrame(calculatedTree);
}
{
ArchaeopteryxTreeBuilder aptxTreeBuilder = new ArchaeopteryxTreeBuilder();
Phylogeny aptxTree = aptxTreeBuilder.buildAptxTree(calculatedTree);
- MainFrame aptxApp = Archaeopteryx.createApplication(aptxTree);
+
+ Phylogeny[] aptxTrees = { aptxTree }; // future possibility to load in
+ // several trees simultaneously
+
+ MainFrame aptxApp = Archaeopteryx.createApplication(aptxTrees,
+ "_aptx_jalview_configuration_file", null);
start(aptxApp);
}
{
int width = 400;
int height = 550;
- aptxApp.setMinimumSize(new Dimension(width - 30, height - 50)); // doesn't
- // work
- // as it
- // gets
- // overridden
- // during
- // addInternalFrame?
-
- Desktop.addInternalFrame(aptxApp, "Archaeopteryx Tree View", width,
- height, true);
+ aptxApp.setMinimumSize(new Dimension(width, height));
+
+ Desktop.addInternalFrame(aptxApp, "Archaeopteryx Tree View", true,
+ width, height, true, true);
}