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

Method addName

core/src/processing/core/PShape.java:2104–2113  ·  view source on GitHub ↗

Add a shape to the name lookup table.

(String nom, PShape shape)

Source from the content-addressed store, hash-verified

2102 * Add a shape to the name lookup table.
2103 */
2104 public void addName(String nom, PShape shape) {
2105 if (parent != null) {
2106 parent.addName(nom, shape);
2107 } else {
2108 if (nameTable == null) {
2109 nameTable = new HashMap<>();
2110 }
2111 nameTable.put(nom, shape);
2112 }
2113 }
2114
2115
2116 /**

Callers 1

addChildMethod · 0.95

Calls 1

putMethod · 0.45

Tested by

no test coverage detected