|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IKmlLayer
Provides information about a KML Layer.
Method Summary | |
---|---|
String |
getDataPath()
Full pathname of the KML data. |
int |
getMaximumRefreshInterval()
Maximun Refresh interval in seconds. |
int |
getMinimumRefreshInterval()
Minimun Refresh interval in seconds. |
boolean |
isLabelsVisible()
Labels are Visible. |
void |
refreshVisibleNodes(IGlobe pGlobe)
Refresh Visible Nodes. |
void |
setDataPath(String dataPath)
Full pathname of the KML data. |
void |
setGlobeContainedDataPath(String dataPath,
IGlobe rhs2)
Full pathname of the KML data within a contained part of Globe. |
void |
setLabelsVisible(boolean pLabelsVisible)
Labels are Visible. |
Methods inherited from interface com.esri.arcgis.carto.ILayer |
---|
draw, getAreaOfInterest, getMaximumScale, getMinimumScale, getName, getSupportedDrawPhases, getTipText, isCached, isShowTips, isValid, isVisible, setCached, setMaximumScale, setMinimumScale, setName, setShowTips, setSpatialReferenceByRef, setVisible |
Method Detail |
---|
void setDataPath(String dataPath) throws IOException, AutomationException
To set the DataPath pass in the UNC or local path of your KML file as a string.
dataPath
- The dataPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getDataPath() throws IOException, AutomationException
DataPath can be the UNC or local path of your KML file as a string.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void refreshVisibleNodes(IGlobe pGlobe) throws IOException, AutomationException
This method must be called after the visibility of a KML Node has been changed via the IKmlNode interface.
The call to RefreshVisibleNodes should be followed by calls to invalidate the layer cache and redraw.
pGlobe
- A reference to a com.esri.arcgis.globecore.IGlobe (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMinimumRefreshInterval() throws IOException, AutomationException
The KML nodes may have a "<refreshInterval>" tag in the KML file. This method would return the minimum refresh interval value (in seconds) from amongst all the KML nodes in the KML layer.
If none of the nodes has the "<refreshInterval>" tag then the function would return 0.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaximumRefreshInterval() throws IOException, AutomationException
The KML nodes may have a "<refreshInterval>" tag in the KML file. This method would return the maximum refresh interval value (in seconds) from amongst all the KML nodes in the KML layer.
If none of the nodes has the "<refreshInterval>" tag then the function would return 0.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLabelsVisible(boolean pLabelsVisible) throws IOException, AutomationException
pLabelsVisible
- The pLabelsVisible (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isLabelsVisible() throws IOException, AutomationException
Placemark elements within a KML layer can display their Name property as a label in the 3D view. KML labels are billboarded to face the camera and use conflict detection in order to avoid overposting with other labels in the same KML layer.
By default, labels are visible for KML layers.
To disable labels for the KML layer set this property to False.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setGlobeContainedDataPath(String dataPath, IGlobe rhs2) throws IOException, AutomationException
dataPath
- The dataPath (in)rhs2
- A reference to a com.esri.arcgis.globecore.IGlobe (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 |