Class KMLStyle

    • Constructor Detail

      • KMLStyle

        public KMLStyle​(java.lang.String namespaceURI)
        Construct an instance.
        Parameters:
        namespaceURI - the qualifying namespace URI. May be null to indicate no namespace qualification.
    • Method Detail

      • setField

        public void setField​(java.lang.String keyName,
                             java.lang.Object value)
        Overridden to handle deprecated labelColor field. The labelColor field is deprecated, and has been replaced by LabelStyle. If labelColor is set this method will apply the color to the LabelStyle, creating a new LabelStyle if necessary.
        Overrides:
        setField in class AbstractXMLEventParser
      • mergeSubStyle

        public KMLAbstractSubStyle mergeSubStyle​(KMLAbstractSubStyle subStyle)
        Adds the sub-style fields of a specified sub-style to this one's fields if they don't already exist.
        Parameters:
        subStyle - the sub-style to merge with this one.
        Returns:
        the substyle passed in as the parameter.
        Throws:
        java.lang.IllegalArgumentException - if the sub-style parameter is null.