public interface DrawableWriter
Drawable
instances and writing them to an output stream. As an example: a plot
can be saved into a bitmap file.DrawableWriterFactory
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMimeType()
Returns the output format of this writer.
|
void |
write(Drawable d,
java.io.OutputStream destination,
double width,
double height)
Stores the specified
Drawable instance. |
void |
write(Drawable d,
java.io.OutputStream destination,
double x,
double y,
double width,
double height)
Stores the specified
Drawable instance. |
java.lang.String getMimeType()
void write(Drawable d, java.io.OutputStream destination, double width, double height) throws java.io.IOException
Drawable
instance.d
- Drawable
to be written.destination
- Stream to write towidth
- Width of the image.height
- Height of the image.java.io.IOException
- if writing to stream failsvoid write(Drawable d, java.io.OutputStream destination, double x, double y, double width, double height) throws java.io.IOException
Drawable
instance.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.java.io.IOException
- if writing to stream fails