Class EChartsAxisName

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

public class EChartsAxisName extends Object implements com.oorian.json.Jsonable
Represents the axis name text style configuration for ECharts axis components. EChartsAxis name is the label displayed at the end of an axis.
Author:
Oorian
  • Constructor Details

    • EChartsAxisName

      public EChartsAxisName()
      Default constructor.
  • Method Details

    • setShow

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

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

      public void setColor(String color)
      Sets the text color of the axis name.
      Parameters:
      color - the color value
    • setFontStyle

      public void setFontStyle(String fontStyle)
      Sets the font style of the axis name text.
      Parameters:
      fontStyle - the font style (e.g., 'normal', 'italic', 'oblique')
    • setFontWeight

      public void setFontWeight(String fontWeight)
      Sets the font weight of the axis name text.
      Parameters:
      fontWeight - the font weight value
    • setFontFamily

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

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

      public void setAlign(String align)
      Sets the horizontal alignment of the axis name text.
      Parameters:
      align - the alignment value (e.g., 'left', 'center', 'right')
    • setVerticalAlign

      public void setVerticalAlign(String verticalAlign)
      Sets the vertical alignment of the axis name text.
      Parameters:
      verticalAlign - the vertical alignment value (e.g., 'top', 'middle', 'bottom')
    • setLineHeight

      public void setLineHeight(Number lineHeight)
      Sets the line height of the axis name text.
      Parameters:
      lineHeight - the line height in pixels
    • setBackgroundColor

      public void setBackgroundColor(String backgroundColor)
      Sets the background color of the axis name area.
      Parameters:
      backgroundColor - the background color value
    • setBorderColor

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

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

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

      public void setPadding(Number padding)
      Sets the padding of the axis name area.
      Parameters:
      padding - the padding in pixels
    • setShadowBlur

      public void setShadowBlur(Number shadowBlur)
      Sets the shadow blur of the axis name area.
      Parameters:
      shadowBlur - the shadow blur in pixels
    • setShadowColor

      public void setShadowColor(String shadowColor)
      Sets the shadow color of the axis name area.
      Parameters:
      shadowColor - the shadow color value
    • setShadowOffsetX

      public void setShadowOffsetX(Number shadowOffsetX)
      Sets the shadow X offset of the axis name area.
      Parameters:
      shadowOffsetX - the shadow X offset in pixels
    • setShadowOffsetY

      public void setShadowOffsetY(Number shadowOffsetY)
      Sets the shadow Y offset of the axis name area.
      Parameters:
      shadowOffsetY - the shadow Y offset in pixels
    • setWidth

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

      public void setHeight(Number height)
      Sets the height of the axis name area.
      Parameters:
      height - the height in pixels
    • setTextBorderColor

      public void setTextBorderColor(String textBorderColor)
      Sets the text border color of the axis name.
      Parameters:
      textBorderColor - the text border color value
    • setTextBorderWidth

      public void setTextBorderWidth(Number textBorderWidth)
      Sets the text border width of the axis name.
      Parameters:
      textBorderWidth - the text border width in pixels
    • setTextShadowColor

      public void setTextShadowColor(String textShadowColor)
      Sets the text shadow color of the axis name.
      Parameters:
      textShadowColor - the text shadow color value
    • setTextShadowBlur

      public void setTextShadowBlur(Number textShadowBlur)
      Sets the text shadow blur of the axis name.
      Parameters:
      textShadowBlur - the text shadow blur in pixels
    • setTextShadowOffsetX

      public void setTextShadowOffsetX(Number textShadowOffsetX)
      Sets the text shadow X offset of the axis name.
      Parameters:
      textShadowOffsetX - the text shadow X offset in pixels
    • setTextShadowOffsetY

      public void setTextShadowOffsetY(Number textShadowOffsetY)
      Sets the text shadow Y offset of the axis name.
      Parameters:
      textShadowOffsetY - the text shadow Y offset in pixels
    • setOverflow

      public void setOverflow(String overflow)
      Sets the overflow behavior of the axis name text.
      Parameters:
      overflow - the overflow value (e.g., 'none', 'truncate', 'break', 'breakAll')
    • setEllipsis

      public void setEllipsis(String ellipsis)
      Sets the ellipsis string when text overflows.
      Parameters:
      ellipsis - the ellipsis string
    • getShow

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

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

      public String getColor()
      Gets the text color of the axis name.
      Returns:
      the color value
    • getFontStyle

      public String getFontStyle()
      Gets the font style of the axis name text.
      Returns:
      the font style
    • getFontWeight

      public String getFontWeight()
      Gets the font weight of the axis name text.
      Returns:
      the font weight value
    • getFontFamily

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

      public Number getFontSize()
      Gets the font size of the axis name text.
      Returns:
      the font size in pixels
    • getAlign

      public String getAlign()
      Gets the horizontal alignment of the axis name text.
      Returns:
      the alignment value
    • getVerticalAlign

      public String getVerticalAlign()
      Gets the vertical alignment of the axis name text.
      Returns:
      the vertical alignment value
    • getLineHeight

      public Number getLineHeight()
      Gets the line height of the axis name text.
      Returns:
      the line height in pixels
    • getBackgroundColor

      public String getBackgroundColor()
      Gets the background color of the axis name area.
      Returns:
      the background color value
    • getBorderColor

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

      public Number getBorderWidth()
      Gets the border width of the axis name area.
      Returns:
      the border width in pixels
    • getBorderRadius

      public Number getBorderRadius()
      Gets the border radius of the axis name area.
      Returns:
      the border radius in pixels
    • getPadding

      public Number getPadding()
      Gets the padding of the axis name area.
      Returns:
      the padding in pixels
    • getShadowBlur

      public Number getShadowBlur()
      Gets the shadow blur of the axis name area.
      Returns:
      the shadow blur in pixels
    • getShadowColor

      public String getShadowColor()
      Gets the shadow color of the axis name area.
      Returns:
      the shadow color value
    • getShadowOffsetX

      public Number getShadowOffsetX()
      Gets the shadow X offset of the axis name area.
      Returns:
      the shadow X offset in pixels
    • getShadowOffsetY

      public Number getShadowOffsetY()
      Gets the shadow Y offset of the axis name area.
      Returns:
      the shadow Y offset in pixels
    • getWidth

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

      public Number getHeight()
      Gets the height of the axis name area.
      Returns:
      the height in pixels
    • getTextBorderColor

      public String getTextBorderColor()
      Gets the text border color of the axis name.
      Returns:
      the text border color value
    • getTextBorderWidth

      public Number getTextBorderWidth()
      Gets the text border width of the axis name.
      Returns:
      the text border width in pixels
    • getTextShadowColor

      public String getTextShadowColor()
      Gets the text shadow color of the axis name.
      Returns:
      the text shadow color value
    • getTextShadowBlur

      public Number getTextShadowBlur()
      Gets the text shadow blur of the axis name.
      Returns:
      the text shadow blur in pixels
    • getTextShadowOffsetX

      public Number getTextShadowOffsetX()
      Gets the text shadow X offset of the axis name.
      Returns:
      the text shadow X offset in pixels
    • getTextShadowOffsetY

      public Number getTextShadowOffsetY()
      Gets the text shadow Y offset of the axis name.
      Returns:
      the text shadow Y offset in pixels
    • getOverflow

      public String getOverflow()
      Gets the overflow behavior of the axis name text.
      Returns:
      the overflow value
    • getEllipsis

      public String getEllipsis()
      Gets the ellipsis string when text overflows.
      Returns:
      the ellipsis string
    • 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