Package com.oorian.echarts.options
Class EChartsAxisTick
java.lang.Object
com.oorian.echarts.options.EChartsAxisTick
- All Implemented Interfaces:
com.oorian.json.Jsonable
Represents the axis tick configuration for ECharts axes.
Controls the appearance and behavior of tick marks along the axis.
- Author:
- Oorian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets whether the ticks are aligned with the labels.Gets whether the ticks are inside the axis area.Gets the interval between ticks.Gets the length of the tick marks.Gets the line style for the tick marks.getShow()Gets whether the axis ticks are displayed.voidinitFromJson(com.oorian.json.JsonValue json) Initializes this EChartsAxisTick from a JSON value.voidsetAlignWithLabel(Boolean alignWithLabel) Sets whether the ticks are aligned with the labels.voidSets whether the ticks are inside the axis area.voidsetInterval(Number interval) Sets the interval between ticks.voidSets the length of the tick marks.voidsetLineStyle(EChartsLineStyle lineStyle) Sets the line style for the tick marks.voidSets whether the axis ticks are displayed.Converts this EChartsAxisTick to a JSON string.com.oorian.json.JsonValueConverts this EChartsAxisTick 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
-
EChartsAxisTick
public EChartsAxisTick()Constructs a new EChartsAxisTick with default settings.
-
-
Method Details
-
setShow
Sets whether the axis ticks are displayed.- Parameters:
show- true to show the ticks, false to hide them
-
setAlignWithLabel
Sets whether the ticks are aligned with the labels.- Parameters:
alignWithLabel- true to align ticks with labels
-
setInterval
Sets the interval between ticks.- Parameters:
interval- the tick interval
-
setInside
Sets whether the ticks are inside the axis area.- Parameters:
inside- true for inside, false for outside
-
setLength
Sets the length of the tick marks.- Parameters:
length- the tick length in pixels
-
setLineStyle
Sets the line style for the tick marks.- Parameters:
lineStyle- the line style configuration
-
getShow
Gets whether the axis ticks are displayed.- Returns:
- true if shown, false if hidden
-
getAlignWithLabel
Gets whether the ticks are aligned with the labels.- Returns:
- true if aligned with labels
-
getInterval
Gets the interval between ticks.- Returns:
- the tick interval
-
getInside
Gets whether the ticks are inside the axis area.- Returns:
- true for inside, false for outside
-
getLength
Gets the length of the tick marks.- Returns:
- the tick length in pixels
-
getLineStyle
Gets the line style for the tick marks.- Returns:
- the line style configuration
-
initFromJson
public void initFromJson(com.oorian.json.JsonValue json) Initializes this EChartsAxisTick from a JSON value.- Specified by:
initFromJsonin interfacecom.oorian.json.Jsonable- Parameters:
json- the JSON value to parse
-
toJsonValue
public com.oorian.json.JsonValue toJsonValue()Converts this EChartsAxisTick to a JSON value.- Specified by:
toJsonValuein interfacecom.oorian.json.Jsonable- Returns:
- the JSON representation
-
toJsonString
Converts this EChartsAxisTick to a JSON string.- Specified by:
toJsonStringin interfacecom.oorian.json.Jsonable- Returns:
- the JSON string representation
-