de.erichseifert.gral.io.plots
Class DrawableWriterFactory
- java.lang.Object
-
- de.erichseifert.gral.io.AbstractIOFactory<DrawableWriter>
-
- de.erichseifert.gral.io.plots.DrawableWriterFactory
-
- All Implemented Interfaces:
- IOFactory<DrawableWriter>
public final class DrawableWriterFactory extends AbstractIOFactory<DrawableWriter>
Class that provides
DrawableWriterimplementations for different file formats.Example Usage:
DrawableWriterFactory factory = DrawableWriterFactory.getInstance(); DrawableWriter writer = factory.get("application/pdf"); writer.write(plot, new FileOutputStream(filename));- See Also:
DrawableWriter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description DrawableWriterget(java.lang.String mimeType)Returns an object for reading or writing the specified format.static DrawableWriterFactorygetInstance()Returns an instance of this DrawableWriterFactory.-
Methods inherited from class de.erichseifert.gral.io.AbstractIOFactory
getCapabilities, getCapabilities, getSupportedFormats, isFormatSupported
-
-
-
-
Method Detail
-
getInstance
public static DrawableWriterFactory getInstance()
Returns an instance of this DrawableWriterFactory.- Returns:
- Instance.
-
get
public DrawableWriter get(java.lang.String mimeType)
Description copied from class:AbstractIOFactoryReturns an object for reading or writing the specified format.- Specified by:
getin interfaceIOFactory<DrawableWriter>- Overrides:
getin classAbstractIOFactory<DrawableWriter>- Parameters:
mimeType- MIME type.- Returns:
- Reader or writer for the specified MIME type.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG