Package jisa.gui.plotting
Class JISARenderer
- java.lang.Object
-
- de.gsi.chart.renderer.spi.AbstractDataSetManagement<R>
-
- de.gsi.chart.renderer.spi.AbstractPointReductionManagment<R>
-
- de.gsi.chart.renderer.spi.AbstractErrorDataSetRendererParameter<JISARenderer>
-
- jisa.gui.plotting.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
-
-
Constructor Summary
Constructors Constructor Description JISARenderer()
Creates newErrorDataSetRenderer
.JISARenderer(int dashSize)
Creates newErrorDataSetRenderer
.
-
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
-
-
-
-
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 interfacede.gsi.chart.renderer.Renderer
- Parameters:
dataSet
- for which the representative icon should be generateddsIndex
- index within renderer setwidth
- requested width of the returning Canvasheight
- 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 interfacede.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 parentcache
- 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 classde.gsi.chart.renderer.spi.AbstractErrorDataSetRendererParameter<JISARenderer>
-
drawDataLine
protected static void drawDataLine(javafx.scene.canvas.GraphicsContext gc, jisa.gui.plotting.CachedDataPoints cache, JISAErrorDataSet dataSet)
-
-