Package com.oorian.echarts.options
Class EChartsItemStyle
java.lang.Object
com.oorian.echarts.options.EChartsItemStyle
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents the item style configuration for ECharts chart elements. This includes properties for
color, border, shadow, and opacity of graphical elements.
- Author:
- Oorian
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new EChartsItemStyle instance with default settings. -
Method Summary
Modifier and TypeMethodDescriptionReturns the border color.Returns the border radius.Returns the border type.Returns the border width.getColor()Returns the item color.Returns the item opacity.Returns the shadow blur amount.Returns the shadow color.Returns the shadow horizontal offset.Returns the shadow vertical offset.voidinitFromJson(com.oorian.json.JsonValue json) Initializes this EChartsItemStyle from a JSON value.voidsetBorderColor(String borderColor) Sets the border color.voidsetBorderRadius(Number borderRadius) Sets the border radius.voidsetBorderType(String borderType) Sets the border type.voidsetBorderWidth(Number borderWidth) Sets the border width.voidSets the item color.voidsetOpacity(Number opacity) Sets the item opacity.voidsetShadowBlur(Number shadowBlur) Sets the shadow blur amount.voidsetShadowColor(String shadowColor) Sets the shadow color.voidsetShadowOffsetX(Number shadowOffsetX) Sets the shadow horizontal offset.voidsetShadowOffsetY(Number shadowOffsetY) Sets the shadow vertical offset.Converts this EChartsItemStyle to a JSON string.com.oorian.json.JsonValueConverts this EChartsItemStyle 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
-
EChartsItemStyle
public EChartsItemStyle()Creates a new EChartsItemStyle instance with default settings.
-
-
Method Details
-
setColor
Sets the item color.- Parameters:
color- The color value (e.g., "#333", "rgba(0,0,0,0.8)").
-
setBorderColor
Sets the border color.- Parameters:
borderColor- The border color value.
-
setBorderWidth
Sets the border width.- Parameters:
borderWidth- The border width in pixels.
-
setBorderType
Sets the border type.- Parameters:
borderType- The border type (e.g., "solid", "dashed", "dotted").
-
setBorderRadius
Sets the border radius.- Parameters:
borderRadius- The border radius in pixels.
-
setShadowBlur
Sets the shadow blur amount.- Parameters:
shadowBlur- The shadow blur in pixels.
-
setShadowColor
Sets the shadow color.- Parameters:
shadowColor- The shadow color value.
-
setShadowOffsetX
Sets the shadow horizontal offset.- Parameters:
shadowOffsetX- The shadow X offset in pixels.
-
setShadowOffsetY
Sets the shadow vertical offset.- Parameters:
shadowOffsetY- The shadow Y offset in pixels.
-
setOpacity
Sets the item opacity.- Parameters:
opacity- The opacity value (0.0 to 1.0).
-
getColor
Returns the item color.- Returns:
- The color value.
-
getBorderColor
Returns the border color.- Returns:
- The border color value.
-
getBorderWidth
Returns the border width.- Returns:
- The border width in pixels.
-
getBorderType
Returns the border type.- Returns:
- The border type.
-
getBorderRadius
Returns the border radius.- Returns:
- The border radius in pixels.
-
getShadowBlur
Returns the shadow blur amount.- Returns:
- The shadow blur in pixels.
-
getShadowColor
Returns the shadow color.- Returns:
- The shadow color value.
-
getShadowOffsetX
Returns the shadow horizontal offset.- Returns:
- The shadow X offset in pixels.
-
getShadowOffsetY
Returns the shadow vertical offset.- Returns:
- The shadow Y offset in pixels.
-
getOpacity
Returns the item opacity.- Returns:
- The opacity value.
-
initFromJson
public void initFromJson(com.oorian.json.JsonValue json) Initializes this EChartsItemStyle 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 EChartsItemStyle to a JSON value.- Specified by:
toJsonValuein interfacecom.oorian.json.Jsonable- Returns:
- The JSON representation of this EChartsItemStyle.
-
toJsonString
Converts this EChartsItemStyle to a JSON string.- Specified by:
toJsonStringin interfacecom.oorian.json.Jsonable- Returns:
- The JSON string representation of this EChartsItemStyle.
-