org.jhotdraw.samples.svg.io
Class SVGZOutputFormat
- java.lang.Object
-
- org.jhotdraw.samples.svg.io.SVGOutputFormat
-
- org.jhotdraw.samples.svg.io.SVGZOutputFormat
-
- All Implemented Interfaces:
- OutputFormat
public class SVGZOutputFormat extends SVGOutputFormat
SVGZOutputFormat.
-
-
Constructor Summary
Constructors Constructor and Description SVGZOutputFormat()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetFileExtension()Returns the file extension for the output format.javax.swing.filechooser.FileFiltergetFileFilter()Return a FileFilter that can be used to identify files which can be stored with this output format.voidwrite(java.io.OutputStream out, Drawing drawing)Writes a Drawing into an output stream.-
Methods inherited from class org.jhotdraw.samples.svg.io.SVGOutputFormat
createTransferable, getId, getOutputFormatAccessory, isPrettyPrint, setPrettyPrint, toColor, toNumber, toPath, toPoints, toTransform, write, write, write
-
-
-
-
Method Detail
-
getFileExtension
public java.lang.String getFileExtension()
Description copied from interface:OutputFormatReturns 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:
getFileExtensionin interfaceOutputFormat- Overrides:
getFileExtensionin classSVGOutputFormat
-
getFileFilter
public javax.swing.filechooser.FileFilter getFileFilter()
Description copied from interface:OutputFormatReturn 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:
getFileFilterin interfaceOutputFormat- Overrides:
getFileFilterin classSVGOutputFormat- Returns:
- FileFilter to be used with a javax.swing.JFileChooser
-
write
public void write(java.io.OutputStream out, Drawing drawing) throws java.io.IOExceptionDescription copied from interface:OutputFormatWrites a Drawing into an output stream.- Specified by:
writein interfaceOutputFormat- Overrides:
writein classSVGOutputFormat- Parameters:
out- The output stream.drawing- The drawing.- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG