Element Pool

In this section, you will learn how to load elements into an ElementPool, a runtime cache of objects that represent the different visual elements defined in your elements.xml file.

Example 5.11. ElementPool Loading

ElementService.loadElementsFromResource(
    RESOURCE_PATH + "elements.xml", RepositoryExample.class);

Loading elements into the ElementPool is performed via the ElementService class and resembles the manner in which one loads geometries and styles into their respective pools.