|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStyleGallery
Provides access to members modify the Style Gallery.
IStyleGallery is used to access styles, add new items with AddItem, remove items with RemoveItem, make updates with UpdateItem and save your changes with SaveStyle. Styles provide storage for your colors, map elements, symbols, and properties of symbols.
Method Summary | |
---|---|
void |
addItem(IStyleGalleryItem item)
Adds an item to the target style file. |
void |
clear()
Removes all styles from the Style Gallery. |
IStyleGalleryClass |
esri_getClass(int index)
The class at the given index. |
IEnumBSTR |
getCategories(String className)
The categories within the given class. |
int |
getClassCount()
Number of classes in the Style Gallery. |
IEnumStyleGalleryItem |
getItems(String className,
String styleSet,
String category)
The style items from the specified style file, in the specified class and category. |
void |
importStyle(String fileName)
Imports a style from a file other than a .style file. |
void |
loadStyle(String fileName,
String className)
Loads a style from a file. |
void |
removeItem(IStyleGalleryItem item)
Removes an item from the target style file. |
void |
saveStyle(String fileName,
String styleSet,
String className)
Saves the specified style to a file. |
void |
updateItem(IStyleGalleryItem item)
Updates an existing item in target style file. |
Method Detail |
---|
int getClassCount() throws IOException, AutomationException
Returns the number of classes, item types, associated with the current IStyleGallery object.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IStyleGalleryClass esri_getClass(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumBSTR getCategories(String className) throws IOException, AutomationException
className
- The className (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnumStyleGalleryItem getItems(String className, String styleSet, String category) throws IOException, AutomationException
className
- The className (in)styleSet
- The styleSet (in)category
- The category (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addItem(IStyleGalleryItem item) throws IOException, AutomationException
Additem adds the item to it's associated Class folder within the Style Gallery.
item
- A reference to a com.esri.arcgis.display.IStyleGalleryItem (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void updateItem(IStyleGalleryItem item) throws IOException, AutomationException
item
- A reference to a com.esri.arcgis.display.IStyleGalleryItem (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void removeItem(IStyleGalleryItem item) throws IOException, AutomationException
item
- A reference to a com.esri.arcgis.display.IStyleGalleryItem (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void clear() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void loadStyle(String fileName, String className) throws IOException, AutomationException
fileName
- The fileName (in)className
- The className (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void saveStyle(String fileName, String styleSet, String className) throws IOException, AutomationException
fileName
- The fileName (in)styleSet
- The styleSet (in)className
- The className (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void importStyle(String fileName) throws IOException, AutomationException
fileName
- The fileName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |