Class KmlLabelStyle


  • public final class KmlLabelStyle
    extends KmlColorStyle
    Specifies how the name of a KmlNode is draw, including color and style.

    Controls how the <name> of a KmlNode is displayed. Determines color and scale of the name label. Corresponds to a <LabelStyle> is a KML document.

    Since:
    100.6.0
    • Constructor Summary

      Constructors 
      Constructor Description
      KmlLabelStyle​(int color, double scale)
      Constructs a KML label style with a specified label color and scale.
    • Constructor Detail

      • KmlLabelStyle

        public KmlLabelStyle​(int color,
                             double scale)
        Constructs a KML label style with a specified label color and scale.
        Parameters:
        color - color of the label in 0xAARRGGBB format. Default is 0xFFFFFFFF.
        scale - scale to resize the label. Default is 1.0.
        Throws:
        java.lang.IllegalArgumentException - if scale is negative
        Since:
        100.6.0
    • Method Detail

      • getScale

        public double getScale()
        Gets the scale to resize the label. Default is 1.0.
        Returns:
        the scale to resize the label
        Since:
        100.6.0
      • setScale

        public void setScale​(double scale)
        Sets the scale to resize the label.
        Parameters:
        scale - the scale to resize the label
        Throws:
        java.lang.IllegalArgumentException - if scale is negative
        Since:
        100.6.0