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

Method getChild

core/src/processing/core/PShapeSVG.java:1979–1995  ·  view source on GitHub ↗

Get a particular element based on its SVG ID. When editing SVG by hand, this is the id="" tag on any SVG element. When editing from Illustrator, these IDs can be edited by expanding the layers palette. The names used in the layers palette, both for the layers or the shapes and groups beneath them ca

(String name)

Source from the content-addressed store, hash-verified

1977 * </PRE>
1978 */
1979 @Override
1980 public PShape getChild(String name) {
1981 PShape found = super.getChild(name);
1982 if (found == null) {
1983 // Otherwise try with underscores instead of spaces
1984 // (this is how Illustrator handles spaces in the layer names).
1985 found = super.getChild(name.replace(' ', '_'));
1986 }
1987 // Set bounding box based on the parent bounding box
1988 if (found != null) {
1989// found.x = this.x;
1990// found.y = this.y;
1991 found.width = this.width;
1992 found.height = this.height;
1993 }
1994 return found;
1995 }
1996
1997
1998 /**

Callers

nothing calls this directly

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected