Class EChartsDetail

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

public class EChartsDetail extends Object implements com.oorian.json.Jsonable
Represents the detail configuration for ECharts gauge series. The detail displays the current value text on a gauge chart.
Author:
Oorian
  • Constructor Details

    • EChartsDetail

      public EChartsDetail()
      Default constructor.
  • Method Details

    • setShow

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

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

      public void setFormatter(String formatter)
      Sets the formatter for the detail value.
      Parameters:
      formatter - the formatter string or function
    • setColor

      public void setColor(String color)
      Sets the text color of the detail.
      Parameters:
      color - the color value
    • setFontFamily

      public void setFontFamily(String fontFamily)
      Sets the font family of the detail text.
      Parameters:
      fontFamily - the font family name
    • setFontSize

      public void setFontSize(Number fontSize)
      Sets the font size of the detail text.
      Parameters:
      fontSize - the font size in pixels
    • setFontWeight

      public void setFontWeight(String fontWeight)
      Sets the font weight of the detail text.
      Parameters:
      fontWeight - the font weight value
    • setWidth

      public void setWidth(Number width)
      Sets the width of the detail area.
      Parameters:
      width - the width in pixels
    • setHeight

      public void setHeight(Number height)
      Sets the height of the detail area.
      Parameters:
      height - the height in pixels
    • setBackgroundColor

      public void setBackgroundColor(String backgroundColor)
      Sets the background color of the detail area.
      Parameters:
      backgroundColor - the background color value
    • setBorderRadius

      public void setBorderRadius(Number borderRadius)
      Sets the border radius of the detail area.
      Parameters:
      borderRadius - the border radius in pixels
    • setBorderColor

      public void setBorderColor(String borderColor)
      Sets the border color of the detail area.
      Parameters:
      borderColor - the border color value
    • setBorderWidth

      public void setBorderWidth(Number borderWidth)
      Sets the border width of the detail area.
      Parameters:
      borderWidth - the border width in pixels
    • getShow

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

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

      public String getFormatter()
      Gets the formatter for the detail value.
      Returns:
      the formatter string or function
    • getColor

      public String getColor()
      Gets the text color of the detail.
      Returns:
      the color value
    • getFontFamily

      public String getFontFamily()
      Gets the font family of the detail text.
      Returns:
      the font family name
    • getFontSize

      public Number getFontSize()
      Gets the font size of the detail text.
      Returns:
      the font size in pixels
    • getFontWeight

      public String getFontWeight()
      Gets the font weight of the detail text.
      Returns:
      the font weight value
    • getWidth

      public Number getWidth()
      Gets the width of the detail area.
      Returns:
      the width in pixels
    • getHeight

      public Number getHeight()
      Gets the height of the detail area.
      Returns:
      the height in pixels
    • getBackgroundColor

      public String getBackgroundColor()
      Gets the background color of the detail area.
      Returns:
      the background color value
    • getBorderRadius

      public Number getBorderRadius()
      Gets the border radius of the detail area.
      Returns:
      the border radius in pixels
    • getBorderColor

      public String getBorderColor()
      Gets the border color of the detail area.
      Returns:
      the border color value
    • getBorderWidth

      public Number getBorderWidth()
      Gets the border width of the detail area.
      Returns:
      the border width in pixels
    • 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