|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.display.ServerStyleGallery
public class ServerStyleGallery
The Server Style Gallery.
Constructor Summary | |
---|---|
ServerStyleGallery()
Constructs a ServerStyleGallery using ArcGIS Engine. |
|
ServerStyleGallery(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. ServerStyleGallery theServerStyleGallery = (ServerStyleGallery) 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 ServerStyleGallery() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic ServerStyleGallery(Object obj) throws IOException
ServerStyleGallery theServerStyleGallery = (ServerStyleGallery) obj;
obj
to ServerStyleGallery
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public 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 IStyleGallery
IOException
- 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 IStyleGallery
index
- 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 IStyleGallery
className
- 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 IStyleGallery
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.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 IStyleGallery
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.public void updateItem(IStyleGalleryItem item) throws IOException, AutomationException
updateItem
in interface IStyleGallery
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.public void removeItem(IStyleGalleryItem item) throws IOException, AutomationException
removeItem
in interface IStyleGallery
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.public void clear() throws IOException, AutomationException
clear
in interface IStyleGallery
IOException
- 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 IStyleGallery
fileName
- 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 IStyleGallery
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.public void importStyle(String fileName) throws IOException, AutomationException
importStyle
in interface IStyleGallery
fileName
- 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 IStyleGalleryStorage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getFile(int index) throws IOException, AutomationException
getFile
in interface IStyleGalleryStorage
index
- 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 IStyleGalleryStorage
path
- 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 IStyleGalleryStorage
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTargetFile(String path) throws IOException, AutomationException
setTargetFile
in interface IStyleGalleryStorage
path
- 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 IStyleGalleryStorage
path
- 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 IStyleGalleryStorage
path
- 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 IStyleGalleryStorage
IOException
- 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 IPersistStream
IOException
- 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 IPersistStream
pstm
- 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 IPersistStream
pstm
- 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 IPersistStream
pcbSize
- 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 IPersist
pClassID
- 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 Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |