Categories are the logical units used to
organize symbols.
The category is defined by the IlvPaletteCategory class. As well as
symbols, a category can contain other sub-categories. You thus
organize symbols in a tree of logical groups. You add a category
to a symbol palette by calling:
//Create a new root category String categoryID = "root"; IlvPaletteCategory rootCategory = new IlvPaletteCategory(categoryID); //Add the root category to the palette palette.setRoot(rootCategory); rootCategory.setName(categoryID); //Add a subcategory to the root category IlvPaletteCategory subcategory = palette.addCategory(rootCategory, "subCategory"); subcategory.setName("subcategory");