jas.io
Class ImageGenerator
java.lang.Object
jas.io.ImageGenerator
public class ImageGenerator
- extends java.lang.Object
Method Summary |
static java.lang.String |
generate(javax.swing.JFrame frame)
|
static java.lang.String |
generate(javax.swing.JPanel panel)
|
static javax.swing.JMenu |
getExportMenu(javax.swing.JPanel panel)
|
static java.lang.String |
getOutput(org.apache.batik.svggen.SVGGraphics2D generator)
|
static org.apache.batik.svggen.SVGGraphics2D |
getSVGDocument()
|
static void |
save(javax.swing.JFrame frame,
java.lang.String fileName)
|
static void |
save(javax.swing.JPanel panel,
java.lang.String fileName)
|
static void |
save(org.apache.batik.svggen.SVGGraphics2D generator,
java.lang.String fileName)
|
static java.io.File |
saveDialog(java.lang.String format)
|
static void |
saveImage(javax.swing.JPanel panel,
java.lang.String fileName,
java.lang.String format)
|
static java.lang.String[] |
supportedFormats()
|
static java.awt.image.BufferedImage |
toImage(javax.swing.JPanel panel)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageGenerator
public ImageGenerator()
generate
public static java.lang.String generate(javax.swing.JFrame frame)
generate
public static java.lang.String generate(javax.swing.JPanel panel)
getExportMenu
public static javax.swing.JMenu getExportMenu(javax.swing.JPanel panel)
getOutput
public static java.lang.String getOutput(org.apache.batik.svggen.SVGGraphics2D generator)
getSVGDocument
public static org.apache.batik.svggen.SVGGraphics2D getSVGDocument()
save
public static void save(javax.swing.JFrame frame,
java.lang.String fileName)
save
public static void save(javax.swing.JPanel panel,
java.lang.String fileName)
save
public static void save(org.apache.batik.svggen.SVGGraphics2D generator,
java.lang.String fileName)
saveDialog
public static java.io.File saveDialog(java.lang.String format)
saveImage
public static void saveImage(javax.swing.JPanel panel,
java.lang.String fileName,
java.lang.String format)
supportedFormats
public static java.lang.String[] supportedFormats()
toImage
public static java.awt.image.BufferedImage toImage(javax.swing.JPanel panel)