Package com.oorian.echarts.options
Class EChartsAreaStyle
java.lang.Object
com.oorian.echarts.options.EChartsAreaStyle
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents the area style configuration for ECharts series.
Controls the fill color and opacity of areas in area charts, radar charts, etc.
- Author:
- Oorian
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new EChartsAreaStyle with an empty color list. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a color to the area fill color list.getColor()Gets the color list for the area fill.Gets the opacity of the area fill.voidinitFromJson(com.oorian.json.JsonValue json) Initializes this EChartsAreaStyle from a JSON value.voidSets the color list for the area fill.voidsetOpacity(Number opacity) Sets the opacity of the area fill.Converts this EChartsAreaStyle to a JSON string.com.oorian.json.JsonValueConverts this EChartsAreaStyle to a JSON value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oorian.json.Jsonable
initFromJson, initFromJson
-
Constructor Details
-
EChartsAreaStyle
public EChartsAreaStyle()Constructs a new EChartsAreaStyle with an empty color list.
-
-
Method Details
-
setColor
Sets the color list for the area fill.- Parameters:
color- the list of colors to use for the area fill
-
setOpacity
Sets the opacity of the area fill.- Parameters:
opacity- the opacity value (0-1)
-
getColor
Gets the color list for the area fill.- Returns:
- the list of colors
-
getOpacity
Gets the opacity of the area fill.- Returns:
- the opacity value
-
addColor
Adds a color to the area fill color list.- Parameters:
color- the color to add
-
initFromJson
public void initFromJson(com.oorian.json.JsonValue json) Initializes this EChartsAreaStyle from a JSON value.- Specified by:
initFromJsonin interfacecom.oorian.json.Jsonable- Parameters:
json- the JSON value to parse
-
toJsonValue
public com.oorian.json.JsonValue toJsonValue()Converts this EChartsAreaStyle to a JSON value.- Specified by:
toJsonValuein interfacecom.oorian.json.Jsonable- Returns:
- the JSON representation
-
toJsonString
Converts this EChartsAreaStyle to a JSON string.- Specified by:
toJsonStringin interfacecom.oorian.json.Jsonable- Returns:
- the JSON string representation
-