カテゴリーは、記号を整理するために使用される論理的な単位です。
カテゴリーは、 IlvPaletteCategory クラスにより定義されます。記号と同様に、カテゴリーも他のサブカテゴリーを含むことができます。
このようにして、記号を論理グループのツリーに整理します。
カテゴリーを記号パレットに追加するには、以下を呼び出します。
//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");