T
- The type of axis valuespublic abstract class RangeCalculationHelper2DBase<T extends java.lang.Comparable<T>> extends RangeCalculatorHelperBase<T,IAxis> implements IRangeCalculationHelper<T>
IRangeCalculationHelper
Modifier and Type | Field and Description |
---|---|
protected ISciChartSurface |
parentSurface |
axis, dataRange, math, maximumRange, ZERO_RANGE_GROW_BY
Modifier | Constructor and Description |
---|---|
protected |
RangeCalculationHelper2DBase(com.scichart.data.model.IRange<T> maximumRange,
com.scichart.data.model.IRange<T> dataRange,
com.scichart.data.numerics.math.IMath<T> math)
Creates a new instance of
RangeCalculationHelper2DBase class |
Modifier and Type | Method and Description |
---|---|
void |
attachTo(com.scichart.core.IServiceContainer services) |
void |
detach() |
com.scichart.data.model.IRange<T> |
getWindowedYRange(java.util.Map<java.lang.String,ICoordinateCalculator> xCoordCalcs)
Returns the max range only for that axis (by the data-series on it), based on
xRanges |
protected static boolean |
isValidSeriesForXAxis(IRenderableSeries rs,
java.lang.String xAxisId)
Checks if specified series is valid for data range update of XAxis with
xAxisId |
protected static boolean |
isValidSeriesForYAxis(IRenderableSeries rs,
java.lang.String yAxisId)
Checks if specified series is valid for data range update of YAxis with
yAxisId |
protected void |
updateDataRange(com.scichart.data.model.IRange<T> dataRange) |
protected void |
updateMaximumRange(com.scichart.data.model.IRange<T> maximumRange,
boolean forceCacheUpdate)
Updates maximum range for attached axis
|
protected void |
updateXDataRange(RenderableSeriesCollection renderableSeries)
Updates data range of attached axis in X direction
|
protected void |
updateYDataRange(RenderableSeriesCollection renderableSeries)
Updates data range of attached axis in Y direction
|
coerceUndefinedRange, coerceZeroRange, getDataRange, getMaximumRange, growBy, isAttached, onDataRangeChanged
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataRange, getMaximumRange, onDataRangeChanged
protected ISciChartSurface parentSurface
protected RangeCalculationHelper2DBase(com.scichart.data.model.IRange<T> maximumRange, com.scichart.data.model.IRange<T> dataRange, com.scichart.data.numerics.math.IMath<T> math)
RangeCalculationHelper2DBase
classmaximumRange
- The IRange
instance for storing maximum rangedataRange
- The IRange
instance for storing data rangemath
- The IMath
instance used for calculationspublic void attachTo(com.scichart.core.IServiceContainer services)
attachTo
in interface com.scichart.core.framework.IAttachable
attachTo
in class RangeCalculatorHelperBase<T extends java.lang.Comparable<T>,IAxis>
public void detach()
detach
in interface com.scichart.core.framework.IAttachable
detach
in class RangeCalculatorHelperBase<T extends java.lang.Comparable<T>,IAxis>
protected void updateDataRange(com.scichart.data.model.IRange<T> dataRange)
updateDataRange
in class RangeCalculatorHelperBase<T extends java.lang.Comparable<T>,IAxis>
protected void updateXDataRange(RenderableSeriesCollection renderableSeries)
renderableSeries
- The renderable series collectionprotected static boolean isValidSeriesForXAxis(IRenderableSeries rs, java.lang.String xAxisId)
xAxisId
rs
- The IRenderableSeries
instance to check.xAxisId
- The X-Axis id.IRenderableSeries
instance is valid. Otherwise - false.protected void updateYDataRange(RenderableSeriesCollection renderableSeries)
renderableSeries
- The renderable series collectionprotected static boolean isValidSeriesForYAxis(IRenderableSeries rs, java.lang.String yAxisId)
yAxisId
rs
- The IRenderableSeries
instance to check.yAxisId
- The Y-Axis id.IRenderableSeries
instance is valid. Otherwise - false.protected void updateMaximumRange(com.scichart.data.model.IRange<T> maximumRange, boolean forceCacheUpdate)
updateMaximumRange
in class RangeCalculatorHelperBase<T extends java.lang.Comparable<T>,IAxis>
forceCacheUpdate
- Flag indicating whether the cached results should be updatedpublic com.scichart.data.model.IRange<T> getWindowedYRange(java.util.Map<java.lang.String,ICoordinateCalculator> xCoordCalcs)
xRanges
"windowed" = "displayed in current viewport"
Note:uses GrowBy()
getWindowedYRange
in interface IRangeCalculationHelper<T extends java.lang.Comparable<T>>
xCoordCalcs
- Calculates the max range based on corresponding x coordinate calculators