ReflectionEffect

ReflectionEffect class

This class specifies a reflection effect.

class ReflectionEffect;

Methods

MethodDescription
getType()Gets and sets the preset reflection effect.
setType(ReflectionEffectType)Gets and sets the preset reflection effect.
getTransparency()Gets and sets the degree of the starting reflection transparency as a value from 0.0 (opaque) through 1.0 (clear).
setTransparency(number)Gets and sets the degree of the starting reflection transparency as a value from 0.0 (opaque) through 1.0 (clear).
getSize()Gets and sets the end position (along the alpha gradient ramp) of the end alpha value,in unit of percentage
setSize(number)Gets and sets the end position (along the alpha gradient ramp) of the end alpha value,in unit of percentage
getBlur()Gets and sets the blur radius,in unit of points.
setBlur(number)Gets and sets the blur radius,in unit of points.
getDirection()Gets and sets the direction of the alpha gradient ramp relative to the shape itself.
setDirection(number)Gets and sets the direction of the alpha gradient ramp relative to the shape itself.
getDistance()Gets and sets how far to distance the shadow,in unit of points.
setDistance(number)Gets and sets how far to distance the shadow,in unit of points.
getFadeDirection()Gets and sets the direction to offset the reflection.
setFadeDirection(number)Gets and sets the direction to offset the reflection.
getRotWithShape()Gets and sets if the reflection should rotate with the shape.
setRotWithShape(boolean)Gets and sets if the reflection should rotate with the shape.
isNull()Checks whether the implementation object is null.

getType()

Gets and sets the preset reflection effect.

getType() : ReflectionEffectType;

Returns

ReflectionEffectType

setType(ReflectionEffectType)

Gets and sets the preset reflection effect.

setType(value: ReflectionEffectType) : void;

Parameters:

ParameterTypeDescription
valueReflectionEffectTypeThe value to set.

getTransparency()

Gets and sets the degree of the starting reflection transparency as a value from 0.0 (opaque) through 1.0 (clear).

getTransparency() : number;

setTransparency(number)

Gets and sets the degree of the starting reflection transparency as a value from 0.0 (opaque) through 1.0 (clear).

setTransparency(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getSize()

Gets and sets the end position (along the alpha gradient ramp) of the end alpha value,in unit of percentage

getSize() : number;

setSize(number)

Gets and sets the end position (along the alpha gradient ramp) of the end alpha value,in unit of percentage

setSize(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getBlur()

Gets and sets the blur radius,in unit of points.

getBlur() : number;

setBlur(number)

Gets and sets the blur radius,in unit of points.

setBlur(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getDirection()

Gets and sets the direction of the alpha gradient ramp relative to the shape itself.

getDirection() : number;

setDirection(number)

Gets and sets the direction of the alpha gradient ramp relative to the shape itself.

setDirection(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getDistance()

Gets and sets how far to distance the shadow,in unit of points.

getDistance() : number;

setDistance(number)

Gets and sets how far to distance the shadow,in unit of points.

setDistance(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getFadeDirection()

Gets and sets the direction to offset the reflection.

getFadeDirection() : number;

setFadeDirection(number)

Gets and sets the direction to offset the reflection.

setFadeDirection(value: number) : void;

Parameters:

ParameterTypeDescription
valuenumberThe value to set.

getRotWithShape()

Gets and sets if the reflection should rotate with the shape.

getRotWithShape() : boolean;

setRotWithShape(boolean)

Gets and sets if the reflection should rotate with the shape.

setRotWithShape(value: boolean) : void;

Parameters:

ParameterTypeDescription
valuebooleanThe value to set.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;