Class

com.scalakml.kml

LabelStyle

Related Doc: package kml

Permalink

case class LabelStyle(scale: Option[Double] = None, color: Option[HexColor] = None, colorMode: Option[ColorMode] = None, id: Option[String] = None, targetId: Option[String] = None, labelStyleSimpleExtensionGroup: Seq[Any] = Nil, labelStyleObjectExtensionGroup: Seq[Any] = Nil, colorStyleSimpleExtensionGroup: Seq[Any] = Nil, colorStyleObjectExtensionGroup: Seq[Any] = Nil, subStyleSimpleExtensionGroup: Seq[Any] = Nil, subStyleObjectExtensionGroup: Seq[Any] = Nil, objectSimpleExtensionGroup: Seq[Any] = Nil) extends ColorStyle with Product with Serializable

Specifies how the <name> of a Feature is drawn in the 3D viewer. A custom color, color mode, and scale for the label (name) can be specified.

scale

Resizes the label.

color

Color and opacity (alpha) values are expressed in hexadecimal notation. The range of values for any one color is 0 to 255 (00 to ff). For alpha, 00 is fully transparent and ff is fully opaque. The order of expression is aabbggrr, where aa=alpha (00 to ff); bb=blue (00 to ff); gg=green (00 to ff); rr=red (00 to ff). For example, if you want to apply a blue color with 50 percent opacity to an overlay, you would specify the following: <color>7fff0000</color>, where alpha=0x7f, blue=0xff, green=0x00, and red=0x00.

colorMode

Values for <colorMode> are normal (no effect) and random. A value of random applies a random linear scale to the base <color> as follows. To achieve a truly random selection of colors, specify a base <color> of white (ffffffff). If you specify a single color component (for example, a value of ff0000ff for red), random color values for that one component (red) will be selected. In this case, the values would range from 00 (black) to ff (full red). If you specify values for two or for all three color components, a random linear scale is applied to each color component, with results ranging from black to the maximum values specified for each component. The opacity of a color comes from the alpha component of <color> and is never randomized.

Linear Supertypes
Serializable, Serializable, Product, Equals, ColorStyle, SubStyle, KmlObject, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LabelStyle
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ColorStyle
  7. SubStyle
  8. KmlObject
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LabelStyle(scale: Double, color: HexColor, colorMode: ColorMode)

    Permalink
  2. new LabelStyle(color: HexColor)

    Permalink
  3. new LabelStyle(scale: Double)

    Permalink
  4. new LabelStyle(scale: Option[Double] = None, color: Option[HexColor] = None, colorMode: Option[ColorMode] = None, id: Option[String] = None, targetId: Option[String] = None, labelStyleSimpleExtensionGroup: Seq[Any] = Nil, labelStyleObjectExtensionGroup: Seq[Any] = Nil, colorStyleSimpleExtensionGroup: Seq[Any] = Nil, colorStyleObjectExtensionGroup: Seq[Any] = Nil, subStyleSimpleExtensionGroup: Seq[Any] = Nil, subStyleObjectExtensionGroup: Seq[Any] = Nil, objectSimpleExtensionGroup: Seq[Any] = Nil)

    Permalink

    scale

    Resizes the label.

    color

    Color and opacity (alpha) values are expressed in hexadecimal notation. The range of values for any one color is 0 to 255 (00 to ff). For alpha, 00 is fully transparent and ff is fully opaque. The order of expression is aabbggrr, where aa=alpha (00 to ff); bb=blue (00 to ff); gg=green (00 to ff); rr=red (00 to ff). For example, if you want to apply a blue color with 50 percent opacity to an overlay, you would specify the following: <color>7fff0000</color>, where alpha=0x7f, blue=0xff, green=0x00, and red=0x00.

    colorMode

    Values for <colorMode> are normal (no effect) and random. A value of random applies a random linear scale to the base <color> as follows. To achieve a truly random selection of colors, specify a base <color> of white (ffffffff). If you specify a single color component (for example, a value of ff0000ff for red), random color values for that one component (red) will be selected. In this case, the values would range from 00 (black) to ff (full red). If you specify values for two or for all three color components, a random linear scale is applied to each color component, with results ranging from black to the maximum values specified for each component. The opacity of a color comes from the alpha component of <color> and is never randomized.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val color: Option[HexColor]

    Permalink

    Color and opacity (alpha) values are expressed in hexadecimal notation.

    Color and opacity (alpha) values are expressed in hexadecimal notation. The range of values for any one color is 0 to 255 (00 to ff). For alpha, 00 is fully transparent and ff is fully opaque. The order of expression is aabbggrr, where aa=alpha (00 to ff); bb=blue (00 to ff); gg=green (00 to ff); rr=red (00 to ff). For example, if you want to apply a blue color with 50 percent opacity to an overlay, you would specify the following: <color>7fff0000</color>, where alpha=0x7f, blue=0xff, green=0x00, and red=0x00.

    Definition Classes
    LabelStyleColorStyle
  7. val colorMode: Option[ColorMode]

    Permalink

    Values for <colorMode> are normal (no effect) and random.

    Values for <colorMode> are normal (no effect) and random. A value of random applies a random linear scale to the base <color> as follows. To achieve a truly random selection of colors, specify a base <color> of white (ffffffff). If you specify a single color component (for example, a value of ff0000ff for red), random color values for that one component (red) will be selected. In this case, the values would range from 00 (black) to ff (full red). If you specify values for two or for all three color components, a random linear scale is applied to each color component, with results ranging from black to the maximum values specified for each component. The opacity of a color comes from the alpha component of <color> and is never randomized.

    Definition Classes
    LabelStyleColorStyle
  8. val colorStyleObjectExtensionGroup: Seq[Any]

    Permalink
    Definition Classes
    LabelStyleColorStyle
  9. val colorStyleSimpleExtensionGroup: Seq[Any]

    Permalink
    Definition Classes
    LabelStyleColorStyle
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. val id: Option[String]

    Permalink
    Definition Classes
    LabelStyleKmlObject
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. val labelStyleObjectExtensionGroup: Seq[Any]

    Permalink
  16. val labelStyleSimpleExtensionGroup: Seq[Any]

    Permalink
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. val objectSimpleExtensionGroup: Seq[Any]

    Permalink
    Definition Classes
    LabelStyleKmlObject
  21. val scale: Option[Double]

    Permalink

    Resizes the label.

  22. val subStyleObjectExtensionGroup: Seq[Any]

    Permalink
    Definition Classes
    LabelStyleSubStyle
  23. val subStyleSimpleExtensionGroup: Seq[Any]

    Permalink
    Definition Classes
    LabelStyleSubStyle
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. val targetId: Option[String]

    Permalink
    Definition Classes
    LabelStyleKmlObject
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ColorStyle

Inherited from SubStyle

Inherited from KmlObject

Inherited from AnyRef

Inherited from Any

Ungrouped