MCPcopy Index your code
hub / github.com/benfry/processing4 / addName

Method addName

core/src/processing/core/PShape.java:2196–2205  ·  view source on GitHub ↗

Add a shape to the name lookup table.

(String nom, PShape shape)

Source from the content-addressed store, hash-verified

2194 * Add a shape to the name lookup table.
2195 */
2196 public void addName(String nom, PShape shape) {
2197 if (parent != null) {
2198 parent.addName(nom, shape);
2199 } else {
2200 if (nameTable == null) {
2201 nameTable = new HashMap<>();
2202 }
2203 nameTable.put(nom, shape);
2204 }
2205 }
2206
2207
2208 /**

Callers 1

addChildMethod · 0.95

Calls 1

putMethod · 0.45

Tested by

no test coverage detected