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.BigDecimalReturns 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.doubleNumber[]Gets number data from data set.doublebooleanChecks if values are big number.booleanisValid()Returns if the DataPointEntry is valid.voidsetNegativeValue(double value) voidsetNegativeValue(Number value) voidsetNumberData(Number[] data) Sets number data into data set.voidsetPositiveValue(double value) voidsetPositiveValue(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:IDataPointEntryReturns 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:IDataPointEntryReturns 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:IDataPointEntryReturns 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:NumberDataPointEntrySets number data into data set.- Specified by:
setNumberDatain classNumberDataPointEntry
-
getNumberData
Description copied from class:NumberDataPointEntryGets number data from data set.- Specified by:
getNumberDatain classNumberDataPointEntry- Returns:
-