|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.sprig.jfree.encode.JFreeEncoder
public abstract class JFreeEncoder
A JFreeReport compatible encoder.
Constructor Summary | |
---|---|
JFreeEncoder()
Constructs a new exporter. |
Method Summary | |
---|---|
byte[] |
encode(ChartLayout layout)
Encodes the specified layout as a byte buffer. |
protected BufferedImage |
getImage(ChartLayout layout)
Gets the image. |
protected abstract String |
getImageFormat()
Gets the image format of this encoder. |
protected ChartRenderingInfo |
getInfo()
Gets the rendering info. |
int |
getQuality()
Gets the image quality. |
boolean |
isEncodeAlpha()
Checks the encode alpha visibity option. |
void |
setEncodeAlpha(boolean flag)
Sets the encode alpha visibity option. |
protected void |
setInfo(ChartRenderingInfo info)
Sets the rendering info. |
void |
setQuality(int q)
Sets the image quality. |
void |
write(ChartLayout layout,
File file)
Writes the specified layout to a file. |
void |
write(ChartLayout layout,
OutputStream output)
Writes the specified layout to a stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JFreeEncoder()
Method Detail |
---|
public boolean isEncodeAlpha()
Encoder
isEncodeAlpha
in interface Encoder
public void setEncodeAlpha(boolean flag)
Encoder
setEncodeAlpha
in interface Encoder
flag
- true to encode alpha visibity, false otherwise.public int getQuality()
Encoder
getQuality
in interface Encoder
public void setQuality(int q)
Encoder
setQuality
in interface Encoder
q
- the quality (0 - 100 %).public byte[] encode(ChartLayout layout) throws LogException
Encoder
encode
in interface Encoder
layout
- the chart layout.
LogException
- on errors.public void write(ChartLayout layout, File file) throws LogException
Encoder
write
in interface Encoder
layout
- the chart layout.file
- the output file.
LogException
- on errors.public void write(ChartLayout layout, OutputStream output) throws LogException
Encoder
write
in interface Encoder
layout
- the chart layout.output
- the output stream.
LogException
- on errors.protected BufferedImage getImage(ChartLayout layout)
layout
- the layout.
protected ChartRenderingInfo getInfo()
protected void setInfo(ChartRenderingInfo info)
info
- the info.protected abstract String getImageFormat()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |