Package com.inet.report.chart.format
Class Abbreviation
java.lang.Object
com.inet.report.chart.format.Abbreviation
- All Implemented Interfaces:
Serializable
This class represents an abbreviation instance. There are four abbreviations available: thousand (K), million (M), billion (B) and none.
The abbreviation divides the value and writes the abbreviation symbol after this value in a chart.
The
ABBREVIATION_NONE
can be used to reset the abbreviation.- Since:
- 8.0
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Abbreviation
Billions abbreviationstatic final Abbreviation
Millions abbreviationstatic final Abbreviation
None abbreviationstatic final Abbreviation
Thousands abbreviation -
Method Summary
Modifier and TypeMethodDescriptionboolean
static Abbreviation
getAbbreviation
(Element element) Reads the XML properties of a abbreviation.double
Returns the divisor.Returns the symbol for this abbreviation, e.g.int
hashCode()
-
Field Details
-
ABBREVIATION_NONE
None abbreviation -
ABBREVIATION_THOUSANDS
Thousands abbreviation -
ABBREVIATION_MILLIONS
Millions abbreviation -
ABBREVIATION_BILLIONS
Billions abbreviation
-
-
Method Details
-
getDivisor
public double getDivisor()Returns the divisor. The divisor forABBREVIATION_THOUSANDS
is 1000.- Returns:
- the divisor.
- Since:
- 8.0
-
getSymbol
Returns the symbol for this abbreviation, e.g. 'K' for thousand.- Returns:
- the symbol string.
- Since:
- 8.0
-
equals
-
hashCode
public int hashCode() -
getAbbreviation
Reads the XML properties of a abbreviation.- Parameters:
element
- the DOM element- Returns:
- the new abbreviation.
- Since:
- 8.0
- See Also:
-