jStyleParser is used. New code from tokyo.northside:jstyleparser:4.1.4, source on https://codeberg.org/miurahr/jstyleparser.
static SVGInfo
static SVGInfo
fromDefinition(File file)
static SVGInfo
fromString(String string)
double
getKStringSVG(double cx, double cy)
getKStringSVG(KStringHTMLImageTag source)
double
getWidth()
boolean
void
setScale(int cx, int cy)
void
file
- The file.string
- The string containing the SVG definition.IOException
- For read errors.SAXException
- For SAX parsing errors.def
- The SVG definition.def
- The definition.cx
- The requested width.cy
- The requested height.source
- The source KString tag.cx
- Requested scaled width if larger than zero.cy
- Requested scaled height if larger than zero.null
for failure.