Modifier and Type | Class and Description |
---|---|
static class |
Measure.NumberFormat.FractionStyle
Value which indicates in which manner fraction values are displayed.
|
Constructor and Description |
---|
NumberFormat(Measure measure)
Constructor for NumberFormat class.
|
Modifier and Type | Method and Description |
---|---|
String |
getAfterText()
Text that shall be concatenated after the label
|
String |
getBeforeText()
Text that shall be concatenated to the left of the label.
|
double |
getConvresionFactor()
The conversion factor used to multiply a value in partial units of the previous number
format array element to obtain a value in the units of this number format.
|
int |
getDenominator()
If FractionDisplayment is ShowAsFraction, this value is denominator of the fraction.
|
int |
getFractionDisplayment()
In what manner fractional values are displayed.
|
String |
getFractionSeparator()
Text that shall be used as the decimal position in displaying numerical values.
|
int |
getPrecision()
If FractionDisplayment is ShowAsDecimal, this value is precision of fractional value; It
shall me multiple of 10.
|
String |
getThousandsSeparator()
Text that shall be used between orders of thousands in display of numerical values.
|
String |
getUnitLabel()
A text string specifying a label for displaying the units.
|
boolean |
isForceDenominator()
If FractionDisplayment is ShowAsFraction, this value determines meay or not the fraction
be reduced.
|
void |
setAfterText(String value)
Text that shall be concatenated after the label
|
void |
setBeforeText(String value)
Text that shall be concatenated to the left of the label.
|
void |
setConvresionFactor(double value)
The conversion factor used to multiply a value in partial units of the previous number
format array element to obtain a value in the units of this number format.
|
void |
setDenominator(int value)
If FractionDisplayment is ShowAsFraction, this value is denominator of the fraction.
|
void |
setForceDenominator(boolean value)
If FractionDisplayment is ShowAsFraction, this value determines meay or not the fraction
be reduced.
|
void |
setFractionDisplayment(int value)
In what manner fractional values are displayed.
|
void |
setFractionSeparator(String value)
Text that shall be used as the decimal position in displaying numerical values.
|
void |
setPrecision(int value)
If FractionDisplayment is ShowAsDecimal, this value is precision of fractional value; It
shall me multiple of 10.
|
void |
setThousandsSeparator(String value)
Text that shall be used between orders of thousands in display of numerical values.
|
void |
setUnitLabel(String value) |
public NumberFormat(Measure measure)
Constructor for NumberFormat class.
measure
- Measure object which contains this number format.public String getUnitLabel()
A text string specifying a label for displaying the units.
public void setUnitLabel(String value)
public double getConvresionFactor()
The conversion factor used to multiply a value in partial units of the previous number format array element to obtain a value in the units of this number format.
public void setConvresionFactor(double value)
The conversion factor used to multiply a value in partial units of the previous number format array element to obtain a value in the units of this number format.
value
- double valuepublic int getFractionDisplayment()
In what manner fractional values are displayed.
Measure.NumberFormat.FractionStyle
public void setFractionDisplayment(int value)
In what manner fractional values are displayed.
value
- FractionStyle valueMeasure.NumberFormat.FractionStyle
public int getPrecision()
If FractionDisplayment is ShowAsDecimal, this value is precision of fractional value; It shall me multiple of 10. Default is 100.
public void setPrecision(int value)
If FractionDisplayment is ShowAsDecimal, this value is precision of fractional value; It shall me multiple of 10. Default is 100.
value
- int valuepublic int getDenominator()
If FractionDisplayment is ShowAsFraction, this value is denominator of the fraction. Default value is 16.
public void setDenominator(int value)
If FractionDisplayment is ShowAsFraction, this value is denominator of the fraction. Default value is 16.
value
- int valuepublic boolean isForceDenominator()
If FractionDisplayment is ShowAsFraction, this value determines meay or not the fraction be reduced. If value is true fraction may not be reduced.
public void setForceDenominator(boolean value)
If FractionDisplayment is ShowAsFraction, this value determines meay or not the fraction be reduced. If value is true fraction may not be reduced.
value
- boolean valuepublic String getThousandsSeparator()
Text that shall be used between orders of thousands in display of numerical values. An empty string indicates that no text shall be added. Default is comma.
public void setThousandsSeparator(String value)
Text that shall be used between orders of thousands in display of numerical values. An empty string indicates that no text shall be added. Default is comma.
value
- String valuepublic String getFractionSeparator()
Text that shall be used as the decimal position in displaying numerical values. An empty string indicates that the default shall be used. Default is period character.
public void setFractionSeparator(String value)
Text that shall be used as the decimal position in displaying numerical values. An empty string indicates that the default shall be used. Default is period character.
value
- String objectpublic String getBeforeText()
Text that shall be concatenated to the left of the label.
public void setBeforeText(String value)
Text that shall be concatenated to the left of the label.
value
- String objectpublic String getAfterText()
Text that shall be concatenated after the label
public void setAfterText(String value)
Text that shall be concatenated after the label
value
- String object