Class EChartsPointer

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

public class EChartsPointer extends Object implements com.oorian.json.Jsonable
Represents the pointer configuration for ECharts gauge series. The pointer is the indicator that shows the current value on a gauge chart.
Author:
Oorian
  • Constructor Details

    • EChartsPointer

      public EChartsPointer()
      Default constructor.
  • Method Details

    • setShow

      public void setShow(Boolean show)
      Sets whether to show the pointer.
      Parameters:
      show - true to show the pointer, false to hide it
    • setLength

      public void setLength(Number length)
      Sets the length of the pointer.
      Parameters:
      length - the length value (can be percentage or absolute)
    • setWidth

      public void setWidth(Number width)
      Sets the width of the pointer.
      Parameters:
      width - the width in pixels
    • setIcon

      public void setIcon(String icon)
      Sets the icon for the pointer.
      Parameters:
      icon - the icon path or symbol
    • setOffsetCenter

      public void setOffsetCenter(Number offsetCenter)
      Sets the offset from center for the pointer.
      Parameters:
      offsetCenter - the offset value
    • setItemStyle

      public void setItemStyle(EChartsItemStyle itemStyle)
      Sets the item style configuration for the pointer.
      Parameters:
      itemStyle - the item style configuration
    • getShow

      public Boolean getShow()
      Gets whether to show the pointer.
      Returns:
      true if the pointer is shown, false otherwise
    • getLength

      public Number getLength()
      Gets the length of the pointer.
      Returns:
      the length value
    • getWidth

      public Number getWidth()
      Gets the width of the pointer.
      Returns:
      the width in pixels
    • getIcon

      public String getIcon()
      Gets the icon for the pointer.
      Returns:
      the icon path or symbol
    • getOffsetCenter

      public Number getOffsetCenter()
      Gets the offset from center for the pointer.
      Returns:
      the offset value
    • getItemStyle

      public EChartsItemStyle getItemStyle()
      Gets the item style configuration for the pointer.
      Returns:
      the item style configuration
    • initFromJson

      public void initFromJson(com.oorian.json.JsonValue json)
      Specified by:
      initFromJson in interface com.oorian.json.Jsonable
    • toJsonValue

      public com.oorian.json.JsonValue toJsonValue()
      Specified by:
      toJsonValue in interface com.oorian.json.Jsonable
    • toJsonString

      public String toJsonString()
      Specified by:
      toJsonString in interface com.oorian.json.Jsonable