Package org.zkoss.chart.plotOptions
Class GaugeDialPlotOptions
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.plotOptions.GaugeDialPlotOptions
-
- All Implemented Interfaces:
Serializable,OptionDataListener,org.zkoss.json.JSONAware
public class GaugeDialPlotOptions extends Optionable
An option for gauge dial plot forPoint.getDial()andGaugePlotOptions.getDial()to use.All the options in this class support
DynamicalAttribute.- Author:
- jumperchen, RaymondChao
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description GaugeDialPlotOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorgetBackgroundColor()Returns the background or fill color of the gauge's dial.StringgetBaseLength()Returns the length of the dial's base part, relative to the total radius or length of the dial.ObjectgetBaseWidth()Returns the width of the base of the gauge dial.ColorgetBorderColor()Returns the border color or stroke of the gauge's dial.ObjectgetBorderRadius()Returns the border radius of the gauge dial.NumbergetBorderWidth()Returns the width of the gauge dial border in pixels.StringgetRadius()Returns the radius or length of the dial, in percentages relative to the radius of the gauge itself.StringgetRearLength()Returns the length of the dial's rear end, the part that extends out on the other side of the pivot.ObjectgetTopWidth()Returns the width of the top of the dial, closest to the perimeter.voidsetBackgroundColor(String color)Sets the background or fill color of the gauge's dial.voidsetBackgroundColor(Color color)Sets the background or fill color of the gauge's dial.voidsetBackgroundColor(LinearGradient color)Sets the background or fill color of the gauge's dial.voidsetBackgroundColor(RadialGradient color)Sets the background or fill color of the gauge's dial.voidsetBaseLength(Number baseLength)Sets the length of the dial's base part in pixels.voidsetBaseLength(String baseLength)Sets the length of the dial's base part, relative to the total radius or length of the dial.voidsetBaseWidth(Number baseWidth)Sets the pixel width of the base of the gauge dial.voidsetBaseWidth(String baseWidth)Sets the width of the base of the gauge dial as a percentage of the dial radius, such as "18%".voidsetBorderColor(String color)Sets the border color or stroke of the gauge's dial.voidsetBorderColor(Color color)Sets the border color or stroke of the gauge's dial.voidsetBorderColor(LinearGradient color)Sets the border color or stroke of the gauge's dial.voidsetBorderRadius(Number borderRadius)Sets the border radius of the gauge dial in pixels.voidsetBorderRadius(String borderRadius)Sets the border radius of the gauge dial as a percentage of the dial radius, such as "9%".voidsetBorderWidth(Number borderWidth)Sets the width of the gauge dial border in pixels.voidsetRadius(Number radius)Sets the radius or length of the dial in pixels.voidsetRadius(String radius)Sets the radius or length of the dial, in percentages relative to the radius of the gauge itself.voidsetRearLength(Number rearLength)Sets the length of the dial's rear end in pixels.voidsetRearLength(String rearLength)Sets the length of the dial's rear end, the part that extends out on the other side of the pivot.voidsetTopWidth(Number topWidth)Sets the width of the top of the dial, closest to the perimeter.voidsetTopWidth(String topWidth)Sets the width of the top of the dial as a percentage of the dial radius, such as "4%".voidstBorderColor(RadialGradient color)Sets the border color or stroke of the gauge's dial.-
Methods inherited from class org.zkoss.chart.Optionable
addExtraAttr, addOptionDataListener, clearOptonDataListener, clone, containsKey, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getAttr, getAttr, getClientState, getExtraAttr, merge, onChange, removeExtraAttr, removeKey, removeOptionDataListener, setAttr, setAttr, setAttr, setAttr, toJSONString, toString
-
-
-
-
Method Detail
-
getBackgroundColor
public Color getBackgroundColor()
Returns the background or fill color of the gauge's dial.Default: "var(--highcharts-neutral-color-100)".
-
setBackgroundColor
public void setBackgroundColor(Color color)
Sets the background or fill color of the gauge's dial.
-
setBackgroundColor
public void setBackgroundColor(String color)
Sets the background or fill color of the gauge's dial.
-
setBackgroundColor
public void setBackgroundColor(LinearGradient color)
Sets the background or fill color of the gauge's dial.
-
setBackgroundColor
public void setBackgroundColor(RadialGradient color)
Sets the background or fill color of the gauge's dial.
-
getBaseLength
public String getBaseLength()
Returns the length of the dial's base part, relative to the total radius or length of the dial.Default: 0.
-
setBaseLength
public void setBaseLength(String baseLength)
Sets the length of the dial's base part, relative to the total radius or length of the dial.
-
setBaseLength
public void setBaseLength(Number baseLength)
Sets the length of the dial's base part in pixels.- Since:
- 13.1.1.0
-
getBaseWidth
public Object getBaseWidth()
Returns the width of the base of the gauge dial. The base is the part closest to the pivot, defined by baseLength.Default: null.
-
setBaseWidth
public void setBaseWidth(Number baseWidth)
Sets the pixel width of the base of the gauge dial. The base is the part closest to the pivot, defined by baseLength.
-
setBaseWidth
public void setBaseWidth(String baseWidth)
Sets the width of the base of the gauge dial as a percentage of the dial radius, such as "18%".- Since:
- 13.1.1.0
-
getBorderColor
public Color getBorderColor()
Returns the border color or stroke of the gauge's dial. By default, the borderWidth is 0, so this must be set in addition to a custom border color.Default: "var(--highcharts-neutral-color-20)".
-
setBorderColor
public void setBorderColor(Color color)
Sets the border color or stroke of the gauge's dial. By default, the borderWidth is 0, so this must be set in addition to a custom border color.
-
setBorderColor
public void setBorderColor(String color)
Sets the border color or stroke of the gauge's dial. By default, the borderWidth is 0, so this must be set in addition to a custom border color.
-
setBorderColor
public void setBorderColor(LinearGradient color)
Sets the border color or stroke of the gauge's dial. By default, the borderWidth is 0, so this must be set in addition to a custom border color.
-
stBorderColor
public void stBorderColor(RadialGradient color)
Sets the border color or stroke of the gauge's dial. By default, the borderWidth is 0, so this must be set in addition to a custom border color.
-
getBorderRadius
public Object getBorderRadius()
Returns the border radius of the gauge dial.Default: 9%.
- Since:
- 13.1.1.0
-
setBorderRadius
public void setBorderRadius(Number borderRadius)
Sets the border radius of the gauge dial in pixels.- Since:
- 13.1.1.0
-
setBorderRadius
public void setBorderRadius(String borderRadius)
Sets the border radius of the gauge dial as a percentage of the dial radius, such as "9%".- Since:
- 13.1.1.0
-
getBorderWidth
public Number getBorderWidth()
Returns the width of the gauge dial border in pixels.Default: 0.
-
setBorderWidth
public void setBorderWidth(Number borderWidth)
Sets the width of the gauge dial border in pixels.
-
getRadius
public String getRadius()
Returns the radius or length of the dial, in percentages relative to the radius of the gauge itself.Default: 70%.
-
setRadius
public void setRadius(String radius)
Sets the radius or length of the dial, in percentages relative to the radius of the gauge itself.
-
setRadius
public void setRadius(Number radius)
Sets the radius or length of the dial in pixels.- Since:
- 13.1.1.0
-
getRearLength
public String getRearLength()
Returns the length of the dial's rear end, the part that extends out on the other side of the pivot. Relative to the dial's length.Default: 9%.
-
setRearLength
public void setRearLength(String rearLength)
Sets the length of the dial's rear end, the part that extends out on the other side of the pivot. Relative to the dial's length.
-
setRearLength
public void setRearLength(Number rearLength)
Sets the length of the dial's rear end in pixels.- Since:
- 13.1.1.0
-
getTopWidth
public Object getTopWidth()
Returns the width of the top of the dial, closest to the perimeter. The pivot narrows in from the base to the top.Default: null.
-
setTopWidth
public void setTopWidth(Number topWidth)
Sets the width of the top of the dial, closest to the perimeter. The pivot narrows in from the base to the top.
-
setTopWidth
public void setTopWidth(String topWidth)
Sets the width of the top of the dial as a percentage of the dial radius, such as "4%".- Since:
- 13.1.1.0
-
-