public final class TicksNumberFormat extends AbstractModel<P,IsDefaultNumberFormatOptions>
NumberFormatOptions| Modifier and Type | Method and Description |
|---|---|
CompactDisplay |
getCompactDisplay()
Returns the compact display when
Notation.COMPACT is set.PAY ATTENTION This method is not supported on Safari. |
Currency |
getCurrency()
Returns the currency to use in currency formatting.
|
CurrencyDisplay |
getCurrencyDisplay()
Returns how to display the currency in currency formatting.
|
CurrencySign |
getCurrencySign()
In many locales, accounting format means to wrap the number with parentheses instead of appending a minus sign.
You can enable this formatting by setting the currency sign option to "accounting" otherwise "standard". PAY ATTENTION This method is not supported on Safari. |
LocaleMatcher |
getLocaleMatcher()
Returns the locale matching algorithm to use.
|
int |
getMaximumFractionDigits()
Returns the maximum number of fraction digits to use.
The default for plain number formatting is the larger of NumberFormatOptions.getMinimumFractionDigits() and 3.The default for currency formatting is the larger of NumberFormatOptions.getMinimumFractionDigits() and the number of minor unit digits provided by currency, see
Currency.getMinimumFractionDigits().The default for percent formatting is the larger of NumberFormatOptions.getMinimumFractionDigits() and 0. |
int |
getMaximumSignificantDigits()
Returns the maximum number of significant digits to use.
|
int |
getMinimumFractionDigits()
Returns the minimum number of fraction digits to use.
The default for plain number and percent formatting is 0. The default for currency formatting is the number of minor unit digits provided by the currency, see Currency.getMinimumFractionDigits(). |
int |
getMinimumIntegerDigits()
Returns the minimum number of integer digits to use.
|
int |
getMinimumSignificantDigits()
Returns the minimum number of significant digits to use.
|
Notation |
getNotation()
Returns the formatting that should be displayed for the number.
PAY ATTENTION This method is not supported on Safari. |
NumberingSystem |
getNumberingSystem()
Returns the numbering system to use.
|
SignDisplay |
getSignDisplay()
Returns when to display the sign for the number.
PAY ATTENTION This method is not supported on Safari. |
Style |
getStyle()
Returns the formatting style to use.
|
MeasureUnitDisplay |
getUnitOfMeasureDisplay()
Returns the unit formatting style to use in unit formatting.
PAY ATTENTION This method is not supported on Safari. |
List<MeasureUnit> |
getUnitsOfMeasure()
Returns an unmodifiable list of units to use in unit formatting.
PAY ATTENTION This method is not supported on Safari. |
boolean |
isUseGrouping()
Returns
true whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. |
void |
setCompactDisplay(CompactDisplay display)
Set the compact display when
Notation.COMPACT is set.PAY ATTENTION This method is not supported on Safari. |
void |
setCurrency(Currency currency)
Sets the currency to use in currency formatting.
|
void |
setCurrencyDisplay(CurrencyDisplay currencyDisplay)
Sets how to display the currency in currency formatting.
|
void |
setCurrencySign(CurrencySign currencySign)
In many locales, accounting format means to wrap the number with parentheses instead of appending a minus sign.
You can enable this formatting by setting the currency sign option to "accounting" otherwise "standard". PAY ATTENTION This method is not supported on Safari. |
void |
setLocaleMatcher(LocaleMatcher localeMatcher)
Sets the locale matching algorithm to use.
|
void |
setMaximumFractionDigits(int maximumFractionDigits)
Sets the maximum number of fraction digits to use.
Possible values are from 0 to 20. |
void |
setMaximumSignificantDigits(int minimumIntegerDigits)
Sets the maximum number of significant digits to use.
Possible values are from 1 to 21. |
void |
setMinimumFractionDigits(int minimumFractionDigits)
Sets the minimum number of fraction digits to use.
Possible values are from 0 to 20. |
void |
setMinimumIntegerDigits(int minimumIntegerDigits)
Sets the minimum number of integer digits to use.
Possible values are from 1 to 21. |
void |
setMinimumSignificantDigits(int minimumIntegerDigits)
Sets the minimum number of significant digits to use.
Possible values are from 1 to 21. |
void |
setNotation(Notation notation)
Sets the formatting that should be displayed for the number.
PAY ATTENTION This method is not supported on Safari. |
void |
setNumberingSystem(NumberingSystem numberingSystem)
Sets the numbering system to use.
|
void |
setSignDisplay(SignDisplay signDisplay)
Sets when to display the sign for the number.
PAY ATTENTION This method is not supported on Safari. |
void |
setStyle(Style style)
Sets the formatting style to use.
|
void |
setUnitOfMeasureDisplay(MeasureUnitDisplay unitDisplay)
Sets the unit formatting style to use in unit formatting.
PAY ATTENTION This method is not supported on Safari. |
void |
setUnitsOfMeasure(List<MeasureUnit> units)
Sets the unit to use in unit formatting.
If more that 1 unit has been passed, a compound unit has been created. PAY ATTENTION This method is not supported on Safari. |
void |
setUnitsOfMeasure(MeasureUnit... units)
Sets the unit to use in unit formatting.
If more that 1 unit has been passed, a compound unit has been created. PAY ATTENTION This method is not supported on Safari. |
void |
setUseGrouping(boolean useGrouping)
Sets
true whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators. |
getDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModelcheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParentcheckDefaultValuesArgument, empty, getArrayValue, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typepublic final void setLocaleMatcher(LocaleMatcher localeMatcher)
setLocaleMatcher in interface IsNumberFormatlocaleMatcher - the locale matching algorithm to usepublic final LocaleMatcher getLocaleMatcher()
getLocaleMatcher in interface IsDefaultBaseFormatOptionspublic final void setNumberingSystem(NumberingSystem numberingSystem)
setNumberingSystem in interface IsNumberFormatnumberingSystem - the numbering system to usepublic final NumberingSystem getNumberingSystem()
getNumberingSystem in interface IsDefaultBaseFormatOptionspublic final void setCompactDisplay(CompactDisplay display)
Notation.COMPACT is set.setCompactDisplay in interface IsNumberFormatdisplay - the compact display when Notation.COMPACT is setpublic final CompactDisplay getCompactDisplay()
Notation.COMPACT is set.getCompactDisplay in interface IsDefaultNumberFormatOptionsNotation.COMPACT is setpublic final void setCurrency(Currency currency)
setCurrency in interface IsNumberFormatcurrency - the currency to use in currency formattingpublic final Currency getCurrency()
getCurrency in interface IsDefaultNumberFormatOptionspublic final void setCurrencyDisplay(CurrencyDisplay currencyDisplay)
setCurrencyDisplay in interface IsNumberFormatcurrencyDisplay - how to display the currency in currency formattingpublic final CurrencyDisplay getCurrencyDisplay()
getCurrencyDisplay in interface IsDefaultNumberFormatOptionspublic final void setCurrencySign(CurrencySign currencySign)
setCurrencySign in interface IsNumberFormatcurrencySign - the currency format to use on formattingpublic final CurrencySign getCurrencySign()
getCurrencySign in interface IsDefaultNumberFormatOptionspublic final void setNotation(Notation notation)
setNotation in interface IsNumberFormatnotation - the formatting that should be displayed for the numberpublic final Notation getNotation()
getNotation in interface IsDefaultNumberFormatOptionspublic final void setSignDisplay(SignDisplay signDisplay)
setSignDisplay in interface IsNumberFormatsignDisplay - when to display the sign for the numberpublic final SignDisplay getSignDisplay()
getSignDisplay in interface IsDefaultNumberFormatOptionspublic final void setStyle(Style style)
setStyle in interface IsNumberFormatstyle - the formatting style to usepublic final Style getStyle()
getStyle in interface IsDefaultNumberFormatOptionspublic final void setUnitsOfMeasure(MeasureUnit... units)
setUnitsOfMeasure in interface IsNumberFormatunits - the units to use in units formattingpublic final void setUnitsOfMeasure(List<MeasureUnit> units)
setUnitsOfMeasure in interface IsNumberFormatunits - the units to use in units formattingpublic final List<MeasureUnit> getUnitsOfMeasure()
getUnitsOfMeasure in interface IsDefaultNumberFormatOptionspublic final void setUnitOfMeasureDisplay(MeasureUnitDisplay unitDisplay)
setUnitOfMeasureDisplay in interface IsNumberFormatunitDisplay - the unit formatting style to use in unit formattingpublic final MeasureUnitDisplay getUnitOfMeasureDisplay()
getUnitOfMeasureDisplay in interface IsDefaultNumberFormatOptionspublic final void setUseGrouping(boolean useGrouping)
true whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.setUseGrouping in interface IsNumberFormatuseGrouping - true whether to use grouping separators, such as thousands separators or thousand/lakh/crore separatorspublic final boolean isUseGrouping()
true whether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.isUseGrouping in interface IsDefaultNumberFormatOptionstrue whether to use grouping separators, such as thousands separators or thousand/lakh/crore separatorspublic final void setMinimumIntegerDigits(int minimumIntegerDigits)
setMinimumIntegerDigits in interface IsNumberFormatminimumIntegerDigits - the minimum number of integer digits to usepublic final int getMinimumIntegerDigits()
getMinimumIntegerDigits in interface IsDefaultNumberFormatOptionspublic final void setMinimumFractionDigits(int minimumFractionDigits)
setMinimumFractionDigits in interface IsNumberFormatminimumFractionDigits - the minimum number of fraction digits to usepublic final int getMinimumFractionDigits()
Currency.getMinimumFractionDigits().getMinimumFractionDigits in interface IsDefaultNumberFormatOptionsCurrency.getMinimumFractionDigits()public final void setMaximumFractionDigits(int maximumFractionDigits)
setMaximumFractionDigits in interface IsNumberFormatmaximumFractionDigits - the maximum number of fraction digits to usepublic final int getMaximumFractionDigits()
NumberFormatOptions.getMinimumFractionDigits() and 3.NumberFormatOptions.getMinimumFractionDigits() and the number of minor unit digits provided by currency, see
Currency.getMinimumFractionDigits().NumberFormatOptions.getMinimumFractionDigits() and 0.getMaximumFractionDigits in interface IsDefaultNumberFormatOptionsNumberFormatOptions.getMinimumFractionDigits() and 3.NumberFormatOptions.getMinimumFractionDigits() and the number of minor unit digits provided by currency,
see Currency.getMinimumFractionDigits().NumberFormatOptions.getMinimumFractionDigits() and 0.public final void setMinimumSignificantDigits(int minimumIntegerDigits)
setMinimumSignificantDigits in interface IsNumberFormatminimumIntegerDigits - the minimum number of significant digits to usepublic final int getMinimumSignificantDigits()
getMinimumSignificantDigits in interface IsDefaultNumberFormatOptionspublic final void setMaximumSignificantDigits(int minimumIntegerDigits)
setMaximumSignificantDigits in interface IsNumberFormatminimumIntegerDigits - the maximum number of significant digits to usepublic final int getMaximumSignificantDigits()
getMaximumSignificantDigits in interface IsDefaultNumberFormatOptions