public class Decimation extends Object
DefaultPluginId.DECIMATION
plugin.Modifier and Type | Method and Description |
---|---|
DecimationAlgorithm |
getAlgorithm()
Returns the algorithm used by the plugin.
|
IsChart |
getChart()
Returns the chart instance
|
protected ExtendedOptions |
getConfiguration()
Returns the configuration element.
|
protected ConfigurationOptions |
getOptions()
Returns the configuration options.
|
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. |
public void setEnabled(boolean enabled)
true
if decimation are enabled.enabled
- true
if decimation are enabled.public boolean isEnabled()
true
if decimation are enabled.true
if decimation are enabled.public void setAlgorithm(DecimationAlgorithm algorithm)
algorithm
- the algorithm used by the pluginpublic DecimationAlgorithm getAlgorithm()
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.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()
protected final ConfigurationOptions getOptions()
protected final ExtendedOptions getConfiguration()
public final IsChart getChart()