|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.controls.ArcReaderConfiguration
public class ArcReaderConfiguration
ArcReaderConfiguration contains settings affecting the appearance and behaviour of the control.
An ArcReaderConfiguration object is a helper object for customizing the appearance and behavior of the PublisherControls and the built in windows. It consists of many property and value settings that can be stored in a binary template file (.art), known as an ‘ArcReader Template’ on disk. A specific template can be loaded into the ArcReaderControl or ArcReaderGlobeControl to suit a particular user or application. The ArcReaderConfiguration object provides access to properties and methods for updating settings and loading and saving template files.
For a full list of ArcReaderConfiguration settings see IARConfiguration.
Constructor Summary | |
---|---|
ArcReaderConfiguration()
Constructs a ArcReaderConfiguration using ArcGIS Engine. |
|
ArcReaderConfiguration(Object obj)
Construct a ArcReaderConfiguration using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
Object |
getCustomProperty()
A property to associate data with an object. |
Object |
getSetting(String sName)
The configuration setting specified. |
String |
getTemplateFile()
The file name of the configuration file loaded into the control. |
int |
hashCode()
the hashcode for this object |
boolean |
isBoolSetting(String sName)
The configuration setting specified, whose value is a boolean. |
void |
load(String sFilename)
Loads each configuration setting from the specified file into the control. |
void |
save(String sFilename)
Saves each of the control's current configuration settings into the specified file. |
void |
setBoolSetting(String sName,
boolean pVal)
The configuration setting specified, whose value is a boolean. |
void |
setCustomProperty(Object pVal)
A property to associate data with an object. |
void |
setDefaults()
Set each control configuration setting to its default value. |
void |
setSetting(String sName,
Object pVal)
The configuration setting specified. |
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 ArcReaderConfiguration() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic ArcReaderConfiguration(Object obj) throws IOException
obj
to ArcReaderConfiguration
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
ArcReaderConfiguration theArcReaderConfiguration = (ArcReaderConfiguration) obj;
Method Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setDefaults() throws IOException, AutomationException
Sets all the ARConfiguration settings used by the ArcReaderControl to their default values, causing the TemplateFile property to be reset to an empty string.
setDefaults
in interface IARConfiguration
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void load(String sFilename) throws IOException, AutomationException
Loads the specified ARConfiguration binary file into the ArcReaderControl, causing the TemplateFile property to update. If no file extension is specified the file will automatically be given the ArcReader Template extension (*.art).
load
in interface IARConfiguration
sFilename
- The sFilename (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void save(String sFilename) throws IOException, AutomationException
Saves the current ARConfiguration used by the ArcReaderControl to a binary file with the specified filename. If no file extension is specified the file will automatically be given the ArcReader Template extension (*.art).
save
in interface IARConfiguration
sFilename
- The sFilename (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getTemplateFile() throws IOException, AutomationException
Returns the filename of the current ARConfiguration file used by the ArcReaderControl. If the TemplateFile returns an empty string (""), the ArcReaderControl is using the default configuration sttings.
The Load and SetDefaults methods cause the TemplateFile property to change.
getTemplateFile
in interface IARConfiguration
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getSetting(String sName) throws IOException, AutomationException
getSetting
in interface IARConfiguration
sName
- The sName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setSetting(String sName, Object pVal) throws IOException, AutomationException
setSetting
in interface IARConfiguration
sName
- The sName (in)pVal
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isBoolSetting(String sName) throws IOException, AutomationException
isBoolSetting
in interface IARConfiguration
sName
- The sName (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBoolSetting(String sName, boolean pVal) throws IOException, AutomationException
setBoolSetting
in interface IARConfiguration
sName
- The sName (in)pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getCustomProperty() throws IOException, AutomationException
Use the CustomProperty to associate any useful data with the ARConfiguration. This is similar to a 'Tag' property, and can be use to store strings, numbers and objects.
getCustomProperty
in interface IARConfiguration
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCustomProperty(Object pVal) throws IOException, AutomationException
setCustomProperty
in interface IARConfiguration
pVal
- A Variant (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 |