}
jmb.executeCommand(new StructureCommand(command), false);
jmb.executeCommand(new StructureCommand("set hoverDelay=0.1"), false);
+ jmb.executeCommand(new StructureCommand("set antialiasdisplay on"),
+ false);
jmb.setFinishedInit(true);
}
try
{
makePDBImage(null, type, null,
- BitmapImageSizing.defaultBitmapImageSizing());
+ BitmapImageSizing.defaultBitmapImageSizing(), null);
} catch (ImageOutputException ioex)
{
Console.error("Unexpected error whilst writing " + type.toString(),
}
public void makePDBImage(File file, ImageMaker.TYPE type, String renderer,
- BitmapImageSizing userBis) throws ImageOutputException
+ BitmapImageSizing userBis, List<String> extraCommands)
+ throws ImageOutputException
{
int width = getWidth();
int height = getHeight();
}
}
- jmb.jmolViewer.antialiased = true;
+ String saveStateNameTemp = "JalviewSaveStateTemp";
+ jmb.executeCommand(
+ new StructureCommand("save STATE " + saveStateNameTemp),
+ false);
+
+ if (extraCommands != null)
+ {
+ for (String cmd : extraCommands)
+ {
+ jmb.executeCommand(new StructureCommand(cmd), false);
+ }
+ }
+
jmb.jmolViewer.requestRepaintAndWait("image export");
jmb.jmolViewer.renderScreenImage(ig2, usewidth, useheight);
+ jmb.executeCommand(
+ new StructureCommand("restore STATE " + saveStateNameTemp),
+ false);
}
};
String view = MessageManager.getString("action.view")