org.apache.jmeter.save
Class SaveGraphicsService
public class SaveGraphicsService
Class is responsible for taking a component and saving it as a JPEG, PNG or
TIFF. The class is very simple. Thanks to Batik and the developers who worked
so hard on it.
void | saveJComponent(String filename, int type, JComponent component) - Method will save the JComponent as an image.
|
void | savePNGWithBatik(String filename, BufferedImage image) - Use Batik to save a PNG of the graph
|
void | saveTIFFWithBatik(String filename, BufferedImage image) - Use Batik to save a TIFF file of the graph
|
JPEG_EXTENSION
public static final String JPEG_EXTENSION
PNG
public static final int PNG
PNG_EXTENSION
public static final String PNG_EXTENSION
TIFF
public static final int TIFF
TIFF_EXTENSION
public static final String TIFF_EXTENSION
SaveGraphicsService
public SaveGraphicsService()
saveJComponent
public void saveJComponent(String filename,
int type,
JComponent component)
Method will save the JComponent as an image. The formats are PNG, and
TIFF.
filename
- type
- component
-
savePNGWithBatik
public void savePNGWithBatik(String filename,
BufferedImage image)
Use Batik to save a PNG of the graph
saveTIFFWithBatik
public void saveTIFFWithBatik(String filename,
BufferedImage image)
Use Batik to save a TIFF file of the graph
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.