MPLabelGraphic

class MPLabelGraphic(backgroundImage: String, val stretchX: Array<IntArray>, val stretchY: Array<IntArray>, val content: IntArray)

A container class for graphic label Display Rule settings.

These values are tightly bound, thus it is not advised to change any values without due consideration.

Constructors

Link copied to clipboard
fun MPLabelGraphic(backgroundImage: String, stretchX: Array<IntArray>, stretchY: Array<IntArray>, content: IntArray)

Functions

Link copied to clipboard

FOR INTERNAL USE

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

FOR INTERNAL USE

Properties

Link copied to clipboard

A URL to an image that will be used as the background for a graphic label

Link copied to clipboard
@SerializedName(value = "content")
val content: IntArray

The content area of the graphic label, it must contain exactly 4 values, with the order corresponding to (left, top, right, bottom)

Link copied to clipboard
@SerializedName(value = "stretchX")
val stretchX: Array<IntArray>

Segments where the graphic label is allowed to stretch the image in the X-axis, each sublist must contain 2 values, which are from and to values.

Link copied to clipboard
@SerializedName(value = "stretchY")
val stretchY: Array<IntArray>

Segments where the graphic label is allowed to stretch the image in the Y-axis, each sublist must contain 2 values, which are from and to values, the first value must not be larger than the second value.