Measure.NumberFormat

Inheritance: java.lang.Object

public static class Measure.NumberFormat

Number format for measure.

Constructors

ConstructorDescription
NumberFormat(Measure measure)Constructor for NumberFormat class.

Methods

MethodDescription
getUnitLabel()A text string specifying a label for displaying the units.
setUnitLabel(String value)
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.
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.
getFractionDisplayment()In what manner fractional values are displayed.
setFractionDisplayment(int value)In what manner fractional values are displayed.
getPrecision()If FractionDisplayment is ShowAsDecimal, this value is precision of fractional value; It shall me multiple of 10.
setPrecision(int value)If FractionDisplayment is ShowAsDecimal, this value is precision of fractional value; It shall me multiple of 10.
getDenominator()If FractionDisplayment is ShowAsFraction, this value is denominator of the fraction.
setDenominator(int value)If FractionDisplayment is ShowAsFraction, this value is denominator of the fraction.
isForceDenominator()If FractionDisplayment is ShowAsFraction, this value determines meay or not the fraction be reduced.
setForceDenominator(boolean value)If FractionDisplayment is ShowAsFraction, this value determines meay or not the fraction be reduced.
getThousandsSeparator()Text that shall be used between orders of thousands in display of numerical values.
setThousandsSeparator(String value)Text that shall be used between orders of thousands in display of numerical values.
getFractionSeparator()Text that shall be used as the decimal position in displaying numerical values.
setFractionSeparator(String value)Text that shall be used as the decimal position in displaying numerical values.
getBeforeText()Text that shall be concatenated to the left of the label.
setBeforeText(String value)Text that shall be concatenated to the left of the label.
getAfterText()Text that shall be concatenated after the label
setAfterText(String value)Text that shall be concatenated after the label

NumberFormat(Measure measure)

public NumberFormat(Measure measure)

Constructor for NumberFormat class.

Parameters:

ParameterTypeDescription
measureMeasureMeasure object which contains this number format.

getUnitLabel()

public String getUnitLabel()

A text string specifying a label for displaying the units.

Returns: java.lang.String - String object

setUnitLabel(String value)

public void setUnitLabel(String value)

Parameters:

ParameterTypeDescription
valuejava.lang.String

getConvresionFactor()

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.

Returns: double - double value

setConvresionFactor(double value)

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.

Parameters:

ParameterTypeDescription
valuedoubledouble value

getFractionDisplayment()

public int getFractionDisplayment()

In what manner fractional values are displayed.

Returns: int - FractionStyle value

setFractionDisplayment(int value)

public void setFractionDisplayment(int value)

In what manner fractional values are displayed.

Parameters:

ParameterTypeDescription
valueintFractionStyle value

getPrecision()

public int getPrecision()

If FractionDisplayment is ShowAsDecimal, this value is precision of fractional value; It shall me multiple of 10. Default is 100.

Returns: int - int value

setPrecision(int value)

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.

Parameters:

ParameterTypeDescription
valueintint value

getDenominator()

public int getDenominator()

If FractionDisplayment is ShowAsFraction, this value is denominator of the fraction. Default value is 16.

Returns: int - int value

setDenominator(int value)

public void setDenominator(int value)

If FractionDisplayment is ShowAsFraction, this value is denominator of the fraction. Default value is 16.

Parameters:

ParameterTypeDescription
valueintint value

isForceDenominator()

public 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.

Returns: boolean - boolean value

setForceDenominator(boolean value)

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.

Parameters:

ParameterTypeDescription
valuebooleanboolean value

getThousandsSeparator()

public 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.

Returns: java.lang.String - String value

setThousandsSeparator(String value)

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.

Parameters:

ParameterTypeDescription
valuejava.lang.StringString value

getFractionSeparator()

public 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.

Returns: java.lang.String - String value

setFractionSeparator(String value)

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.

Parameters:

ParameterTypeDescription
valuejava.lang.StringString object

getBeforeText()

public String getBeforeText()

Text that shall be concatenated to the left of the label.

Returns: java.lang.String - String object

setBeforeText(String value)

public void setBeforeText(String value)

Text that shall be concatenated to the left of the label.

Parameters:

ParameterTypeDescription
valuejava.lang.StringString object

getAfterText()

public String getAfterText()

Text that shall be concatenated after the label

Returns: java.lang.String - String object

setAfterText(String value)

public void setAfterText(String value)

Text that shall be concatenated after the label

Parameters:

ParameterTypeDescription
valuejava.lang.StringString object