Package com.oorian.echarts.options
Class EChartsAxisName
java.lang.Object
com.oorian.echarts.options.EChartsAxisName
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()Gets the horizontal alignment of the axis name text.Gets the background color of the axis name area.Gets the border color of the axis name area.Gets the border radius of the axis name area.Gets the border width of the axis name area.getColor()Gets the text color of the axis name.Gets the ellipsis string when text overflows.Gets the font family of the axis name text.Gets the font size of the axis name text.Gets the font style of the axis name text.Gets the font weight of the axis name text.Gets the formatter for the axis name.Gets the height of the axis name area.Gets the line height of the axis name text.Gets the overflow behavior of the axis name text.Gets the padding of the axis name area.Gets the shadow blur of the axis name area.Gets the shadow color of the axis name area.Gets the shadow X offset of the axis name area.Gets the shadow Y offset of the axis name area.getShow()Gets whether to show the axis name.Gets the text border color of the axis name.Gets the text border width of the axis name.Gets the text shadow blur of the axis name.Gets the text shadow color of the axis name.Gets the text shadow X offset of the axis name.Gets the text shadow Y offset of the axis name.Gets the vertical alignment of the axis name text.getWidth()Gets the width of the axis name area.voidinitFromJson(com.oorian.json.JsonValue json) voidSets the horizontal alignment of the axis name text.voidsetBackgroundColor(String backgroundColor) Sets the background color of the axis name area.voidsetBorderColor(String borderColor) Sets the border color of the axis name area.voidsetBorderRadius(Number borderRadius) Sets the border radius of the axis name area.voidsetBorderWidth(Number borderWidth) Sets the border width of the axis name area.voidSets the text color of the axis name.voidsetEllipsis(String ellipsis) Sets the ellipsis string when text overflows.voidsetFontFamily(String fontFamily) Sets the font family of the axis name text.voidsetFontSize(Number fontSize) Sets the font size of the axis name text.voidsetFontStyle(String fontStyle) Sets the font style of the axis name text.voidsetFontWeight(String fontWeight) Sets the font weight of the axis name text.voidsetFormatter(String formatter) Sets the formatter for the axis name.voidSets the height of the axis name area.voidsetLineHeight(Number lineHeight) Sets the line height of the axis name text.voidsetOverflow(String overflow) Sets the overflow behavior of the axis name text.voidsetPadding(Number padding) Sets the padding of the axis name area.voidsetShadowBlur(Number shadowBlur) Sets the shadow blur of the axis name area.voidsetShadowColor(String shadowColor) Sets the shadow color of the axis name area.voidsetShadowOffsetX(Number shadowOffsetX) Sets the shadow X offset of the axis name area.voidsetShadowOffsetY(Number shadowOffsetY) Sets the shadow Y offset of the axis name area.voidSets whether to show the axis name.voidsetTextBorderColor(String textBorderColor) Sets the text border color of the axis name.voidsetTextBorderWidth(Number textBorderWidth) Sets the text border width of the axis name.voidsetTextShadowBlur(Number textShadowBlur) Sets the text shadow blur of the axis name.voidsetTextShadowColor(String textShadowColor) Sets the text shadow color of the axis name.voidsetTextShadowOffsetX(Number textShadowOffsetX) Sets the text shadow X offset of the axis name.voidsetTextShadowOffsetY(Number textShadowOffsetY) Sets the text shadow Y offset of the axis name.voidsetVerticalAlign(String verticalAlign) Sets the vertical alignment of the axis name text.voidSets the width of the axis name area.com.oorian.json.JsonValueMethods 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
-
EChartsAxisName
public EChartsAxisName()Default constructor.
-
-
Method Details
-
setShow
Sets whether to show the axis name.- Parameters:
show- true to show the axis name, false to hide it
-
setFormatter
Sets the formatter for the axis name.- Parameters:
formatter- the formatter string or function
-
setColor
Sets the text color of the axis name.- Parameters:
color- the color value
-
setFontStyle
Sets the font style of the axis name text.- Parameters:
fontStyle- the font style (e.g., 'normal', 'italic', 'oblique')
-
setFontWeight
Sets the font weight of the axis name text.- Parameters:
fontWeight- the font weight value
-
setFontFamily
Sets the font family of the axis name text.- Parameters:
fontFamily- the font family name
-
setFontSize
Sets the font size of the axis name text.- Parameters:
fontSize- the font size in pixels
-
setAlign
Sets the horizontal alignment of the axis name text.- Parameters:
align- the alignment value (e.g., 'left', 'center', 'right')
-
setVerticalAlign
Sets the vertical alignment of the axis name text.- Parameters:
verticalAlign- the vertical alignment value (e.g., 'top', 'middle', 'bottom')
-
setLineHeight
Sets the line height of the axis name text.- Parameters:
lineHeight- the line height in pixels
-
setBackgroundColor
Sets the background color of the axis name area.- Parameters:
backgroundColor- the background color value
-
setBorderColor
Sets the border color of the axis name area.- Parameters:
borderColor- the border color value
-
setBorderWidth
Sets the border width of the axis name area.- Parameters:
borderWidth- the border width in pixels
-
setBorderRadius
Sets the border radius of the axis name area.- Parameters:
borderRadius- the border radius in pixels
-
setPadding
Sets the padding of the axis name area.- Parameters:
padding- the padding in pixels
-
setShadowBlur
Sets the shadow blur of the axis name area.- Parameters:
shadowBlur- the shadow blur in pixels
-
setShadowColor
Sets the shadow color of the axis name area.- Parameters:
shadowColor- the shadow color value
-
setShadowOffsetX
Sets the shadow X offset of the axis name area.- Parameters:
shadowOffsetX- the shadow X offset in pixels
-
setShadowOffsetY
Sets the shadow Y offset of the axis name area.- Parameters:
shadowOffsetY- the shadow Y offset in pixels
-
setWidth
Sets the width of the axis name area.- Parameters:
width- the width in pixels
-
setHeight
Sets the height of the axis name area.- Parameters:
height- the height in pixels
-
setTextBorderColor
Sets the text border color of the axis name.- Parameters:
textBorderColor- the text border color value
-
setTextBorderWidth
Sets the text border width of the axis name.- Parameters:
textBorderWidth- the text border width in pixels
-
setTextShadowColor
Sets the text shadow color of the axis name.- Parameters:
textShadowColor- the text shadow color value
-
setTextShadowBlur
Sets the text shadow blur of the axis name.- Parameters:
textShadowBlur- the text shadow blur in pixels
-
setTextShadowOffsetX
Sets the text shadow X offset of the axis name.- Parameters:
textShadowOffsetX- the text shadow X offset in pixels
-
setTextShadowOffsetY
Sets the text shadow Y offset of the axis name.- Parameters:
textShadowOffsetY- the text shadow Y offset in pixels
-
setOverflow
Sets the overflow behavior of the axis name text.- Parameters:
overflow- the overflow value (e.g., 'none', 'truncate', 'break', 'breakAll')
-
setEllipsis
Sets the ellipsis string when text overflows.- Parameters:
ellipsis- the ellipsis string
-
getShow
Gets whether to show the axis name.- Returns:
- true if the axis name is shown, false otherwise
-
getFormatter
Gets the formatter for the axis name.- Returns:
- the formatter string or function
-
getColor
Gets the text color of the axis name.- Returns:
- the color value
-
getFontStyle
Gets the font style of the axis name text.- Returns:
- the font style
-
getFontWeight
Gets the font weight of the axis name text.- Returns:
- the font weight value
-
getFontFamily
Gets the font family of the axis name text.- Returns:
- the font family name
-
getFontSize
Gets the font size of the axis name text.- Returns:
- the font size in pixels
-
getAlign
Gets the horizontal alignment of the axis name text.- Returns:
- the alignment value
-
getVerticalAlign
Gets the vertical alignment of the axis name text.- Returns:
- the vertical alignment value
-
getLineHeight
Gets the line height of the axis name text.- Returns:
- the line height in pixels
-
getBackgroundColor
Gets the background color of the axis name area.- Returns:
- the background color value
-
getBorderColor
Gets the border color of the axis name area.- Returns:
- the border color value
-
getBorderWidth
Gets the border width of the axis name area.- Returns:
- the border width in pixels
-
getBorderRadius
Gets the border radius of the axis name area.- Returns:
- the border radius in pixels
-
getPadding
Gets the padding of the axis name area.- Returns:
- the padding in pixels
-
getShadowBlur
Gets the shadow blur of the axis name area.- Returns:
- the shadow blur in pixels
-
getShadowColor
Gets the shadow color of the axis name area.- Returns:
- the shadow color value
-
getShadowOffsetX
Gets the shadow X offset of the axis name area.- Returns:
- the shadow X offset in pixels
-
getShadowOffsetY
Gets the shadow Y offset of the axis name area.- Returns:
- the shadow Y offset in pixels
-
getWidth
Gets the width of the axis name area.- Returns:
- the width in pixels
-
getHeight
Gets the height of the axis name area.- Returns:
- the height in pixels
-
getTextBorderColor
Gets the text border color of the axis name.- Returns:
- the text border color value
-
getTextBorderWidth
Gets the text border width of the axis name.- Returns:
- the text border width in pixels
-
getTextShadowColor
Gets the text shadow color of the axis name.- Returns:
- the text shadow color value
-
getTextShadowBlur
Gets the text shadow blur of the axis name.- Returns:
- the text shadow blur in pixels
-
getTextShadowOffsetX
Gets the text shadow X offset of the axis name.- Returns:
- the text shadow X offset in pixels
-
getTextShadowOffsetY
Gets the text shadow Y offset of the axis name.- Returns:
- the text shadow Y offset in pixels
-
getOverflow
Gets the overflow behavior of the axis name text.- Returns:
- the overflow value
-
getEllipsis
Gets the ellipsis string when text overflows.- Returns:
- the ellipsis string
-
initFromJson
public void initFromJson(com.oorian.json.JsonValue json) - Specified by:
initFromJsonin interfacecom.oorian.json.Jsonable
-
toJsonValue
public com.oorian.json.JsonValue toJsonValue()- Specified by:
toJsonValuein interfacecom.oorian.json.Jsonable
-
toJsonString
- Specified by:
toJsonStringin interfacecom.oorian.json.Jsonable
-