Class ReducingLineRenderer

    • Constructor Detail

      • ReducingLineRenderer

        public ReducingLineRenderer()
      • ReducingLineRenderer

        public ReducingLineRenderer​(int maxPoints)
    • Method Detail

      • drawLegendSymbol

        public javafx.scene.canvas.Canvas drawLegendSymbol​(de.gsi.dataset.DataSet dataSet,
                                                           int dsIndex,
                                                           int width,
                                                           int height)
        Specified by:
        drawLegendSymbol in interface Renderer
        Parameters:
        dataSet - the data set for which the representative icon should be generated
        dsIndex - index within renderer set
        width - requested width of the returning Canvas
        height - requested height of the returning Canvas
        Returns:
        a graphical icon representation of the given data sets
      • getMaxPoints

        public int getMaxPoints()
      • render

        public java.util.List<de.gsi.dataset.DataSet> render​(javafx.scene.canvas.GraphicsContext gc,
                                                             Chart chart,
                                                             int dataSetOffset,
                                                             javafx.collections.ObservableList<de.gsi.dataset.DataSet> datasets)
        Specified by:
        render in interface Renderer
        Parameters:
        gc - the Canvas' GraphicsContext the renderer should draw upon
        chart - the corresponding chart
        dataSetOffset - global offset of the last drawn DataSet
        datasets - list of globally (ie. in Chart) stored DataSets
        Returns:
        List of drawn DataSets (N.B. return '0' in case Renderer.showInLegend() is false)
      • setMaxPoints

        public void setMaxPoints​(int maxPoints)