public final class DefaultChartDecimation extends Object implements IsDefaultDecimation
| Constructor and Description |
|---|
DefaultChartDecimation(IsDefaultDecimation decimation)
Creates the object by decimation plugin option element instance.
|
| Modifier and Type | Method and Description |
|---|---|
DecimationAlgorithm |
getAlgorithm()
Returns the algorithm used by the plugin.
|
double |
getSamples()
If the
DecimationAlgorithm.LTTB algorithm is used, this is the number of samples in the output data set.Defaults to the canvas width to pick 1 sample per pixel. |
double |
getThreshold()
If the number of samples in the current axis range is above this value, the decimation will be triggered.
Defaults to 4 times the canvas width. The number of point after decimation can be higher than the threshold value. |
boolean |
isEnabled()
Returns
true if decimation are enabled. |
public DefaultChartDecimation(IsDefaultDecimation decimation)
decimation - decimation plugin option element instance.public boolean isEnabled()
IsDefaultDecimationtrue if decimation are enabled.isEnabled in interface IsDefaultDecimationtrue if decimation are enabled.public DecimationAlgorithm getAlgorithm()
IsDefaultDecimationgetAlgorithm in interface IsDefaultDecimationpublic double getSamples()
IsDefaultDecimationDecimationAlgorithm.LTTB algorithm is used, this is the number of samples in the output data set.getSamples in interface IsDefaultDecimationpublic double getThreshold()
IsDefaultDecimationgetThreshold in interface IsDefaultDecimation