throw new BridgeException
(ctx, element, ErrorConstants.ERR_URI_BAD_TARGET,
new Object[] { uri });
}
SVGOMPathElement pathElt = (SVGOMPathElement) path;
AWTPathProducer app = new AWTPathProducer();
SVGAnimatedPathDataSupport.handlePathSegList
(pathElt.getPathSegList(), app);
return (ExtendedGeneralPath) app.getShape();
}
n = n.getNextSibling();
}
String pathString = element.getAttributeNS(null, SVG_PATH_ATTRIBUTE);
if (pathString.length() == 0) {
return null;
}
try {
AWTPathProducer app = new AWTPathProducer();
PathParser pp = new PathParser();
pp.setPathHandler(app);
pp.parse(pathString);
return (ExtendedGeneralPath) app.getShape();
} catch (ParseException pEx ) {
throw new BridgeException
(ctx, element, pEx, ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED,
new Object[] { SVG_PATH_ATTRIBUTE, pathString });
}