Documentation of 'de.erichseifert.gral.io.plots.VectorWriter' Java class
VectorWriter
de.erichseifert.gral.io.plots

Class VectorWriter

  • All Implemented Interfaces:
    DrawableWriter


    public class VectorWriter
    extends IOCapabilitiesStorage
    implements DrawableWriter

    Class that stores Drawable instances as vector graphics. This implementation requires the VectorGraphics2D library to provide support for the following file formats:

    • Encapsulated PostScript (EPS)
    • Portable Document Format (PDF)
    • Scalable Vector Graphics (SVG)

    If the VectorGraphics2D library isn't available the file formats aren't registered in the plug-in system. This class shouldn't be used directly but using the DrawableWriterFactory.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • write

        public void write(Drawable d,
                          java.io.OutputStream destination,
                          double width,
                          double height)
                   throws java.io.IOException
        Stores the specified Drawable instance.
        Specified by:
        write in interface DrawableWriter
        Parameters:
        d - Drawable to be written.
        destination - Stream to write to
        width - Width of the image.
        height - Height of the image.
        Throws:
        java.io.IOException - if writing to stream fails
      • write

        public void write(Drawable d,
                          java.io.OutputStream destination,
                          double x,
                          double y,
                          double width,
                          double height)
                   throws java.io.IOException
        Stores the specified Drawable instance.
        Specified by:
        write in interface DrawableWriter
        Parameters:
        d - Drawable to be written.
        destination - Stream to write to
        x - Horizontal position.
        y - Vertical position.
        width - Width of the image.
        height - Height of the image.
        Throws:
        java.io.IOException - if writing to stream fails
      • getMimeType

        public java.lang.String getMimeType()
        Returns the output format of this writer.
        Specified by:
        getMimeType in interface DrawableWriter
        Returns:
        String representing the MIME-Type.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.