Package com.oorian.echarts.options
Class EChartsGrid
java.lang.Object
com.oorian.echarts.options.EChartsGrid
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the bottom position of the grid.Returns whether the grid region contains axis tick labels.Returns the height of the grid.getLeft()Returns the left position of the grid.getRight()Returns the right position of the grid.getTop()Returns the top position of the grid.getWidth()Returns the width of the grid.voidinitFromJson(com.oorian.json.JsonValue json) Initializes this EChartsGrid from a JSON value.voidSets the bottom position of the grid.voidsetContainLabel(Boolean containLabel) Sets whether the grid region contains axis tick labels.voidSets the height of the grid.voidSets the left position of the grid.voidSets the right position of the grid.voidSets the top position of the grid.voidSets the width of the grid.Converts this EChartsGrid to a JSON string.com.oorian.json.JsonValueConverts this EChartsGrid 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
-
EChartsGrid
public EChartsGrid()Creates a new EChartsGrid instance with default settings.
-
-
Method Details
-
setLeft
Sets the left position of the grid.- Parameters:
left- The left position value (e.g., "10%", "80").
-
setTop
Sets the top position of the grid.- Parameters:
top- The top position value (e.g., "10%", "60").
-
setRight
Sets the right position of the grid.- Parameters:
right- The right position value (e.g., "10%", "80").
-
setBottom
Sets the bottom position of the grid.- Parameters:
bottom- The bottom position value (e.g., "10%", "60").
-
setWidth
Sets the width of the grid.- Parameters:
width- The width value (e.g., "auto", "80%").
-
setHeight
Sets the height of the grid.- Parameters:
height- The height value (e.g., "auto", "80%").
-
setContainLabel
Sets whether the grid region contains axis tick labels.- Parameters:
containLabel- True if the grid should contain labels.
-
getLeft
Returns the left position of the grid.- Returns:
- The left position value.
-
getTop
Returns the top position of the grid.- Returns:
- The top position value.
-
getRight
Returns the right position of the grid.- Returns:
- The right position value.
-
getBottom
Returns the bottom position of the grid.- Returns:
- The bottom position value.
-
getWidth
Returns the width of the grid.- Returns:
- The width value.
-
getHeight
Returns the height of the grid.- Returns:
- The height value.
-
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:
initFromJsonin interfacecom.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:
toJsonValuein interfacecom.oorian.json.Jsonable- Returns:
- The JSON representation of this EChartsGrid.
-
toJsonString
Converts this EChartsGrid to a JSON string.- Specified by:
toJsonStringin interfacecom.oorian.json.Jsonable- Returns:
- The JSON string representation of this EChartsGrid.
-