Package com.oorian.echarts.options
Class EChartsDetail
java.lang.Object
com.oorian.echarts.options.EChartsDetail
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the background color of the detail area.Gets the border color of the detail area.Gets the border radius of the detail area.Gets the border width of the detail area.getColor()Gets the text color of the detail.Gets the font family of the detail text.Gets the font size of the detail text.Gets the font weight of the detail text.Gets the formatter for the detail value.Gets the height of the detail area.Gets the offset from center for the detail.getShow()Gets whether to show the detail.getWidth()Gets the width of the detail area.voidinitFromJson(com.oorian.json.JsonValue json) voidsetBackgroundColor(String backgroundColor) Sets the background color of the detail area.voidsetBorderColor(String borderColor) Sets the border color of the detail area.voidsetBorderRadius(Number borderRadius) Sets the border radius of the detail area.voidsetBorderWidth(Number borderWidth) Sets the border width of the detail area.voidSets the text color of the detail.voidsetFontFamily(String fontFamily) Sets the font family of the detail text.voidsetFontSize(Number fontSize) Sets the font size of the detail text.voidsetFontWeight(String fontWeight) Sets the font weight of the detail text.voidsetFormatter(String formatter) Sets the formatter for the detail value.voidSets the height of the detail area.voidsetOffsetCenter(Number offsetCenter) Sets the offset from center for the detail.voidSets whether to show the detail.voidSets the width of the detail 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
-
EChartsDetail
public EChartsDetail()Default constructor.
-
-
Method Details
-
setShow
Sets whether to show the detail.- Parameters:
show- true to show the detail, false to hide it
-
setOffsetCenter
Sets the offset from center for the detail.- Parameters:
offsetCenter- the offset value
-
setFormatter
Sets the formatter for the detail value.- Parameters:
formatter- the formatter string or function
-
setColor
Sets the text color of the detail.- Parameters:
color- the color value
-
setFontFamily
Sets the font family of the detail text.- Parameters:
fontFamily- the font family name
-
setFontSize
Sets the font size of the detail text.- Parameters:
fontSize- the font size in pixels
-
setFontWeight
Sets the font weight of the detail text.- Parameters:
fontWeight- the font weight value
-
setWidth
Sets the width of the detail area.- Parameters:
width- the width in pixels
-
setHeight
Sets the height of the detail area.- Parameters:
height- the height in pixels
-
setBackgroundColor
Sets the background color of the detail area.- Parameters:
backgroundColor- the background color value
-
setBorderRadius
Sets the border radius of the detail area.- Parameters:
borderRadius- the border radius in pixels
-
setBorderColor
Sets the border color of the detail area.- Parameters:
borderColor- the border color value
-
setBorderWidth
Sets the border width of the detail area.- Parameters:
borderWidth- the border width in pixels
-
getShow
Gets whether to show the detail.- Returns:
- true if the detail is shown, false otherwise
-
getOffsetCenter
Gets the offset from center for the detail.- Returns:
- the offset value
-
getFormatter
Gets the formatter for the detail value.- Returns:
- the formatter string or function
-
getColor
Gets the text color of the detail.- Returns:
- the color value
-
getFontFamily
Gets the font family of the detail text.- Returns:
- the font family name
-
getFontSize
Gets the font size of the detail text.- Returns:
- the font size in pixels
-
getFontWeight
Gets the font weight of the detail text.- Returns:
- the font weight value
-
getWidth
Gets the width of the detail area.- Returns:
- the width in pixels
-
getHeight
Gets the height of the detail area.- Returns:
- the height in pixels
-
getBackgroundColor
Gets the background color of the detail area.- Returns:
- the background color value
-
getBorderRadius
Gets the border radius of the detail area.- Returns:
- the border radius in pixels
-
getBorderColor
Gets the border color of the detail area.- Returns:
- the border color value
-
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:
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
-