OEColorGradientLabel

class OEColorGradientLabel

The OEColorGradientLabel class stores a value (double) and label (string) pair that is used by the OEColorGradientDisplayOptions class to render user defined labels into the color gradients.

../../_images/OEColorGradientDisplayOptions_AddLabel.png

Example of depicting labels above the color gradient

Constructors

OEColorGradientLabel(value: float, label: str) -> OEColorGradientLabel
value

Defines the position of the string being rendered.

label

Defines the string being rendered.

Constructor.

OEColorGradientLabel(arg2: OEColorGradientLabel) -> OEColorGradientLabel

Copy constructor.

GetLabel

GetLabel() -> str

Returns the string stored in the OEColorGradientLabel object that will be rendered into the color gradient.

GetValue

GetValue() -> float

Returns the value stored in the OEColorGradientLabel object that defined the position of the associated label on the color gradient.