Package com.storedobject.chart
Class AreaStyle
java.lang.Object
com.storedobject.chart.AbstractStyle
com.storedobject.chart.AreaStyle
- All Implemented Interfaces:
ComponentProperty
Area-style. Determines how an area or a series of areas will be drawn.
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.voidsetColors(AbstractColor... colors) Set multiple colors.Methods inherited from class com.storedobject.chart.AbstractStyle
getColor, getOpacity, getShadow, setColor, setOpacity, setShadow
-
Constructor Details
-
AreaStyle
public AreaStyle()Constructor.
-
-
Method Details
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Overrides:
encodeJSONin classAbstractStyle- Parameters:
sb- Encoded JSON string to be appended to this.
-
setColors
Set multiple colors. Will be applied in sequence to each part of the area in the case of multi-parts areas. The single color if any, set usingAbstractStyle.setColor(AbstractColor)will be ignored if this is set. This should not be set (or will be ignored even if it is set) in the case of single block areas.- Parameters:
colors- Color
-