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