Class DifferenceEntry
java.lang.Object
org.eclipse.birt.chart.datafeed.NumberDataPointEntry
org.eclipse.birt.chart.extension.datafeed.DifferenceEntry
- All Implemented Interfaces:
IDataPointEntry
DifferenceEntry
-
Constructor Summary
ConstructorsConstructorDescriptionDifferenceEntry
(double dPositiveValue, double dNegativeValue) The constructor.DifferenceEntry
(Object[] oaTwoComponents) The constructor. -
Method Summary
Modifier and TypeMethodDescriptioncom.ibm.icu.math.BigDecimal
Returns divisor of big number.getFormattedString
(String type, FormatSpecifier formatter, com.ibm.icu.util.ULocale locale) Returns the formatted string representation of current object by given formatter and locale.getFormattedString
(FormatSpecifier formatter, com.ibm.icu.util.ULocale locale) Returns the formatted string representation of current object by given formatter and locale.double
Number[]
Gets number data from data set.double
boolean
Checks if values are big number.boolean
isValid()
Returns if the DataPointEntry is valid.void
setNegativeValue
(double value) void
setNegativeValue
(Number value) void
setNumberData
(Number[] data) Sets number data into data set.void
setPositiveValue
(double value) void
setPositiveValue
(Number value) toString()
-
Constructor Details
-
DifferenceEntry
public DifferenceEntry(double dPositiveValue, double dNegativeValue) The constructor. -
DifferenceEntry
The constructor.- Parameters:
oaTwoComponents
-
-
-
Method Details
-
toString
-
getPositiveValue
public double getPositiveValue()- Returns:
- Returns the positive value.
-
getPositiveValueNumber
-
setPositiveValue
public void setPositiveValue(double value) - Parameters:
value
- The positive value to set.
-
setPositiveValue
-
getNegativeValue
public double getNegativeValue()- Returns:
- Returns the negative value.
-
getNegativeValueNumber
-
setNegativeValue
public void setNegativeValue(double value) - Parameters:
end
- The negative value to set.
-
setNegativeValue
-
getFormattedString
public String getFormattedString(String type, FormatSpecifier formatter, com.ibm.icu.util.ULocale locale) Description copied from interface:IDataPointEntry
Returns the formatted string representation of current object by given formatter and locale.- Parameters:
type
- data point typeformatter
- An formatterlocale
- Specific locale.- Returns:
- The string representation
- See Also:
-
#getDataPointTypes()
-
getFormattedString
Description copied from interface:IDataPointEntry
Returns the formatted string representation of current object by given formatter and locale.- Parameters:
formatter
- An formatterlocale
- Specific locale.- Returns:
- The string representation
-
isValid
public boolean isValid()Description copied from interface:IDataPointEntry
Returns if the DataPointEntry is valid.- Returns:
- value or not
-
isBigNumber
public boolean isBigNumber()Checks if values are big number.- Returns:
-
getDivisor
public com.ibm.icu.math.BigDecimal getDivisor()Returns divisor of big number.- Returns:
-
setNumberData
Description copied from class:NumberDataPointEntry
Sets number data into data set.- Specified by:
setNumberData
in classNumberDataPointEntry
-
getNumberData
Description copied from class:NumberDataPointEntry
Gets number data from data set.- Specified by:
getNumberData
in classNumberDataPointEntry
- Returns:
-