|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeakml.graphics.JFreeChartTools
public class JFreeChartTools
This class offers an interface for dealing with JFreeChart graphs. Most notably methods are provided for exporting the graphs to files.
Field Summary | |
---|---|
static int |
PDF
Write in the PDF format, which has the graphics in vector format. |
static int |
PNG
Write in the PNG format, which is pixel-based but readable anywhere. |
Constructor Summary | |
---|---|
JFreeChartTools()
|
Method Summary | |
---|---|
static void |
writeAs(int filetype,
java.io.OutputStream out,
org.jfree.chart.JFreeChart chart,
int width,
int height)
General access method, which can be plugged with the filetype to write to. |
static void |
writeAsPDF(java.io.OutputStream out,
org.jfree.chart.JFreeChart chart,
int width,
int height)
This method writes the given graph to the output stream in the PDF format. |
static void |
writeAsPNG(java.io.OutputStream out,
org.jfree.chart.JFreeChart chart,
int width,
int height)
This method writes the given graph to the output stream in the PNG format. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PDF
public static final int PNG
Constructor Detail |
---|
public JFreeChartTools()
Method Detail |
---|
public static void writeAs(int filetype, java.io.OutputStream out, org.jfree.chart.JFreeChart chart, int width, int height) throws java.io.IOException
writeAsPDF(OutputStream, JFreeChart, int, int)
and writeAsPNG(OutputStream, JFreeChart, int, int)
.
filetype
- The type of file to write.out
- The output stream to write to.chart
- The chart to be written.width
- The width of the image.height
- The height of the image.
java.io.IOException
- Thrown when an error occurs with the IO.public static void writeAsPDF(java.io.OutputStream out, org.jfree.chart.JFreeChart chart, int width, int height) throws java.io.IOException
out
- The output stream to write to.chart
- The chart to be written.width
- The width of the image.height
- The height of the image.
java.io.IOException
- Thrown when an error occurs with the IO.public static void writeAsPNG(java.io.OutputStream out, org.jfree.chart.JFreeChart chart, int width, int height) throws java.io.IOException
out
- The output stream to write to.chart
- The chart to be written.width
- The width of the image.height
- The height of the image.
java.io.IOException
- Thrown when an error occurs with the IO.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |