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. |
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. |
getDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModelcheckAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParentcheckDefaultValuesArgument, empty, getArrayValue, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setEmptyValue, setNewIncrementalId, setNewIncrementalId, 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, toJSON, typepublic 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 IsDefaultDecimationtrue if decimation are enabled.public void setAlgorithm(DecimationAlgorithm algorithm)
algorithm - the algorithm used by the pluginpublic DecimationAlgorithm getAlgorithm()
getAlgorithm in interface IsDefaultDecimationpublic 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