Package com.oorian.echarts.options
Class EChartsLineStyle
java.lang.Object
com.oorian.echarts.options.EChartsLineStyle
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents the line style configuration for ECharts chart elements. This includes properties for
color, width, type, and opacity of lines.
- Author:
- Oorian
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new EChartsLineStyle instance with default settings. -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Returns the line color.Returns the line opacity.getType()Returns the line type.getWidth()Returns the line width in pixels.voidinitFromJson(com.oorian.json.JsonValue json) Initializes this EChartsLineStyle from a JSON value.voidSets the line color.voidsetOpacity(Number opacity) Sets the line opacity.voidSets the line type.voidSets the line width in pixels.Converts this EChartsLineStyle to a JSON string.com.oorian.json.JsonValueConverts this EChartsLineStyle 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
-
EChartsLineStyle
public EChartsLineStyle()Creates a new EChartsLineStyle instance with default settings.
-
-
Method Details
-
setColor
Sets the line color.- Parameters:
color- The color value (e.g., "#333", "rgba(0,0,0,0.8)").
-
setWidth
Sets the line width in pixels.- Parameters:
width- The line width.
-
setType
Sets the line type.- Parameters:
type- The line type (e.g., "solid", "dashed", "dotted").
-
setOpacity
Sets the line opacity.- Parameters:
opacity- The opacity value (0.0 to 1.0).
-
getColor
Returns the line color.- Returns:
- The color value.
-
getWidth
Returns the line width in pixels.- Returns:
- The line width.
-
getType
Returns the line type.- Returns:
- The line type.
-
getOpacity
Returns the line opacity.- Returns:
- The opacity value.
-
initFromJson
public void initFromJson(com.oorian.json.JsonValue json) Initializes this EChartsLineStyle from a JSON value.- Specified by:
initFromJsonin interfacecom.oorian.json.Jsonable- Parameters:
json- The JSON value to initialize from.
-
toJsonValue
public com.oorian.json.JsonValue toJsonValue()Converts this EChartsLineStyle to a JSON value.- Specified by:
toJsonValuein interfacecom.oorian.json.Jsonable- Returns:
- The JSON representation of this EChartsLineStyle.
-
toJsonString
Converts this EChartsLineStyle to a JSON string.- Specified by:
toJsonStringin interfacecom.oorian.json.Jsonable- Returns:
- The JSON string representation of this EChartsLineStyle.
-