Package com.oorian.echarts.options
Class EChartsToolbox
java.lang.Object
com.oorian.echarts.options.EChartsToolbox
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents the toolbox configuration for an ECharts chart. The toolbox provides interactive features
such as saving the chart as an image, restoring, data view, zooming, and magic type switching.
- Author:
- Oorian
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the feature configuration for the toolbox, containing various tool options. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new EChartsToolbox instance with default settings. -
Method Summary
Modifier and TypeMethodDescriptionReturns the bottom position of the toolbox.Returns the feature configuration for the toolbox.getLeft()Returns the left position of the toolbox.Returns the orientation of the toolbox.getRight()Returns the right position of the toolbox.getShow()Returns whether the toolbox is visible.getTop()Returns the top position of the toolbox.voidinitFromJson(com.oorian.json.JsonValue json) Initializes this EChartsToolbox from a JSON value.voidSets the bottom position of the toolbox.voidsetFeature(EChartsToolbox.Feature feature) Sets the feature configuration for the toolbox.voidSets the left position of the toolbox.voidSets the orientation of the toolbox.voidSets the right position of the toolbox.voidSets whether the toolbox is visible.voidSets the top position of the toolbox.Converts this EChartsToolbox to a JSON string.com.oorian.json.JsonValueConverts this EChartsToolbox 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
-
EChartsToolbox
public EChartsToolbox()Creates a new EChartsToolbox instance with default settings.
-
-
Method Details
-
setShow
Sets whether the toolbox is visible.- Parameters:
show- True to show the toolbox.
-
setOrient
Sets the orientation of the toolbox.- Parameters:
orient- The orientation (e.g., "horizontal", "vertical").
-
setLeft
Sets the left position of the toolbox.- Parameters:
left- The left position value (e.g., "10%", "center", "left").
-
setTop
Sets the top position of the toolbox.- Parameters:
top- The top position value (e.g., "10%", "top", "middle").
-
setRight
Sets the right position of the toolbox.- Parameters:
right- The right position value (e.g., "10%", "right").
-
setBottom
Sets the bottom position of the toolbox.- Parameters:
bottom- The bottom position value (e.g., "10%", "bottom").
-
setFeature
Sets the feature configuration for the toolbox.- Parameters:
feature- The feature configuration.
-
getShow
Returns whether the toolbox is visible.- Returns:
- True if the toolbox is shown.
-
getOrient
Returns the orientation of the toolbox.- Returns:
- The orientation.
-
getLeft
Returns the left position of the toolbox.- Returns:
- The left position value.
-
getTop
Returns the top position of the toolbox.- Returns:
- The top position value.
-
getRight
Returns the right position of the toolbox.- Returns:
- The right position value.
-
getBottom
Returns the bottom position of the toolbox.- Returns:
- The bottom position value.
-
getFeature
Returns the feature configuration for the toolbox.- Returns:
- The feature configuration.
-
initFromJson
public void initFromJson(com.oorian.json.JsonValue json) Initializes this EChartsToolbox 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 EChartsToolbox to a JSON value.- Specified by:
toJsonValuein interfacecom.oorian.json.Jsonable- Returns:
- The JSON representation of this EChartsToolbox.
-
toJsonString
Converts this EChartsToolbox to a JSON string.- Specified by:
toJsonStringin interfacecom.oorian.json.Jsonable- Returns:
- The JSON string representation of this EChartsToolbox.
-