Class DefaultDecimation
- java.lang.Object
- 
- org.pepstock.charba.client.defaults.globals.DefaultDecimation
 
- 
- All Implemented Interfaces:
- IsDefaultDecimation
 
 public final class DefaultDecimation extends Object implements IsDefaultDecimation CHART.JS default values for DECIMATION plugin element.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description DecimationAlgorithmgetAlgorithm()Returns the algorithm used by the plugin.doublegetSamples()If theDecimationAlgorithm.LTTBalgorithm is used, this is the number of samples in the output data set.
 Defaults to the canvas width to pick 1 sample per pixel.doublegetThreshold()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.booleanisEnabled()Returnstrueif decimation are enabled.
 
- 
- 
- 
Method Detail- 
isEnabledpublic boolean isEnabled() Description copied from interface:IsDefaultDecimationReturnstrueif decimation are enabled.- Specified by:
- isEnabledin interface- IsDefaultDecimation
- Returns:
- trueif decimation are enabled.
 
 - 
getAlgorithmpublic DecimationAlgorithm getAlgorithm() Description copied from interface:IsDefaultDecimationReturns the algorithm used by the plugin.- Specified by:
- getAlgorithmin interface- IsDefaultDecimation
- Returns:
- the algorithm used by the plugin
 
 - 
getSamplespublic double getSamples() Description copied from interface:IsDefaultDecimationIf theDecimationAlgorithm.LTTBalgorithm is used, this is the number of samples in the output data set.
 Defaults to the canvas width to pick 1 sample per pixel.- Specified by:
- getSamplesin interface- IsDefaultDecimation
- Returns:
- the number of samples in the output data set
 
 - 
getThresholdpublic double getThreshold() Description copied from interface:IsDefaultDecimationIf 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.- Specified by:
- getThresholdin interface- IsDefaultDecimation
- Returns:
- the number of samples in the current axis range is above this value, the decimation will be triggered
 
 
- 
 
-