Class SVGHelper
java.lang.Object
slash.navigation.mapview.mapsforge.helpers.SVGHelper
Provides SVG helpers.
- Author:
- Christian Pesch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImagegetResourceBitmap(Reader reader, String name, float scaleFactor, float defaultSize, int width, int height, int percent) static voidremoveDocument(String name) Removes a document from theSVGUniversecache, so that a later load of the same name reads it again.
-
Constructor Details
-
SVGHelper
public SVGHelper()
-
-
Method Details
-
getResourceBitmap
public static BufferedImage getResourceBitmap(Reader reader, String name, float scaleFactor, float defaultSize, int width, int height, int percent) throws IOException - Throws:
IOException
-
removeDocument
Removes a document from theSVGUniversecache, so that a later load of the same name reads it again. A failed load leaves a half loaded document behind - only a SAXParseException removes it - which makes every later load of that name fail, too.
-