In this section, you will learn how to load styles into a
StylePool, a runtime cache of objects
that represent the Style elements defined
in your styles.xml file.
Example 5.8.
Loading configured styles into the StylePool
StyleService.loadStylesFromResource(
RESOURCE_PATH + "styles.xml", RepositoryExample.class);
Loading styles into the StylePool is identical to loading
geometries into the GeometryPool. The pools are kept separate
to allow you to mix and match geometries and styles among visual elements.
© 2004, 2005 Tensegrity Software GmbH