Class EChartsGrid

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

public class EChartsGrid extends Object implements com.oorian.json.Jsonable
Represents the grid configuration for an ECharts chart. The grid defines the layout container for Cartesian coordinate systems.
Author:
Oorian
  • Constructor Details

    • EChartsGrid

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

    • setLeft

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

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

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

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

      public void setWidth(String width)
      Sets the width of the grid.
      Parameters:
      width - The width value (e.g., "auto", "80%").
    • setHeight

      public void setHeight(String height)
      Sets the height of the grid.
      Parameters:
      height - The height value (e.g., "auto", "80%").
    • setContainLabel

      public void setContainLabel(Boolean containLabel)
      Sets whether the grid region contains axis tick labels.
      Parameters:
      containLabel - True if the grid should contain labels.
    • getLeft

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

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

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

      public String getBottom()
      Returns the bottom position of the grid.
      Returns:
      The bottom position value.
    • getWidth

      public String getWidth()
      Returns the width of the grid.
      Returns:
      The width value.
    • getHeight

      public String getHeight()
      Returns the height of the grid.
      Returns:
      The height value.
    • getContainLabel

      public Boolean getContainLabel()
      Returns whether the grid region contains axis tick labels.
      Returns:
      True if the grid contains labels.
    • initFromJson

      public void initFromJson(com.oorian.json.JsonValue json)
      Initializes this EChartsGrid 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 EChartsGrid to a JSON value.
      Specified by:
      toJsonValue in interface com.oorian.json.Jsonable
      Returns:
      The JSON representation of this EChartsGrid.
    • toJsonString

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