Class PreloaderSVG
java.lang.Object
org.apache.xmlgraphics.image.loader.impl.AbstractImagePreloader
org.apache.fop.image.loader.batik.PreloaderSVG
- All Implemented Interfaces:
org.apache.xmlgraphics.image.loader.spi.ImagePreloader
public class PreloaderSVG
extends org.apache.xmlgraphics.image.loader.impl.AbstractImagePreloader
Image preloader for SVG images.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate final classThis method is put in another class so that the class loader does not attempt to load Batik related classes when constructing the SVGPreloader class. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static org.apache.commons.logging.LogLogger instanceFields inherited from interface org.apache.xmlgraphics.image.loader.spi.ImagePreloader
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the fully qualified classname of an XML parser for Batik classes that apparently need it (error messages, perhaps)org.apache.xmlgraphics.image.loader.ImageInfopreloadImage(String uri, Source src, org.apache.xmlgraphics.image.loader.ImageContext context) private static doublepx2mpt(double px, double resolution) Methods inherited from class org.apache.xmlgraphics.image.loader.impl.AbstractImagePreloader
getHeader, getPriority
-
Field Details
-
log
private static org.apache.commons.logging.Log logLogger instance -
batikAvailable
private boolean batikAvailable
-
-
Constructor Details
-
PreloaderSVG
public PreloaderSVG()
-
-
Method Details
-
preloadImage
public org.apache.xmlgraphics.image.loader.ImageInfo preloadImage(String uri, Source src, org.apache.xmlgraphics.image.loader.ImageContext context) throws IOException - Throws:
IOException
-
getParserName
Returns the fully qualified classname of an XML parser for Batik classes that apparently need it (error messages, perhaps)- Returns:
- an XML parser classname
-
px2mpt
private static double px2mpt(double px, double resolution)
-