Class SharedScaleContext
java.lang.Object
org.eclipse.birt.chart.computation.withaxes.SharedScaleContext
We use this class to store shared scale context of chart in cross-tab.
- Since:
- 2.5
-
Constructor Summary
ConstructorsConstructorDescriptionSharedScaleContext
(ScaleContext scaleContext, Object realMin, Object realMax) -
Method Summary
Modifier and TypeMethodDescriptioncreateDataSetIterator
(int iDataType) Create a DataSetIterator with the min/max value, which can be used by AutoScale.createDataSetIterator
(int iDataType, boolean isBigNumber, com.ibm.icu.math.BigDecimal divisor) Create a DataSetIterator with the min/max value, which can be used by AutoScale.static SharedScaleContext
createInstance
(Object oMin, Object oMax) boolean
isShared()
Returns if the scale will be shared among multiple chart instancesvoid
setScaleContext
(ScaleContext scaleContext) void
setShared
(boolean shared) void
updateBounds
(Bounds bo) update the bounds info, shared scale should be recalculated when bounds changed.
-
Constructor Details
-
SharedScaleContext
-
-
Method Details
-
updateBounds
update the bounds info, shared scale should be recalculated when bounds changed.- Parameters:
bo
-
-
createInstance
- Parameters:
oMin
-oMax
-- Returns:
-
getScaleContext
- Returns:
- Returns the scaleContext.
-
setScaleContext
- Parameters:
scaleContext
- The scaleContext to set.
-
createDataSetIterator
public DataSetIterator createDataSetIterator(int iDataType) throws ChartException, IllegalArgumentException Create a DataSetIterator with the min/max value, which can be used by AutoScale.- Parameters:
iDataType
-- Returns:
- Throws:
ChartException
IllegalArgumentException
-
createDataSetIterator
public DataSetIterator createDataSetIterator(int iDataType, boolean isBigNumber, com.ibm.icu.math.BigDecimal divisor) throws ChartException, IllegalArgumentException Create a DataSetIterator with the min/max value, which can be used by AutoScale. This method supports big decimal.- Parameters:
iDataType
-isBigNumber
- indicates current is big number.divisor
- the divisor for big number, actual big number will divide the divisor to get a double value, the double value is used to compute scale of axis.- Returns:
- Throws:
ChartException
IllegalArgumentException
- Since:
- 2.6
-