Class EChartsToolbox

java.lang.Object
com.oorian.echarts.options.EChartsToolbox
All Implemented Interfaces:
com.oorian.json.Jsonable

public class EChartsToolbox extends Object implements 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
  • Constructor Details

    • EChartsToolbox

      public EChartsToolbox()
      Creates a new EChartsToolbox instance with default settings.
  • Method Details

    • setShow

      public void setShow(Boolean show)
      Sets whether the toolbox is visible.
      Parameters:
      show - True to show the toolbox.
    • setOrient

      public void setOrient(String orient)
      Sets the orientation of the toolbox.
      Parameters:
      orient - The orientation (e.g., "horizontal", "vertical").
    • setLeft

      public void setLeft(String left)
      Sets the left position of the toolbox.
      Parameters:
      left - The left position value (e.g., "10%", "center", "left").
    • setTop

      public void setTop(String top)
      Sets the top position of the toolbox.
      Parameters:
      top - The top position value (e.g., "10%", "top", "middle").
    • setRight

      public void setRight(String right)
      Sets the right position of the toolbox.
      Parameters:
      right - The right position value (e.g., "10%", "right").
    • setBottom

      public void setBottom(String bottom)
      Sets the bottom position of the toolbox.
      Parameters:
      bottom - The bottom position value (e.g., "10%", "bottom").
    • setFeature

      public void setFeature(EChartsToolbox.Feature feature)
      Sets the feature configuration for the toolbox.
      Parameters:
      feature - The feature configuration.
    • getShow

      public Boolean getShow()
      Returns whether the toolbox is visible.
      Returns:
      True if the toolbox is shown.
    • getOrient

      public String getOrient()
      Returns the orientation of the toolbox.
      Returns:
      The orientation.
    • getLeft

      public String getLeft()
      Returns the left position of the toolbox.
      Returns:
      The left position value.
    • getTop

      public String getTop()
      Returns the top position of the toolbox.
      Returns:
      The top position value.
    • getRight

      public String getRight()
      Returns the right position of the toolbox.
      Returns:
      The right position value.
    • getBottom

      public String getBottom()
      Returns the bottom position of the toolbox.
      Returns:
      The bottom position value.
    • getFeature

      public EChartsToolbox.Feature 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:
      initFromJson in interface com.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:
      toJsonValue in interface com.oorian.json.Jsonable
      Returns:
      The JSON representation of this EChartsToolbox.
    • toJsonString

      public String toJsonString()
      Converts this EChartsToolbox to a JSON string.
      Specified by:
      toJsonString in interface com.oorian.json.Jsonable
      Returns:
      The JSON string representation of this EChartsToolbox.