Package org.apache.jmeter.save
Class SaveGraphicsService
java.lang.Object
org.apache.jmeter.save.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.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidsaveJComponent(String filename, int type, JComponent component) Method will save the JComponent as an image.voidsavePNGWithBatik(String filename, BufferedImage image) Use Batik to save a PNG of the graphvoidsaveTIFFWithBatik(String filename, BufferedImage image) Use Batik to save a TIFF file of the graph
- 
Field Details- 
PNGpublic static final int PNG- See Also:
 
- 
TIFFpublic static final int TIFF- See Also:
 
- 
PNG_EXTENSION- See Also:
 
- 
TIFF_EXTENSION- See Also:
 
- 
JPEG_EXTENSION- See Also:
 
 
- 
- 
Constructor Details- 
SaveGraphicsServicepublic SaveGraphicsService()
 
- 
- 
Method Details- 
saveJComponentMethod will save the JComponent as an image. The formats are PNG, and TIFF.
- 
savePNGWithBatikUse Batik to save a PNG of the graph- Parameters:
- filename- name of the file to store the image into
- image- to be stored
 
- 
saveTIFFWithBatikUse Batik to save a TIFF file of the graph- Parameters:
- filename- name of the file to store the image into
- image- to be stored
 
 
-