Add a shape to the name lookup table.
(String nom, PShape shape)
| 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 | /** |