de.erichseifert.gral.io.plots
Interface DrawableWriter
-
- All Known Implementing Classes:
- BitmapWriter, VectorWriter
public interface DrawableWriterInterface providing functions for renderingDrawableinstances and writing them to an output stream. As an example: a plot can be saved into a bitmap file.- See Also:
DrawableWriterFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.StringgetMimeType()Returns the output format of this writer.voidwrite(Drawable d, java.io.OutputStream destination, double width, double height)Stores the specifiedDrawableinstance.voidwrite(Drawable d, java.io.OutputStream destination, double x, double y, double width, double height)Stores the specifiedDrawableinstance.
-
-
-
Method Detail
-
getMimeType
java.lang.String getMimeType()
Returns the output format of this writer.- Returns:
- String representing the MIME-Type.
-
write
void write(Drawable d, java.io.OutputStream destination, double width, double height) throws java.io.IOException
Stores the specifiedDrawableinstance.- Parameters:
d-Drawableto be written.destination- Stream to write towidth- Width of the image.height- Height of the image.- Throws:
java.io.IOException- if writing to stream fails
-
write
void write(Drawable d, java.io.OutputStream destination, double x, double y, double width, double height) throws java.io.IOException
Stores the specifiedDrawableinstance.- Parameters:
d-Drawableto be written.destination- Stream to write tox- Horizontal position.y- Vertical position.width- Width of the image.height- Height of the image.- Throws:
java.io.IOException- if writing to stream fails
-
-
DataMelt 3.0 © DataMelt by jWork.ORG