Package com.storedobject.chart
Class Shadow
java.lang.Object
com.storedobject.chart.Shadow
- All Implemented Interfaces:
ComponentProperty
Represents a shadow. Typically, other properties have this property as an additional property.
For example,
TextStyle has this property to define its shadow.- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.final intgetBlur()Get the blur for the shadow.final AbstractColorgetColor()Get the color.final intGet offset X.final intGet offset Y.intGet the opacity of the shadow (Value as percentage 0 to 100%).voidsetBlur(int blur) Set the blur for the shadow.voidsetColor(AbstractColor color) Set the color.voidsetOffsetX(int offsetX) Set offset X.voidsetOffsetY(int offsetY) Set offset Y.voidsetOpacity(int opacity) Set the opacity of the shadow (Value as percentage, 0 to 100%).
-
Constructor Details
-
Shadow
public Shadow()Constructor.
-
-
Method Details
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Parameters:
sb- Encoded JSON string to be appended to this.
-
getBlur
public final int getBlur()Get the blur for the shadow. (Example value: 10).- Returns:
- Blur.
-
setBlur
public void setBlur(int blur) Set the blur for the shadow. (Example value: 10).- Parameters:
blur- Blur.
-
getColor
-
setColor
-
getOffsetX
public final int getOffsetX()Get offset X.- Returns:
- X offset.
-
setOffsetX
public void setOffsetX(int offsetX) Set offset X.- Parameters:
offsetX- X offset.
-
getOffsetY
public final int getOffsetY()Get offset Y.- Returns:
- Y offset.
-
setOffsetY
public void setOffsetY(int offsetY) Set offset Y.- Parameters:
offsetY- Y offset.
-
getOpacity
public int getOpacity()Get the opacity of the shadow (Value as percentage 0 to 100%).- Returns:
- Opacity.
-
setOpacity
public void setOpacity(int opacity) Set the opacity of the shadow (Value as percentage, 0 to 100%).- Parameters:
opacity- Opacity.
-