Class KmlContainer

  • Direct Known Subclasses:
    KmlDocument, KmlFolder

    public abstract class KmlContainer
    extends KmlNode
    A KML container element holds one or more KML nodes and allows the creation of nested hierarchies.
    Since:
    100.4.0
    • Method Detail

      • getListItemType

        public KmlContainer.ListItemType getListItemType()
        Gets the container's list item type, which determines how visibility and selection should work in a table of contents.
        Returns:
        the container's list item type.
        Since:
        100.4.0
      • getChildNodes

        public List<KmlNode> 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:
        an unmodifiable 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