java.lang.Object
com.esri.arcgisruntime.ogc.kml.KmlNode
com.esri.arcgisruntime.ogc.kml.KmlContainer
- Direct Known Subclasses:
KmlDocument
,KmlFolder
A KML container element holds one or more KML nodes and allows the creation of nested hierarchies.
- Since:
- 100.4.0
-
Property Summary
Properties inherited from class com.esri.arcgisruntime.ogc.kml.KmlNode
balloonBackgroundColor, uxIconColor
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The list of KML list item types.Nested classes/interfaces inherited from class com.esri.arcgisruntime.ogc.kml.KmlNode
KmlNode.RefreshStatus
-
Method Summary
Modifier and TypeMethodDescriptionGets the KML container's child nodes.Gets the container's list item type, which determines how visibility and selection should work in a table of contents, enabling either single or multiple selection of child nodes when shown in a list (for example, a legend).boolean
isOpen()
Gets a value indicating that, when shown in a tree view, the node representing the KML container should be open.boolean
Gets a value indicating that the container node has mixed visibility.void
setListItemType
(KmlContainer.ListItemType listItemType) Sets the container's list item type, which determines how visibility and selection should work in a table of contents, enabling either single or multiple selection of child nodes when shown in a list (for example, a legend).void
setOpen
(boolean open) When shown in a tree view, the node representing the KML container should be open.Methods inherited from class com.esri.arcgisruntime.ogc.kml.KmlNode
addIconUpdatedEventListener, addRefreshStatusChangedListener, balloonBackgroundColorProperty, getAddress, getBalloonBackgroundColor, getBalloonContent, getDescription, getExtent, getHighlightStyle, getId, getName, getParentNode, getRefreshError, getRefreshStatus, getSnippet, getSnippetMaxLines, getStyle, getTimeExtent, getUxIcon, getUxIconColor, getUxIconId, getViewpoint, isHighlighted, isVisible, removeIconUpdatedEventListener, removeRefreshStatusChangedListener, saveAsAsync, setAddress, setDescription, setHighlighted, setHighlightStyle, setId, setName, setSnippet, setSnippetMaxLines, setStyle, setTimeExtent, setViewpoint, setVisible, uxIconColorProperty
-
Method Details
-
getListItemType
Gets the container's list item type, which determines how visibility and selection should work in a table of contents, enabling either single or multiple selection of child nodes when shown in a list (for example, a legend).See 'listItemType' attribute of 'ListStyle' in the KML specification for more information. When the item type is
KmlContainer.ListItemType.RADIO_FOLDER
, making a node visible will hide its sibling nodes.- Returns:
- the container's list item type.
- Since:
- 100.4.0
- See Also:
-
setListItemType
Sets the container's list item type, which determines how visibility and selection should work in a table of contents, enabling either single or multiple selection of child nodes when shown in a list (for example, a legend).See 'listItemType' attribute of 'ListStyle' in the KML specification for more information. When the item type is
KmlContainer.ListItemType.RADIO_FOLDER
, making a node visible will hide its sibling nodes. Sets the KML container's list item type.- Parameters:
listItemType
- a ListItemType- Throws:
IllegalArgumentException
- if listItemType is null- Since:
- 100.6.0
- See Also:
-
getChildNodes
Gets the KML container's child nodes. If this container node is refreshed the list will be invalidated and this method should be called again to get the new list.- Returns:
- a modifiable list of child nodes
- Since:
- 100.4.0
-
isOpen
public boolean isOpen()Gets a value indicating that, when shown in a tree view, the node representing the KML container should be open.- Returns:
- true if the node is open, false otherwise
- Since:
- 100.4.0
-
setOpen
public void setOpen(boolean open) When shown in a tree view, the node representing the KML container should be open.- Parameters:
open
- true to set the node open, false otherwise- Since:
- 100.4.0
-
isPartiallyVisible
public boolean isPartiallyVisible()Gets a value indicating that the container node has mixed visibility.A KmlNode is considered partially visible if some of its child KmlNode are visible and some are not. Otherwise, it returns false if all child KmlNodes are either visible or invisible.
- Returns:
- true if the container node is partially visible, false otherwise
- Since:
- 100.4.0
-