|
Apache JMeter | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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. 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.
Field Summary | |
static String |
JPEG_EXTENSION
|
static int |
PNG
|
static String |
PNG_EXTENSION
|
static int |
TIFF
|
static String |
TIFF_EXTENSION
|
Constructor Summary | |
SaveGraphicsService()
|
Method Summary | |
FileOutputStream |
createFile(File filename)
Create a new file for the graphics. |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PNG
public static final int TIFF
public static final String PNG_EXTENSION
public static final String TIFF_EXTENSION
public static final String JPEG_EXTENSION
Constructor Detail |
public SaveGraphicsService()
Method Detail |
public void saveJComponent(String filename, int type, JComponent component)
filename
- type
- component
- public void savePNGWithBatik(String filename, BufferedImage image)
filename
- image
- public void saveTIFFWithBatik(String filename, BufferedImage image)
filename
- image
- public FileOutputStream createFile(File filename)
filename
-
|
Apache JMeter | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |