| java.lang.Object org.apache.jmeter.save.SaveGraphicsService
SaveGraphicsService | public class SaveGraphicsService (Code) | | 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. The original implementation I used JAI, which allows
redistribution but requires indemnification. Luckily Batik has an alternative
to JAI. Hurray for Apache projects. I don't see any noticeable differences
between Batik and JAI.
|
JPEG_EXTENSION | final public static String JPEG_EXTENSION(Code) | | |
PNG | final public static int PNG(Code) | | |
TIFF | final public static int TIFF(Code) | | |
TIFF_EXTENSION | final public static String TIFF_EXTENSION(Code) | | |
SaveGraphicsService | public SaveGraphicsService()(Code) | | |
createFile | public FileOutputStream createFile(File filename)(Code) | | Create a new file for the graphics. Since the method creates a new file,
we shouldn't get a FNFE.
Parameters: filename - output stream created from the filename |
saveJComponent | public void saveJComponent(String filename, int type, JComponent component)(Code) | | Method will save the JComponent as an image. The formats are PNG, and
TIFF.
Parameters: filename - Parameters: type - Parameters: component - |
savePNGWithBatik | public void savePNGWithBatik(String filename, BufferedImage image)(Code) | | Use Batik to save a PNG of the graph
Parameters: filename - Parameters: image - |
saveTIFFWithBatik | public void saveTIFFWithBatik(String filename, BufferedImage image)(Code) | | Use Batik to save a TIFF file of the graph
Parameters: filename - Parameters: image - |
|
|