|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Encoder
An interface to chart encoders.
| Method Summary | |
|---|---|
byte[] |
encode(ChartLayout layout)
Encodes the specified layout as a byte buffer. |
int |
getQuality()
Gets the image quality. |
boolean |
isEncodeAlpha()
Checks the encode alpha visibity option. |
void |
setEncodeAlpha(boolean flag)
Sets the encode alpha visibity option. |
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. |
| Method Detail |
|---|
boolean isEncodeAlpha()
void setEncodeAlpha(boolean flag)
flag - true to encode alpha visibity, false otherwise.int getQuality()
void setQuality(int q)
q - the quality (0 - 100 %).
byte[] encode(ChartLayout layout)
throws LogException
layout - the chart layout.
LogException - on errors.
void write(ChartLayout layout,
File file)
throws LogException
layout - the chart layout.file - the output file.
LogException - on errors.
void write(ChartLayout layout,
OutputStream output)
throws LogException
layout - the chart layout.output - the output stream.
LogException - on errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||