|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.chart.ChartWriter org.ujac.chart.ImageIOChartWriter
public class ImageIOChartWriter
Name: ImageIOChartWriter
Description: A chart writer using the javax.imageio API, introduced with JDK 1.4.
Constructor Summary | |
---|---|
ImageIOChartWriter(float quality)
Constructs a ImageIOChartWriter instance for jpg format with specific attributes. |
|
ImageIOChartWriter(String formatName)
Constructs a ImageIOChartWriter instance with specific attributes. |
|
ImageIOChartWriter(String formatName,
float quality)
Constructs a ImageIOChartWriter instance with specific attributes. |
Method Summary | |
---|---|
String |
getFormatName()
Getter method for the the property formatName. |
float |
getQuality()
Getter method for the the property quality. |
void |
output(Chart chart,
OutputStream os,
int width,
int height)
Renders the chart to the given output stream. |
void |
setFormatName(String formatName)
Setter method for the the property formatName. |
void |
setQuality(float quality)
Setter method for the the property quality. |
Methods inherited from class org.ujac.chart.ChartWriter |
---|
output |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageIOChartWriter(float quality)
quality
- The quality level (0.0 to 1.0).public ImageIOChartWriter(String formatName)
formatName
- The image format name.public ImageIOChartWriter(String formatName, float quality)
formatName
- The image format name.quality
- The quality level (0.0 to 1.0).Method Detail |
---|
public float getQuality()
public void setQuality(float quality)
quality
- The value to set for the property quality.public String getFormatName()
public void setFormatName(String formatName)
formatName
- The value to set for the property formatName.public void output(Chart chart, OutputStream os, int width, int height) throws ChartException, IOException
ChartWriter
output
in class ChartWriter
chart
- The chart to render.os
- The output stream to render to.width
- The width of the output area.height
- The height of the output area.
ChartException
- In case the chart processing failed.
IOException
- In case an I/O problem occurred.ChartWriter.output(org.ujac.chart.Chart, java.io.OutputStream, int, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |