Interface IsNumberFormat
- 
- All Superinterfaces:
- IsDefaultBaseFormatOptions,- IsDefaultNumberFormatOptions
 - All Known Implementing Classes:
- AbstractNumberFormat,- NumberFormatItem,- TicksNumberFormat
 
 public interface IsNumberFormat extends IsDefaultNumberFormatOptions Defines a configuration element which is a number format options.- Author:
- Andrea "Stock" Stocchero
- See Also:
- AbstractNumberFormat
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetCompactDisplay(CompactDisplay display)Set the compact display whenNotation.COMPACTis set.voidsetCurrency(Currency currency)Sets the currency to use in currency formatting.voidsetCurrencyDisplay(CurrencyDisplay currencyDisplay)Sets how to display the currency in currency formatting.voidsetCurrencySign(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".voidsetLocaleMatcher(LocaleMatcher localeMatcher)Sets the locale matching algorithm to use.voidsetMaximumFractionDigits(int maximumFractionDigits)Sets the maximum number of fraction digits to use.
 Possible values are from 0 to 20.voidsetMaximumSignificantDigits(int minimumIntegerDigits)Sets the maximum number of significant digits to use.
 Possible values are from 1 to 21.voidsetMinimumFractionDigits(int minimumFractionDigits)Sets the minimum number of fraction digits to use.
 Possible values are from 0 to 20.voidsetMinimumIntegerDigits(int minimumIntegerDigits)Sets the minimum number of integer digits to use.
 Possible values are from 1 to 21.voidsetMinimumSignificantDigits(int minimumIntegerDigits)Sets the minimum number of significant digits to use.
 Possible values are from 1 to 21.voidsetNotation(Notation notation)Sets the formatting that should be displayed for the number.voidsetNumberingSystem(NumberingSystem numberingSystem)Sets the numbering system to use.voidsetSignDisplay(SignDisplay signDisplay)Sets when to display the sign for the number.voidsetStyle(Style style)Sets the formatting style to use.voidsetUnitOfMeasureDisplay(MeasureUnitDisplay unitDisplay)Sets the unit formatting style to use in unit formatting.voidsetUnitsOfMeasure(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.voidsetUnitsOfMeasure(MeasureUnit... units)Sets the unit to use in unit formatting.
 If more that 1 unit has been passed, a compound unit has been created.voidsetUseGrouping(boolean useGrouping)Setstruewhether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.- 
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultBaseFormatOptionsgetLocaleMatcher, getNumberingSystem
 - 
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultNumberFormatOptionscreate, create, getCompactDisplay, getCurrency, getCurrencyDisplay, getCurrencySign, getMaximumFractionDigits, getMaximumSignificantDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getMinimumSignificantDigits, getNotation, getSignDisplay, getStyle, getUnitOfMeasureDisplay, getUnitsOfMeasure, isUseGrouping
 
- 
 
- 
- 
- 
Method Detail- 
setLocaleMatchervoid setLocaleMatcher(LocaleMatcher localeMatcher) Sets the locale matching algorithm to use.- Parameters:
- localeMatcher- the locale matching algorithm to use
 
 - 
setNumberingSystemvoid setNumberingSystem(NumberingSystem numberingSystem) Sets the numbering system to use.- Parameters:
- numberingSystem- the numbering system to use
 
 - 
setCompactDisplayvoid setCompactDisplay(CompactDisplay display) Set the compact display whenNotation.COMPACTis set.- Parameters:
- display- the compact display when- Notation.COMPACTis set
 
 - 
setCurrencyvoid setCurrency(Currency currency) Sets the currency to use in currency formatting.- Parameters:
- currency- the currency to use in currency formatting
 
 - 
setCurrencyDisplayvoid setCurrencyDisplay(CurrencyDisplay currencyDisplay) Sets how to display the currency in currency formatting.- Parameters:
- currencyDisplay- how to display the currency in currency formatting
 
 - 
setCurrencySignvoid 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".- Parameters:
- currencySign- the currency format to use on formatting
 
 - 
setNotationvoid setNotation(Notation notation) Sets the formatting that should be displayed for the number.- Parameters:
- notation- the formatting that should be displayed for the number
 
 - 
setSignDisplayvoid setSignDisplay(SignDisplay signDisplay) Sets when to display the sign for the number.- Parameters:
- signDisplay- when to display the sign for the number
 
 - 
setStylevoid setStyle(Style style) Sets the formatting style to use.- Parameters:
- style- the formatting style to use
 
 - 
setUnitsOfMeasurevoid 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.- Parameters:
- units- the units to use in units formatting
 
 - 
setUnitsOfMeasurevoid 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.- Parameters:
- units- the units to use in units formatting
 
 - 
setUnitOfMeasureDisplayvoid setUnitOfMeasureDisplay(MeasureUnitDisplay unitDisplay) Sets the unit formatting style to use in unit formatting.- Parameters:
- unitDisplay- the unit formatting style to use in unit formatting
 
 - 
setUseGroupingvoid setUseGrouping(boolean useGrouping) Setstruewhether to use grouping separators, such as thousands separators or thousand/lakh/crore separators.- Parameters:
- useGrouping-- truewhether to use grouping separators, such as thousands separators or thousand/lakh/crore separators
 
 - 
setMinimumIntegerDigitsvoid setMinimumIntegerDigits(int minimumIntegerDigits) Sets the minimum number of integer digits to use.
 Possible values are from 1 to 21.- Parameters:
- minimumIntegerDigits- the minimum number of integer digits to use
 
 - 
setMinimumFractionDigitsvoid setMinimumFractionDigits(int minimumFractionDigits) Sets the minimum number of fraction digits to use.
 Possible values are from 0 to 20.- Parameters:
- minimumFractionDigits- the minimum number of fraction digits to use
 
 - 
setMaximumFractionDigitsvoid setMaximumFractionDigits(int maximumFractionDigits) Sets the maximum number of fraction digits to use.
 Possible values are from 0 to 20.- Parameters:
- maximumFractionDigits- the maximum number of fraction digits to use
 
 - 
setMinimumSignificantDigitsvoid setMinimumSignificantDigits(int minimumIntegerDigits) Sets the minimum number of significant digits to use.
 Possible values are from 1 to 21.- Parameters:
- minimumIntegerDigits- the minimum number of significant digits to use
 
 - 
setMaximumSignificantDigitsvoid setMaximumSignificantDigits(int minimumIntegerDigits) Sets the maximum number of significant digits to use.
 Possible values are from 1 to 21.- Parameters:
- minimumIntegerDigits- the maximum number of significant digits to use
 
 
- 
 
-