Class SVGFileFormat
java.lang.Object
org.eclipse.swt.internal.image.FileFormat
org.eclipse.swt.internal.image.SVGFileFormat
A
FileFormat implementation for handling SVG (Scalable Vector
Graphics) files.
This class detects SVG files based on their header and uses a registered
SVGRasterizer service to rasterize SVG content.
-
Nested Class Summary
Nested classes/interfaces inherited from class FileFormat
FileFormat.StaticImageFileFormat -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final SVGRasterizerThe instance of the registeredSVGRasterizer.Fields inherited from class FileFormat
compression, DEFAULT_ZOOM, inputStream, loader, outputStream -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleanisFileFormat(LEDataInputStream stream) Return whether or not the specified input stream represents a supported file format.(package private) List<DPIUtil.ElementAtZoom<ImageData>> loadFromByteStream(int fileZoom, int targetZoom) Format that do not implementFileFormat.StaticImageFileFormatMUST returnImageDatawith the specifiedtargetZoom.(package private) ImageDataloadFromByteStreamBySize(int width, int height) (package private) voidunloadIntoByteStream(ImageLoader loader) Methods inherited from class FileFormat
canLoadAtZoom, isDynamicallySizableFormat, load, load, loadFromStream, loadFromStreamBySize, save, unloadIntoStream
-
Field Details
-
RASTERIZER
The instance of the registeredSVGRasterizer.
-
-
Constructor Details
-
SVGFileFormat
public SVGFileFormat()
-
-
Method Details
-
isFileFormat
Description copied from class:FileFormatReturn whether or not the specified input stream represents a supported file format.- Specified by:
isFileFormatin classFileFormat- Throws:
IOException
-
loadFromByteStream
Description copied from class:FileFormatFormat that do not implementFileFormat.StaticImageFileFormatMUST returnImageDatawith the specifiedtargetZoom.- Specified by:
loadFromByteStreamin classFileFormat
-
loadFromByteStreamBySize
- Specified by:
loadFromByteStreamBySizein classFileFormat
-
unloadIntoByteStream
- Specified by:
unloadIntoByteStreamin classFileFormat
-