Package com.storedobject.chart
Class AbstractStyle
java.lang.Object
com.storedobject.chart.AbstractStyle
- All Implemented Interfaces:
ComponentProperty
- Direct Known Subclasses:
AreaStyle,ItemStyle,LineStyle,TextBorder
A class that defines basic style details.
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.final AbstractColorgetColor()Get color.intGet the opacity of the line (Value as percentage 0 to 100%).final ShadowgetShadow(boolean create) Get the shadow.voidsetColor(AbstractColor color) Set color.voidsetOpacity(int opacity) Set the opacity of the line (Value as percentage, 0 to 100%).voidSet the shadow.
-
Constructor Details
-
AbstractStyle
public AbstractStyle()
-
-
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.
-
getColor
-
setColor
-
getShadow
Get the shadow.- Parameters:
create- Whether to create if not exists or not.- Returns:
- Shadow.
-
setShadow
-
getOpacity
public int getOpacity()Get the opacity of the line (Value as percentage 0 to 100%).- Returns:
- Opacity.
-
setOpacity
public void setOpacity(int opacity) Set the opacity of the line (Value as percentage, 0 to 100%).- Parameters:
opacity- Opacity.
-