Package org.swtchart.internal.compress
Interface ICompress
- All Known Implementing Classes:
Compress
,CompressBarSeries
,CompressLineSeries
,CompressScatterSeries
public interface ICompress
A Compressor.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
compress
(CompressConfig config) Ignores the points which are in the same grid as the previous point.int[]
Gets the compressed series indexesdouble[]
Gets the compressed X seriesdouble[]
Gets the compressed Y seriesvoid
setXSeries
(double[] xSeries) Sets X series which have to be sorted.void
setYSeries
(double[] ySeries) sets the Y series
-
Method Details
-
getCompressedXSeries
double[] getCompressedXSeries()Gets the compressed X series- Returns:
- the compressed X series
-
getCompressedYSeries
double[] getCompressedYSeries()Gets the compressed Y series- Returns:
- the compressed Y series
-
getCompressedIndexes
int[] getCompressedIndexes()Gets the compressed series indexes- Returns:
- the compressed series indexes
-
setXSeries
void setXSeries(double[] xSeries) Sets X series which have to be sorted.- Parameters:
xSeries
- the X series
-
setYSeries
void setYSeries(double[] ySeries) sets the Y series- Parameters:
ySeries
- the Y series
-
compress
Ignores the points which are in the same grid as the previous point.- Parameters:
config
- the configuration for compression- Returns:
- true if the compression succeeds
-