|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.arcgis.framework.StyleGallery
public class StyleGallery
The Style Gallery object.
This coclass is a Singleton.
| Constructor Summary | |
|---|---|
StyleGallery()
Constructs a StyleGallery using ArcGIS Engine. |
|
StyleGallery(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. StyleGallery theStyleGallery = (StyleGallery) obj; |
|
| Method Summary | |
|---|---|
void |
addFile(String path)
Adds a file to the Style Gallery. |
void |
addItem(IStyleGalleryItem item)
Adds an item to the target style file. |
void |
clear()
Removes all styles from the Style Gallery. |
boolean |
equals(Object o)
Compare this object with another |
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. |
void |
getClassID(GUID[] pClassID)
getClassID |
static String |
getClsid()
getClsid. |
String |
getDefaultStylePath()
The default file path for searching for standard styles. |
String |
getFile(int index)
The file at the given index. |
int |
getFileCount()
The number of files 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 |
getSizeMax(_ULARGE_INTEGER[] pcbSize)
getSizeMax |
String |
getTargetFile()
The target output file for adding, updating and removing items. |
int |
hashCode()
the hashcode for this object |
void |
importStyle(String fileName)
Imports a style from a file other than a .style file. |
boolean |
isCanUpdate(String path)
Indicates if the specified file can be updated. |
void |
isDirty()
isDirty |
void |
load(IStream pstm)
load |
void |
loadStyle(String fileName,
String className)
Loads a style from a file. |
void |
readExternal(ObjectInput in)
|
void |
removeFile(String path)
Removes a file from the Style Gallery. |
void |
removeItem(IStyleGalleryItem item)
Removes an item from the target style file. |
void |
save(IStream pstm,
int fClearDirty)
save |
void |
saveStyle(String fileName,
String styleSet,
String className)
Saves the specified style to a file. |
void |
setTargetFile(String path)
The target output file for adding, updating and removing items. |
void |
updateItem(IStyleGalleryItem item)
Updates an existing item in target style file. |
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
|---|
getJintegraDispatch, release |
| Constructor Detail |
|---|
public StyleGallery()
throws IOException,
UnknownHostException
IOException - if there are interop problems
UnknownHostException - if there are interop problems
public StyleGallery(Object obj)
throws IOException
StyleGallery theStyleGallery = (StyleGallery) obj;
obj to StyleGallery.
obj - an object returned from ArcGIS Engine or Server
IOException - if there are interop problems| Method Detail |
|---|
public static String getClsid()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
public int getClassCount()
throws IOException,
AutomationException
Returns the number of classes, item types, associated with the current IStyleGallery object.
getClassCount in interface IStyleGalleryIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IStyleGalleryClass esri_getClass(int index)
throws IOException,
AutomationException
esri_getClass in interface IStyleGalleryindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumBSTR getCategories(String className)
throws IOException,
AutomationException
getCategories in interface IStyleGalleryclassName - The className (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public IEnumStyleGalleryItem getItems(String className,
String styleSet,
String category)
throws IOException,
AutomationException
getItems in interface IStyleGalleryclassName - 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.
public void addItem(IStyleGalleryItem item)
throws IOException,
AutomationException
Additem adds the item to it's associated Class folder within the Style Gallery.
addItem in interface IStyleGalleryitem - A reference to a com.esri.arcgis.display.IStyleGalleryItem (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void updateItem(IStyleGalleryItem item)
throws IOException,
AutomationException
updateItem in interface IStyleGalleryitem - A reference to a com.esri.arcgis.display.IStyleGalleryItem (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeItem(IStyleGalleryItem item)
throws IOException,
AutomationException
removeItem in interface IStyleGalleryitem - A reference to a com.esri.arcgis.display.IStyleGalleryItem (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void clear()
throws IOException,
AutomationException
clear in interface IStyleGalleryIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void loadStyle(String fileName,
String className)
throws IOException,
AutomationException
loadStyle in interface IStyleGalleryfileName - The fileName (in)className - The className (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void saveStyle(String fileName,
String styleSet,
String className)
throws IOException,
AutomationException
saveStyle in interface IStyleGalleryfileName - 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.
public void importStyle(String fileName)
throws IOException,
AutomationException
importStyle in interface IStyleGalleryfileName - The fileName (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public int getFileCount()
throws IOException,
AutomationException
getFileCount in interface IStyleGalleryStorageIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getFile(int index)
throws IOException,
AutomationException
getFile in interface IStyleGalleryStorageindex - The index (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isCanUpdate(String path)
throws IOException,
AutomationException
isCanUpdate in interface IStyleGalleryStoragepath - The path (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getTargetFile()
throws IOException,
AutomationException
getTargetFile in interface IStyleGalleryStorageIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTargetFile(String path)
throws IOException,
AutomationException
setTargetFile in interface IStyleGalleryStoragepath - The path (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void addFile(String path)
throws IOException,
AutomationException
addFile in interface IStyleGalleryStoragepath - The path (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void removeFile(String path)
throws IOException,
AutomationException
removeFile in interface IStyleGalleryStoragepath - The path (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getDefaultStylePath()
throws IOException,
AutomationException
getDefaultStylePath in interface IStyleGalleryStorageIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void isDirty()
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
isDirty in interface IPersistStreamIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void load(IStream pstm)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
load in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void save(IStream pstm,
int fClearDirty)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
save in interface IPersistStreampstm - A reference to a com.esri.arcgis.system.IStream (in)fClearDirty - The fClearDirty (in)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getSizeMax(_ULARGE_INTEGER[] pcbSize)
throws IOException,
AutomationException
IPersistStream is a Microsoft interface. Please refer to MSDN for information about this interface.
getSizeMax in interface IPersistStreampcbSize - A Structure: com.esri.arcgis.system._ULARGE_INTEGER (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void getClassID(GUID[] pClassID)
throws IOException,
AutomationException
IPersist is a Microsoft interface. Please refer to MSDN for information about this interface.
getClassID in interface IPersistpClassID - A Structure: com.esri.arcgis.support.ms.stdole.GUID (out: use single element array)
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOException
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||