Interface IPointResampler<TX,TY>
Provides the interface to a PointResampler - an algorithm which is able to reduce the number of data-points in a series for rendering fast, while maintaining visual accuracy of the series.
Namespace:
Assembly: .dll
Syntax
public interface IPointResampler<TX,TY>
Type Parameters
| Name | Description |
|---|---|
| TX | |
| TY |
Methods
execute(Point2DSeries resampledSeries, ISciList<TX> xColumn, ISciList<TY> yColumn, ResamplingMode resamplingMode, IndexRange pointRange, boolean isCategoryData, boolean isSortedData, boolean isEvenlySpacedData, int viewportWidth, double minXInclusive, double maxXInclusive)
Transforms the input X and Y series into an Point2DSeries, a resampled, reduced dataset for rendering on screen.
Declaration
public abstract void execute(Point2DSeries resampledSeries, ISciList<TX> xColumn, ISciList<TY> yColumn, ResamplingMode resamplingMode, IndexRange pointRange, boolean isCategoryData, boolean isSortedData, boolean isEvenlySpacedData, int viewportWidth, double minXInclusive, double maxXInclusive)
Parameters
| Type | Name | Description |
|---|---|---|
| Point2DSeries | resampledSeries | The point series where results of resampling should be stored. |
| ISciList<TX> | xColumn | The input x values. |
| ISciList<TY> | yColumn | The input y values. |
| ResamplingMode | resamplingMode | The ResamplingMode to use. |
| IndexRange | pointRange | The indices of the x and y input data to use (clips by indices). |
| boolean | isCategoryData | Specifies whether xAxis is a category axis. It allows performance optimization in avoiding copying the x values. |
| boolean | isSortedData | Specifies whether the data is sorted in the x direction. |
| boolean | isEvenlySpacedData | Specifies whether the data is evenly spaced in the x direction. |
| int | viewportWidth | The current width of the viewport. |
| double | minXInclusive | The VisibleRange.Min for xAxis at the time of resampling. |
| double | maxXInclusive | The VisibleRange.Max for xAxis at the time of resampling. |
Exceptions
| Type | Condition |
|---|---|
| Exception | The Exception thrown is resampling mode has not been handled. |