org.swtchart.internal.compress
Interface ICompress

All Known Implementing Classes:
Compress, CompressBarSeries, CompressLineSeries, CompressScatterSeries

public interface ICompress

A Compressor.


Method Summary
 boolean compress(CompressConfig config)
          Ignores the points which are in the same grid as the previous point.
 int[] getCompressedIndexes()
          Gets the compressed series indexes
 double[] getCompressedXSeries()
          Gets the compressed X series
 double[] getCompressedYSeries()
          Gets the compressed Y series
 void setXSeries(double[] xSeries)
          Sets X series which have to be sorted.
 void setYSeries(double[] ySeries)
          sets the Y series
 

Method Detail

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

boolean compress(CompressConfig config)
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