ShadowEffect

ShadowEffect class

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

class ShadowEffect;

Properties

PropertyTypeDescription
presetTypePresetShadowTypeGets and sets the preset shadow type of the shadow.
colorCellsColorGets and sets the color of the shadow.
transparencynumberGets and sets the degree of transparency of the shadow. Range from 0.0 (opaque) to 1.0 (clear).
sizenumberGets and sets the size of the shadow. Range from 0 to 2.0. Meaningless in inner shadow.
blurnumberGets and sets the blur of the shadow. Range from 0 to 100 points.
anglenumberGets and sets the lighting angle. Range from 0 to 359.9 degrees.
distancenumberGets and sets the distance of the shadow. Range from 0 to 200 points.

Methods

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

presetType

Gets and sets the preset shadow type of the shadow.

presetType : PresetShadowType;

color

Gets and sets the color of the shadow.

color : CellsColor;

transparency

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

transparency : number;

size

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

size : number;

blur

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

blur : number;

angle

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

angle : number;

distance

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

distance : number;

getPresetType()

@deprecated. Please use the ‘presetType’ property instead. Gets and sets the preset shadow type of the shadow.

getPresetType() : PresetShadowType;

Returns

PresetShadowType

setPresetType(PresetShadowType)

@deprecated. Please use the ‘presetType’ property instead. Gets and sets the preset shadow type of the shadow.

setPresetType(value: PresetShadowType) : void;

Parameters:

ParameterTypeDescription
valuePresetShadowTypeThe value to set.

getColor()

@deprecated. Please use the ‘color’ property instead. Gets and sets the color of the shadow.

getColor() : CellsColor;

Returns

CellsColor

setColor(CellsColor)

@deprecated. Please use the ‘color’ property instead. Gets and sets the color of the shadow.

setColor(value: CellsColor) : void;

Parameters:

ParameterTypeDescription
valueCellsColorThe value to set.

getTransparency()

@deprecated. Please use the ’transparency’ property instead. Gets and sets the degree of transparency of the shadow. Range from 0.0 (opaque) to 1.0 (clear).

getTransparency() : number;

setTransparency(number)

@deprecated. Please use the ’transparency’ property instead. 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()

@deprecated. Please use the ‘size’ property instead. Gets and sets the size of the shadow. Range from 0 to 2.0. Meaningless in inner shadow.

getSize() : number;

setSize(number)

@deprecated. Please use the ‘size’ property instead. 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()

@deprecated. Please use the ‘blur’ property instead. Gets and sets the blur of the shadow. Range from 0 to 100 points.

getBlur() : number;

setBlur(number)

@deprecated. Please use the ‘blur’ property instead. 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()

@deprecated. Please use the ‘angle’ property instead. Gets and sets the lighting angle. Range from 0 to 359.9 degrees.

getAngle() : number;

setAngle(number)

@deprecated. Please use the ‘angle’ property instead. Gets and sets the lighting angle. Range from 0 to 359.9 degrees.

setAngle(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getDistance()

@deprecated. Please use the ‘distance’ property instead. Gets and sets the distance of the shadow. Range from 0 to 200 points.

getDistance() : number;

setDistance(number)

@deprecated. Please use the ‘distance’ property instead. 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;