Class: ServerColor

ol.supermap.ServerColor

The ServerColor class. This class uses the RGB color to express colors

new ol.supermap.ServerColor(options)

ServerColor.js, line 3
Name Type Description
options Object

The optional parameter.

Name Type Default Description
red number 255 optional

Gets or sets the red value.

green number 0 optional

Gets or sets the green value.

blue number 0 optional

Gets or sets the blue value.

API Relations

As constructor parameter: ol.supermap.ServerStyle , ol.supermap.ServerTextStyle , ol.supermap.ThemeGraphAxes , ol.supermap.ThemeGridRangeItem , ol.supermap.ThemeGridUnique , ol.supermap.ThemeGridUniqueItem.
Returned by: ol.supermap.ServerColor.formJson.

Members

bluenumber

Gets or sets the blue value.

greennumber

Gets or sets the green value.

rednumber

Gets or sets the red value.

Default Value:
255

Methods

static formJson(jsonObject){ol.supermap.ServerColor}

ServerColor.js, line 49

Transform the JSON object to the ServerColor object

Name Type Description
jsonObject Object

the JSON object to be turned.

Returns:
Type Description
ol.supermap.ServerColor the ServerColor object.

destroy()

ServerColor.js, line 37

Disposes the resource. The property that references resource is set to null.