MCPcopy Index your code
hub / github.com/processing/processing / PShapeSVG

Method PShapeSVG

core/src/processing/core/PShapeSVG.java:120–131  ·  view source on GitHub ↗

Initializes a new SVG object from the given XML object.

(XML svg)

Source from the content-addressed store, hash-verified

118 * Initializes a new SVG object from the given XML object.
119 */
120 public PShapeSVG(XML svg) {
121 this(null, svg, true);
122
123 if (!svg.getName().equals("svg")) {
124 if (svg.getName().toLowerCase().equals("html")) {
125 // Common case is that files aren't downloaded properly
126 throw new RuntimeException("This appears to be a web page, not an SVG file.");
127 } else {
128 throw new RuntimeException("The root node is not <svg>, it's <" + svg.getName() + ">");
129 }
130 }
131 }
132
133
134 protected PShapeSVG(PShapeSVG parent, XML properties, boolean parseKids) {

Callers

nothing calls this directly

Calls 15

setParentMethod · 0.95
parseUnitSizeMethod · 0.95
parseFloatMethod · 0.95
splitTokensMethod · 0.95
showWarningMethod · 0.95
sqrtMethod · 0.95
matchMethod · 0.95
unhexMethod · 0.95
parseTransformMethod · 0.95
parseColorsMethod · 0.95
parseChildrenMethod · 0.95
getStringMethod · 0.65

Tested by

no test coverage detected