}
-
public ImageMaker(Component parent, TYPE type, String title, int width,
int height, File file, String fileTitle)
{
{
setupPNG(width, height);
}
-
+
} catch (Exception ex)
{
- System.out.println("Error creating "
- + type.getName() + " file.");
+ System.out.println("Error creating " + type.getName() + " file.");
}
}
}
return graphics;
}
-
-
public void writeImage()
{
try
static JalviewFileChooser getPNGChooser()
{
if (Jalview.isHeadlessMode())
- {
+ {
return null;
}
return new jalview.io.JalviewFileChooser(
- jalview.bin.Cache.getProperty("LAST_DIRECTORY"), new String[]
- { "png" }, new String[]
- { "Portable network graphics" }, "Portable network graphics");
+ jalview.bin.Cache.getProperty("LAST_DIRECTORY"),
+ new String[] { "png" },
+ new String[] { "Portable network graphics" },
+ "Portable network graphics");
}
static JalviewFileChooser getEPSChooser()
return null;
}
return new jalview.io.JalviewFileChooser(
- jalview.bin.Cache.getProperty("LAST_DIRECTORY"), new String[]
- { "eps" }, new String[]
- { "Encapsulated Postscript" }, "Encapsulated Postscript");
+ jalview.bin.Cache.getProperty("LAST_DIRECTORY"),
+ new String[] { "eps" },
+ new String[] { "Encapsulated Postscript" },
+ "Encapsulated Postscript");
}
static JalviewFileChooser getSVGChooser()
{
if (Jalview.isHeadlessMode())
- {
+ {
return null;
}
return new jalview.io.JalviewFileChooser(
- jalview.bin.Cache.getProperty("LAST_DIRECTORY"), new String[]
- { "svg" }, new String[]
- { "Scalable Vector Graphics" }, "Scalable Vector Graphics");
+ jalview.bin.Cache.getProperty("LAST_DIRECTORY"),
+ new String[] { "svg" },
+ new String[] { "Scalable Vector Graphics" },
+ "Scalable Vector Graphics");
}
}