ShadowEffect

ShadowEffect class

This class specifies the shadow effect of the chart element or shape.

class ShadowEffect;

Methods

MethodDescription
getPresetType()Gets and sets the preset shadow type of the shadow.
setPresetType(PresetShadowType)Gets and sets the preset shadow type of the shadow.
getColor()Gets and sets the color of the shadow.
setColor(CellsColor)Gets and sets the color of the shadow.
getTransparency()Gets and sets the degree of transparency of the shadow. Range from 0.0 (opaque) to 1.0 (clear).
setTransparency(number)Gets and sets the degree of transparency of the shadow. Range from 0.0 (opaque) to 1.0 (clear).
getSize()Gets and sets the size of the shadow. Range from 0 to 2.0. Meaningless in inner shadow.
setSize(number)Gets and sets the size of the shadow. Range from 0 to 2.0. Meaningless in inner shadow.
getBlur()Gets and sets the blur of the shadow. Range from 0 to 100 points.
setBlur(number)Gets and sets the blur of the shadow. Range from 0 to 100 points.
getAngle()Gets and sets the lighting angle. Range from 0 to 359.9 degrees.
setAngle(number)Gets and sets the lighting angle. Range from 0 to 359.9 degrees.
getDistance()Gets and sets the distance of the shadow. Range from 0 to 200 points.
setDistance(number)Gets and sets the distance of the shadow. Range from 0 to 200 points.
isNull()Checks whether the implementation object is null.

getPresetType()

Gets and sets the preset shadow type of the shadow.

getPresetType() : PresetShadowType;

Returns

PresetShadowType

setPresetType(PresetShadowType)

Gets and sets the preset shadow type of the shadow.

setPresetType(value: PresetShadowType) : void;

Parameters:

ParameterTypeDescription
valuePresetShadowTypeThe value to set.

getColor()

Gets and sets the color of the shadow.

getColor() : CellsColor;

Returns

CellsColor

setColor(CellsColor)

Gets and sets the color of the shadow.

setColor(value: CellsColor) : void;

Parameters:

ParameterTypeDescription
valueCellsColorThe value to set.

getTransparency()

Gets and sets the degree of transparency of the shadow. Range from 0.0 (opaque) to 1.0 (clear).

getTransparency() : number;

setTransparency(number)

Gets and sets the degree of transparency of the shadow. Range from 0.0 (opaque) to 1.0 (clear).

setTransparency(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getSize()

Gets and sets the size of the shadow. Range from 0 to 2.0. Meaningless in inner shadow.

getSize() : number;

setSize(number)

Gets and sets the size of the shadow. Range from 0 to 2.0. Meaningless in inner shadow.

setSize(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getBlur()

Gets and sets the blur of the shadow. Range from 0 to 100 points.

getBlur() : number;

setBlur(number)

Gets and sets the blur of the shadow. Range from 0 to 100 points.

setBlur(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getAngle()

Gets and sets the lighting angle. Range from 0 to 359.9 degrees.

getAngle() : number;

setAngle(number)

Gets and sets the lighting angle. Range from 0 to 359.9 degrees.

setAngle(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getDistance()

Gets and sets the distance of the shadow. Range from 0 to 200 points.

getDistance() : number;

setDistance(number)

Gets and sets the distance of the shadow. Range from 0 to 200 points.

setDistance(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;