JHotDraw 7.5.1

org.jhotdraw.samples.svg.io
Class SVGZOutputFormat

java.lang.Object
  extended by org.jhotdraw.samples.svg.io.SVGOutputFormat
      extended by org.jhotdraw.samples.svg.io.SVGZOutputFormat
All Implemented Interfaces:
OutputFormat

public class SVGZOutputFormat
extends SVGOutputFormat

SVGZOutputFormat.

Version:
$Id: SVGZOutputFormat.java 647 2010-01-24 22:52:59Z rawcoder $
Author:
Werner Randelshofer

Constructor Summary
SVGZOutputFormat()
          Creates a new instance.
 
Method Summary
 java.lang.String getFileExtension()
          Returns the file extension for the output format.
 javax.swing.filechooser.FileFilter getFileFilter()
          Return a FileFilter that can be used to identify files which can be stored with this output format.
 void write(java.io.OutputStream out, Drawing drawing)
          Writes a Drawing into an output stream.
 
Methods inherited from class org.jhotdraw.samples.svg.io.SVGOutputFormat
createCircle, createEllipse, createG, createImage, createLine, createLinearGradient, createPath, createPolygon, createPolyline, createRadialGradient, createRect, createText, createTextArea, createTransferable, getId, getOutputFormatAccessory, isPrettyPrint, setPrettyPrint, toColor, toNumber, toPath, toPoints, toTransform, write, write, write, writeAttribute, writeAttribute, writeAttribute, writeAttribute, writeCircleElement, writeElement, writeEllipseElement, writeGElement, writeImageElement, writeLineElement, writeOpacityAttribute, writePathElement, writePolygonElement, writePolylineElement, writeRectElement, writeShapeAttributes, writeTextAreaElement, writeTextElement, writeTransformAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SVGZOutputFormat

public SVGZOutputFormat()
Creates a new instance.

Method Detail

getFileExtension

public java.lang.String getFileExtension()
Description copied from interface: OutputFormat
Returns the file extension for the output format. The file extension should be appended to a file name when storing a Drawing with the specified file format.

Specified by:
getFileExtension in interface OutputFormat
Overrides:
getFileExtension in class SVGOutputFormat

getFileFilter

public javax.swing.filechooser.FileFilter getFileFilter()
Description copied from interface: OutputFormat
Return a FileFilter that can be used to identify files which can be stored with this output format. Typically, each output format has its own recognizable file extension.

Specified by:
getFileFilter in interface OutputFormat
Overrides:
getFileFilter in class SVGOutputFormat
Returns:
FileFilter to be used with a javax.swing.JFileChooser

write

public void write(java.io.OutputStream out,
                  Drawing drawing)
           throws java.io.IOException
Description copied from interface: OutputFormat
Writes a Drawing into an output stream.

Specified by:
write in interface OutputFormat
Overrides:
write in class SVGOutputFormat
Parameters:
out - The output stream.
drawing - The drawing.
Throws:
java.io.IOException

Copyright 1996-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.