ReflectionEffect
ReflectionEffect class
This class specifies a reflection effect.
class ReflectionEffect;
Properties
Property | Type | Description |
---|---|---|
type | ReflectionEffectType | Gets and sets the preset reflection effect. |
transparency | number | Gets and sets the degree of the starting reflection transparency as a value from 0.0 (opaque) through 1.0 (clear). |
size | number | Gets and sets the end position (along the alpha gradient ramp) of the end alpha value,in unit of percentage |
blur | number | Gets and sets the blur radius,in unit of points. |
direction | number | Gets and sets the direction of the alpha gradient ramp relative to the shape itself. |
distance | number | Gets and sets how far to distance the shadow,in unit of points. |
fadeDirection | number | Gets and sets the direction to offset the reflection. |
rotWithShape | boolean | Gets and sets if the reflection should rotate with the shape. |
Methods
Method | Description |
---|---|
getType() | @deprecated. Please use the ’type’ property instead. Gets and sets the preset reflection effect. |
setType(ReflectionEffectType) | @deprecated. Please use the ’type’ property instead. Gets and sets the preset reflection effect. |
getTransparency() | @deprecated. Please use the ’transparency’ property instead. Gets and sets the degree of the starting reflection transparency as a value from 0.0 (opaque) through 1.0 (clear). |
setTransparency(number) | @deprecated. Please use the ’transparency’ property instead. Gets and sets the degree of the starting reflection transparency as a value from 0.0 (opaque) through 1.0 (clear). |
getSize() | @deprecated. Please use the ‘size’ property instead. Gets and sets the end position (along the alpha gradient ramp) of the end alpha value,in unit of percentage |
setSize(number) | @deprecated. Please use the ‘size’ property instead. Gets and sets the end position (along the alpha gradient ramp) of the end alpha value,in unit of percentage |
getBlur() | @deprecated. Please use the ‘blur’ property instead. Gets and sets the blur radius,in unit of points. |
setBlur(number) | @deprecated. Please use the ‘blur’ property instead. Gets and sets the blur radius,in unit of points. |
getDirection() | @deprecated. Please use the ‘direction’ property instead. Gets and sets the direction of the alpha gradient ramp relative to the shape itself. |
setDirection(number) | @deprecated. Please use the ‘direction’ property instead. Gets and sets the direction of the alpha gradient ramp relative to the shape itself. |
getDistance() | @deprecated. Please use the ‘distance’ property instead. Gets and sets how far to distance the shadow,in unit of points. |
setDistance(number) | @deprecated. Please use the ‘distance’ property instead. Gets and sets how far to distance the shadow,in unit of points. |
getFadeDirection() | @deprecated. Please use the ‘fadeDirection’ property instead. Gets and sets the direction to offset the reflection. |
setFadeDirection(number) | @deprecated. Please use the ‘fadeDirection’ property instead. Gets and sets the direction to offset the reflection. |
getRotWithShape() | @deprecated. Please use the ‘rotWithShape’ property instead. Gets and sets if the reflection should rotate with the shape. |
setRotWithShape(boolean) | @deprecated. Please use the ‘rotWithShape’ property instead. Gets and sets if the reflection should rotate with the shape. |
isNull() | Checks whether the implementation object is null. |
type
Gets and sets the preset reflection effect.
type : ReflectionEffectType;
transparency
Gets and sets the degree of the starting reflection transparency as a value from 0.0 (opaque) through 1.0 (clear).
transparency : number;
size
Gets and sets the end position (along the alpha gradient ramp) of the end alpha value,in unit of percentage
size : number;
blur
Gets and sets the blur radius,in unit of points.
blur : number;
direction
Gets and sets the direction of the alpha gradient ramp relative to the shape itself.
direction : number;
distance
Gets and sets how far to distance the shadow,in unit of points.
distance : number;
fadeDirection
Gets and sets the direction to offset the reflection.
fadeDirection : number;
rotWithShape
Gets and sets if the reflection should rotate with the shape.
rotWithShape : boolean;
getType()
@deprecated. Please use the ’type’ property instead. Gets and sets the preset reflection effect.
getType() : ReflectionEffectType;
Returns
setType(ReflectionEffectType)
@deprecated. Please use the ’type’ property instead. Gets and sets the preset reflection effect.
setType(value: ReflectionEffectType) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | ReflectionEffectType | The value to set. |
getTransparency()
@deprecated. Please use the ’transparency’ property instead. 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)
@deprecated. Please use the ’transparency’ property instead. 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:
Parameter | Type | Description |
---|---|---|
value | number | The value to set. |
getSize()
@deprecated. Please use the ‘size’ property instead. Gets and sets the end position (along the alpha gradient ramp) of the end alpha value,in unit of percentage
getSize() : number;
setSize(number)
@deprecated. Please use the ‘size’ property instead. 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:
Parameter | Type | Description |
---|---|---|
value | number | The value to set. |
getBlur()
@deprecated. Please use the ‘blur’ property instead. Gets and sets the blur radius,in unit of points.
getBlur() : number;
setBlur(number)
@deprecated. Please use the ‘blur’ property instead. Gets and sets the blur radius,in unit of points.
setBlur(value: number) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | number | The value to set. |
getDirection()
@deprecated. Please use the ‘direction’ property instead. Gets and sets the direction of the alpha gradient ramp relative to the shape itself.
getDirection() : number;
setDirection(number)
@deprecated. Please use the ‘direction’ property instead. Gets and sets the direction of the alpha gradient ramp relative to the shape itself.
setDirection(value: number) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | number | The value to set. |
getDistance()
@deprecated. Please use the ‘distance’ property instead. Gets and sets how far to distance the shadow,in unit of points.
getDistance() : number;
setDistance(number)
@deprecated. Please use the ‘distance’ property instead. Gets and sets how far to distance the shadow,in unit of points.
setDistance(value: number) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | number | The value to set. |
getFadeDirection()
@deprecated. Please use the ‘fadeDirection’ property instead. Gets and sets the direction to offset the reflection.
getFadeDirection() : number;
setFadeDirection(number)
@deprecated. Please use the ‘fadeDirection’ property instead. Gets and sets the direction to offset the reflection.
setFadeDirection(value: number) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | number | The value to set. |
getRotWithShape()
@deprecated. Please use the ‘rotWithShape’ property instead. Gets and sets if the reflection should rotate with the shape.
getRotWithShape() : boolean;
setRotWithShape(boolean)
@deprecated. Please use the ‘rotWithShape’ property instead. Gets and sets if the reflection should rotate with the shape.
setRotWithShape(value: boolean) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean | The value to set. |
isNull()
Checks whether the implementation object is null.
isNull() : boolean;