|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.erichseifert.gral.io.IOCapabilitiesStorage
de.erichseifert.gral.io.plots.BitmapWriter
public class BitmapWriter
Class that stores Drawable
instances as bitmap graphics.
Supported formats:
Method Summary | |
---|---|
String |
getMimeType()
Returns the output format of this writer. |
void |
write(Drawable d,
OutputStream destination,
double width,
double height)
Stores the specified Drawable instance. |
void |
write(Drawable d,
OutputStream destination,
double x,
double y,
double width,
double height)
Stores the specified Drawable instance. |
Methods inherited from class de.erichseifert.gral.io.IOCapabilitiesStorage |
---|
getCapabilities |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void write(Drawable d, OutputStream destination, double width, double height) throws IOException
DrawableWriter
Drawable
instance.
write
in interface DrawableWriter
d
- Drawable
to be written.destination
- Stream to write towidth
- Width of the image.height
- Height of the image.
IOException
- if writing to stream failspublic void write(Drawable d, OutputStream destination, double x, double y, double width, double height) throws IOException
DrawableWriter
Drawable
instance.
write
in interface DrawableWriter
d
- Drawable
to be written.destination
- Stream to write tox
- Horizontal position.y
- Vertical position.width
- Width of the image.height
- Height of the image.
IOException
- if writing to stream failspublic String getMimeType()
DrawableWriter
getMimeType
in interface DrawableWriter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |