public final class Decimation extends AbstractModel<Plugins,IsDefaultDecimation> implements IsDefaultDecimation
IndexAxis.X
LineDataset
CartesianLinearAxis
or CartesianTimeAxis
or CartesianTimeSeriesAxis
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. |
void |
setAlgorithm(DecimationAlgorithm algorithm)
Sets the algorithm used by the plugin.
|
void |
setEnabled(boolean enabled)
Sets
true if decimation are enabled. |
void |
setSamples(double samples)
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. |
void |
setThreshold(double threshold)
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. |
getDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public void setEnabled(boolean enabled)
true
if decimation are enabled.enabled
- true
if decimation are enabled.public boolean isEnabled()
true
if decimation are enabled.isEnabled
in interface IsDefaultDecimation
true
if decimation are enabled.public void setAlgorithm(DecimationAlgorithm algorithm)
algorithm
- the algorithm used by the pluginpublic DecimationAlgorithm getAlgorithm()
getAlgorithm
in interface IsDefaultDecimation
public void setSamples(double samples)
DecimationAlgorithm.LTTB
algorithm is used, this is the number of samples in the output data set.samples
- the number of samples in the output data setpublic double getSamples()
DecimationAlgorithm.LTTB
algorithm is used, this is the number of samples in the output data set.getSamples
in interface IsDefaultDecimation
public void setThreshold(double threshold)
threshold
- the number of samples in the current axis range is above this value, the decimation will be triggeredpublic double getThreshold()
getThreshold
in interface IsDefaultDecimation