org.jhotdraw.samples.svg.io
Class SVGZInputFormat
- java.lang.Object
-
- org.jhotdraw.samples.svg.io.SVGInputFormat
-
- org.jhotdraw.samples.svg.io.SVGZInputFormat
-
- All Implemented Interfaces:
- InputFormat
public class SVGZInputFormat extends SVGInputFormat
SVGZInputFormat supports reading of uncompressed and compressed SVG images.
-
-
Constructor Summary
Constructors Constructor and Description SVGZInputFormat()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description javax.swing.filechooser.FileFiltergetFileFilter()Return a FileFilter that can be used to identify files which can be read with this input format.voidread(java.io.InputStream in, Drawing drawing, boolean replace)This is the main reading method.-
Methods inherited from class org.jhotdraw.samples.svg.io.SVGInputFormat
getInputFormatAccessory, isDataFlavorSupported, read, read, read, read, read, read, toCommaSeparatedArray, toQuotedAndCommaSeparatedArray, toTransform, toWSOrCommaSeparatedArray
-
-
-
-
Method Detail
-
getFileFilter
public javax.swing.filechooser.FileFilter getFileFilter()
Description copied from interface:InputFormatReturn a FileFilter that can be used to identify files which can be read with this input format. Typically, each input format has its own recognizable file naming convention.- Specified by:
getFileFilterin interfaceInputFormat- Overrides:
getFileFilterin classSVGInputFormat- Returns:
- FileFilter to be used with a javax.swing.JFileChooser
-
read
public void read(java.io.InputStream in, Drawing drawing, boolean replace) throws java.io.IOExceptionDescription copied from class:SVGInputFormatThis is the main reading method.- Specified by:
readin interfaceInputFormat- Overrides:
readin classSVGInputFormat- Parameters:
in- The input stream.drawing- The drawing to which this method adds figures.replace- Whether attributes on the drawing object should by changed by this method. Set this to false, when reading individual images from the clipboard.- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG