Class JISARenderer

  • All Implemented Interfaces:
    de.gsi.chart.renderer.Renderer

    public class JISARenderer
    extends de.gsi.chart.renderer.spi.AbstractErrorDataSetRendererParameter<JISARenderer>
    implements de.gsi.chart.renderer.Renderer
    Modified copy of the ErrorDataSetRenderer
    • Field Summary

      • Fields inherited from class de.gsi.chart.renderer.spi.AbstractErrorDataSetRendererParameter

        DEFAULT_HISTORY_INTENSITY_FADING
      • Fields inherited from class de.gsi.chart.renderer.spi.AbstractDataSetManagement

        showInLegend
    • Constructor Summary

      Constructors 
      Constructor Description
      JISARenderer()
      Creates new ErrorDataSetRenderer.
      JISARenderer​(int dashSize)
      Creates new ErrorDataSetRenderer.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static void drawDataLine​(javafx.scene.canvas.GraphicsContext gc, jisa.gui.plotting.CachedDataPoints cache, JISAErrorDataSet dataSet)  
      protected void drawErrorBars​(javafx.scene.canvas.GraphicsContext gc, jisa.gui.plotting.CachedDataPoints cache, JISAErrorDataSet dataSet)  
      protected void drawFittedLine​(javafx.scene.canvas.GraphicsContext gc, JISAErrorDataSet dataSet, de.gsi.dataset.spi.DoubleDataSet fitted, de.gsi.chart.axes.Axis xAxis, de.gsi.chart.axes.Axis yAxis)  
      javafx.scene.canvas.Canvas drawLegendSymbol​(de.gsi.dataset.DataSet dataSet, int dsIndex, int width, int height)  
      protected void drawMarker​(JISAErrorDataSet dataSet, javafx.scene.canvas.GraphicsContext gc, double x, double y)  
      protected void drawMarkers​(javafx.scene.canvas.GraphicsContext gc, jisa.gui.plotting.CachedDataPoints cache, JISAErrorDataSet dataSet)  
      protected void drawPolyLine​(javafx.scene.canvas.GraphicsContext gc, jisa.gui.plotting.CachedDataPoints cache, JISAErrorDataSet dataSet)  
      protected JISARenderer getThis()  
      java.util.List<de.gsi.dataset.DataSet> render​(javafx.scene.canvas.GraphicsContext gc, de.gsi.chart.Chart chart, int dataSetOffset, javafx.collections.ObservableList<de.gsi.dataset.DataSet> datasets)  
      protected static void setErrorBarGC​(javafx.scene.canvas.GraphicsContext gc, JISAErrorDataSet dataSet)  
      protected static void setLineGC​(javafx.scene.canvas.GraphicsContext gc, JISAErrorDataSet dataSet)  
      • Methods inherited from class de.gsi.chart.renderer.spi.AbstractErrorDataSetRendererParameter

        allowNaNsProperty, barWidthPercentageProperty, barWidthProperty, bind, dashSizeProperty, drawBarsProperty, drawBubblesProperty, drawChartDataSetsProperty, drawMarkerProperty, dynamicBarWidthProperty, errorStyleProperty, getBarWidth, getBarWidthPercentage, getDashSize, getErrorType, getIntensityFading, getMarkerSize, getPolyLineStyle, getRendererDataReducer, getShiftBarOffset, intensityFadingProperty, isallowNaNs, isDrawBars, isDrawBubbles, isDrawChartDataSets, isDrawMarker, isDynamicBarWidth, isShiftBar, markerSizeProperty, polyLineStyleProperty, rendererDataReducerProperty, setAllowNaNs, setBarWidth, setBarWidthPercentage, setDashSize, setDrawBars, setDrawBubbles, setDrawChartDataSets, setDrawMarker, setDynamicBarWidth, setErrorType, setIntensityFading, setMarkerSize, setPolyLineStyle, setRendererDataReducer, setShiftBar, setshiftBarOffset, shiftBarOffsetProperty, shiftBarProperty, unbind
      • Methods inherited from class de.gsi.chart.renderer.spi.AbstractPointReductionManagment

        actualPointReductionProperty, assumeSortedDataProperty, getMinRequiredReductionSize, isActualReducePoints, isAssumeSortedData, isParallelImplementation, isReducePoints, minRequiredReductionSizeProperty, parallelImplementationProperty, pointReductionProperty, setAssumeSortedData, setMinRequiredReductionSize, setParallelImplementation, setPointReduction
      • Methods inherited from class de.gsi.chart.renderer.spi.AbstractDataSetManagement

        getAxes, getDatasets, getDatasetsCopy, getDatasetsCopy, getFirstAxis, getFirstAxis, setShowInLegend, showInLegend, showInLegendProperty
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface de.gsi.chart.renderer.Renderer

        getAxes, getDatasets, getDatasetsCopy, setShowInLegend, showInLegend, showInLegendProperty
    • Constructor Detail

      • JISARenderer

        public JISARenderer()
        Creates new ErrorDataSetRenderer.
      • JISARenderer

        public JISARenderer​(int dashSize)
        Creates new ErrorDataSetRenderer.
        Parameters:
        dashSize - initial size (top/bottom cap) on top of the error bars
    • Method Detail

      • setLineGC

        protected static void setLineGC​(javafx.scene.canvas.GraphicsContext gc,
                                        JISAErrorDataSet dataSet)
      • setErrorBarGC

        protected static void setErrorBarGC​(javafx.scene.canvas.GraphicsContext gc,
                                            JISAErrorDataSet dataSet)
      • drawLegendSymbol

        public javafx.scene.canvas.Canvas drawLegendSymbol​(de.gsi.dataset.DataSet dataSet,
                                                           int dsIndex,
                                                           int width,
                                                           int height)
        Specified by:
        drawLegendSymbol in interface de.gsi.chart.renderer.Renderer
        Parameters:
        dataSet - 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
      • render

        public java.util.List<de.gsi.dataset.DataSet> render​(javafx.scene.canvas.GraphicsContext gc,
                                                             de.gsi.chart.Chart chart,
                                                             int dataSetOffset,
                                                             javafx.collections.ObservableList<de.gsi.dataset.DataSet> datasets)
        Specified by:
        render in interface de.gsi.chart.renderer.Renderer
      • drawMarker

        protected void drawMarker​(JISAErrorDataSet dataSet,
                                  javafx.scene.canvas.GraphicsContext gc,
                                  double x,
                                  double y)
      • drawErrorBars

        protected void drawErrorBars​(javafx.scene.canvas.GraphicsContext gc,
                                     jisa.gui.plotting.CachedDataPoints cache,
                                     JISAErrorDataSet dataSet)
      • drawMarkers

        protected void drawMarkers​(javafx.scene.canvas.GraphicsContext gc,
                                   jisa.gui.plotting.CachedDataPoints cache,
                                   JISAErrorDataSet dataSet)
        Parameters:
        gc - the graphics context from the Canvas parent
        cache - reference to local cached data point object
      • drawPolyLine

        protected void drawPolyLine​(javafx.scene.canvas.GraphicsContext gc,
                                    jisa.gui.plotting.CachedDataPoints cache,
                                    JISAErrorDataSet dataSet)
      • drawFittedLine

        protected void drawFittedLine​(javafx.scene.canvas.GraphicsContext gc,
                                      JISAErrorDataSet dataSet,
                                      de.gsi.dataset.spi.DoubleDataSet fitted,
                                      de.gsi.chart.axes.Axis xAxis,
                                      de.gsi.chart.axes.Axis yAxis)
      • getThis

        protected JISARenderer getThis()
        Specified by:
        getThis in class de.gsi.chart.renderer.spi.AbstractErrorDataSetRendererParameter<JISARenderer>
      • drawDataLine

        protected static void drawDataLine​(javafx.scene.canvas.GraphicsContext gc,
                                           jisa.gui.plotting.CachedDataPoints cache,
                                           JISAErrorDataSet dataSet)