Show:

ia.RangeClass Class

Extends ia.LegendClass
Module: ia

The ia.RangeClass extends the ia.LegendClass to include a min value, a max value and a range. The value property of a range class is equal to null.

Constructor

ia.RangeClass

(
  • inMinValue
  • inMaxValue
  • inColor
  • inSize
)

Parameters:

  • inMinValue Number

    The min value.

  • inMaxValue Number

    The max value.

  • inColor String

    The color.

  • inSize Number

    The size.

Methods

contains

(
  • value
)
Boolean

Checks if a value is contained in the class.

Parameters:

  • value Number

    The value.

Returns:

Boolean: true / false.

getLabel

() String

Get the label.

Returns:

String: The label.

getRange

() Number

The difference between the min and max value.

Returns:

Number: The range.

setLabel

(
  • label
)

Set the label.

Parameters:

  • label String

    The label.

Properties

color

String

The default color.

Default: "#FFFFFF"

formatter

ia.Formatter

The formatter.

GREATER_THAN

String final static

Constant indicating a ">" rule.

Default: "greaterThan"

GREATER_THAN_OR_EQUAL_TO

String final static

Constant indicating a ">=" rule.

Default: "greaterThanOrEqual"

index

Number

The position of the class in the thematic.

Default: 0

items

Number

The list of data items contained in this class.

LESS_THAN

String final static

Constant indicating a "<" rule.

Default: "lessThan"

LESS_THAN_OR_EQUAL_TO

String final static

Constant indicating a "<=" rule.

Default: "lessThanOrEqual"

maxRule

String

The maximum rule. Valid rules are "<=" or "<".

Default: "<="

maxValue

Number

The maximum value.

Default: 0

minRule

String

The minimum rule. Valid rules are ">=" or ">".

Default: ">="

minValue

Number

The minimum value.

Default: 0

size

Number

The default size applied to data in the layer.

Default: 15

symbol

String

The symbol used for point data.

Default: ia.Shape.SQUARE

value

Number

The value