public class MeterOptions extends BaseOptions
Modifier and Type | Field and Description |
---|---|
static IsColor |
DEFAULT_DISPLAY_COLOR
Default color of display.
|
static java.lang.String |
DEFAULT_FORMAT
Default format to apply displaying the value or percentage
|
Constructor and Description |
---|
MeterOptions(AbstractChart<?,?> chart)
Builds the object storing the chart instance.
|
Modifier and Type | Method and Description |
---|---|
double |
getCircumference()
Returns the the sweep to allow arcs to cover.
|
double |
getCutoutPercentage()
Returns the the percentage of the chart that is cut out of the middle.
|
MeterDisplay |
getDisplay() |
IsColor |
getDisplayFontColor() |
java.lang.String |
getFontFamily() |
FontStyle |
getFontStyle() |
java.lang.String |
getFormat() |
Hover |
getHover() |
Layout |
getLayout() |
Legend |
getLegend() |
double |
getRotation()
returns the starting angle to draw arcs from.
|
Tooltips |
getTooltips() |
void |
setCircumference(double circumference)
Sets the sweep to allow arcs to cover.
|
void |
setCutoutPercentage(double cutoutPercentage)
Sets the percentage of the chart that is cut out of the middle.
|
void |
setDisplay(MeterDisplay display) |
void |
setDisplayFontColor(IsColor displayFontColor) |
void |
setFontFamily(java.lang.String fontFamily) |
void |
setFontStyle(FontStyle fontStyle) |
void |
setFormat(java.lang.String format) |
void |
setLegendCallBack(LegendCallback legendCallBack) |
void |
setRotation(double rotation)
Sets the starting angle to draw arcs from.
|
addHandler, generateLegend, getAnimation, getDevicePixelRatio, getElements, getEvents, getLegendCallBack, getPlugins, getResponsiveAnimationDuration, getTitle, isAnimationEnable, isMaintainAspectRatio, isResponsive, onClick, onHover, onItemClick, onResize, removeHandler, setAnimationEnabled, setDevicePixelRatio, setEvents, setMaintainAspectRatio, setResponsive, setResponsiveAnimationDuration
onAdd, onRemove
getChart
checkAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, type
public static final java.lang.String DEFAULT_FORMAT
public static final IsColor DEFAULT_DISPLAY_COLOR
public MeterOptions(AbstractChart<?,?> chart)
chart
- chart instancepublic void setCutoutPercentage(double cutoutPercentage)
cutoutPercentage
- the percentage of the chart that is cut out of the middle.public Hover getHover()
getHover
in class BaseOptions
public Layout getLayout()
getLayout
in class BaseOptions
public Legend getLegend()
getLegend
in class BaseOptions
public Tooltips getTooltips()
getTooltips
in class BaseOptions
public void setLegendCallBack(LegendCallback legendCallBack)
setLegendCallBack
in class BaseOptions
legendCallBack
- the legendCallBack to setpublic MeterDisplay getDisplay()
public void setDisplay(MeterDisplay display)
display
- the display to setpublic java.lang.String getFormat()
public void setFormat(java.lang.String format)
format
- the format to setpublic java.lang.String getFontFamily()
public void setFontFamily(java.lang.String fontFamily)
fontFamily
- the fontFamily to setpublic FontStyle getFontStyle()
public void setFontStyle(FontStyle fontStyle)
fontStyle
- the fontStyle to setpublic IsColor getDisplayFontColor()
public void setDisplayFontColor(IsColor displayFontColor)
displayFontColor
- the displayFontColor to setpublic double getCutoutPercentage()
Options.getCutoutPercentage()
.public void setRotation(double rotation)
rotation
- starting angle to draw arcs from.public double getRotation()
Options.getRotation()
.public void setCircumference(double circumference)
circumference
- the sweep to allow arcs to cover.public double getCircumference()
Options.getCircumference()
.