de.erichseifert.gral.io.plots
Class VectorWriter

java.lang.Object
  extended by de.erichseifert.gral.io.IOCapabilitiesStorage
      extended by de.erichseifert.gral.io.plots.VectorWriter
All Implemented Interfaces:
DrawableWriter

public class VectorWriter
extends IOCapabilitiesStorage
implements DrawableWriter

Class that stores Drawable instances as vector 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

write

public void write(Drawable d,
                  OutputStream destination,
                  double width,
                  double height)
           throws IOException
Description copied from interface: DrawableWriter
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:
IOException - if writing to stream fails

write

public void write(Drawable d,
                  OutputStream destination,
                  double x,
                  double y,
                  double width,
                  double height)
           throws IOException
Description copied from interface: DrawableWriter
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:
IOException - if writing to stream fails

getMimeType

public String getMimeType()
Description copied from interface: DrawableWriter
Returns the output format of this writer.

Specified by:
getMimeType in interface DrawableWriter
Returns:
String representing the MIME-Type.


Copyright © 2009-2010. All Rights Reserved.