.getColourScheme(af);
this.colourAlignFrame(af, imageColour);
+ List<String> extraCommands = new ArrayList<>();
+
+ String bgcolour = avm.getValueFromSubValOrArg(
+ structureImageArgValue, Arg.BGCOLOUR,
+ structureImageSubVals);
+ if (bgcolour != null && bgcolour.length() > 0)
+ {
+ if (bgcolour.charAt(0) == '#')
+ {
+ bgcolour = "[x" + bgcolour.substring(1) + "]";
+ }
+ extraCommands.add("background " + bgcolour);
+ }
+
// TODO MAKE THIS VIEWER INDEPENDENT!!
switch (StructureViewer.getViewerType())
{
Console.debug(
"Rendering image to " + structureImageFile);
jmol.makePDBImage(structureImageFile, imageType,
- renderer, userBis);
+ renderer, userBis, extraCommands);
Console.debug("Finished Rendering image to "
+ structureImageFile);