Package org.knowm.xchart.internal.series
Class AxesChartSeriesNumericalNoErrorBars
- java.lang.Object
-
- org.knowm.xchart.internal.series.Series
-
- org.knowm.xchart.internal.series.AxesChartSeries
-
- org.knowm.xchart.internal.series.MarkerSeries
-
- org.knowm.xchart.internal.series.AxesChartSeriesNumericalNoErrorBars
-
- Direct Known Subclasses:
NoMarkersSeries,XYSeries
public abstract class AxesChartSeriesNumericalNoErrorBars extends MarkerSeries
A Series containing X and Y data to be plotted on a Chart with X and Y Axes. xData can be Number or Date(epochtime), hence a double[]
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.knowm.xchart.internal.series.Series
Series.DataType
-
-
Field Summary
Fields Modifier and Type Field Description (package private) double[]extraValues(package private) double[]extraValuesAll(package private) double[]xData(package private) double[]xDataAll(package private) double[]yData(package private) double[]yDataAll-
Fields inherited from class org.knowm.xchart.internal.series.AxesChartSeries
xAxisDataType, xMax, xMin, yAxisType, yMax, yMin
-
-
Constructor Summary
Constructors Constructor Description AxesChartSeriesNumericalNoErrorBars(java.lang.String name, double[] xData, double[] yData, double[] extraValues, Series.DataType xAxisDataType)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcalculateMinMax()voidfilterXByIndex(int startIndex, int endIndex)booleanfilterXByValue(double minValue, double maxValue)(package private) double[]findMinMax(double[] data)Finds the min and max of a datasetprivate double[]findMinMaxWithErrorBars(double[] data, double[] errorBars)Finds the min and max of a dataset accounting for error barsdouble[]getExtraValues()double[]getXData()double[]getYData()booleanisAllXData()Is xData.length equal to xDataAll.lengthvoidreplaceData(double[] newXData, double[] newYData, double[] newExtraValues)This is an internal method which shouldn't be called from client code.voidresetFilter()-
Methods inherited from class org.knowm.xchart.internal.series.MarkerSeries
getMarker, getMarkerColor, setMarker, setMarkerColor
-
Methods inherited from class org.knowm.xchart.internal.series.AxesChartSeries
getLineColor, getLineStyle, getLineWidth, getxAxisDataType, getXMax, getXMin, getyAxisDataType, getYMax, getYMin, setLineColor, setLineStyle, setLineWidth
-
Methods inherited from class org.knowm.xchart.internal.series.Series
getFillColor, getLabel, getLegendRenderType, getName, getYAxisDecimalPattern, getYAxisGroup, isEnabled, isShowInLegend, setEnabled, setFillColor, setLabel, setShowInLegend, setYAxisDecimalPattern, setYAxisGroup
-
-
-
-
Constructor Detail
-
AxesChartSeriesNumericalNoErrorBars
public AxesChartSeriesNumericalNoErrorBars(java.lang.String name, double[] xData, double[] yData, double[] extraValues, Series.DataType xAxisDataType)Constructor- Parameters:
name-xData-yData-xAxisDataType-
-
-
Method Detail
-
replaceData
public void replaceData(double[] newXData, double[] newYData, double[] newExtraValues)This is an internal method which shouldn't be called from client code. Use XYChart.updateXYSeries or CategoryChart.updateXYSeries instead!- Parameters:
newXData-newYData-newExtraValues-
-
filterXByIndex
public void filterXByIndex(int startIndex, int endIndex)
-
filterXByValue
public boolean filterXByValue(double minValue, double maxValue)
-
resetFilter
public void resetFilter()
-
findMinMax
double[] findMinMax(double[] data)
Finds the min and max of a dataset- Parameters:
data-- Returns:
-
calculateMinMax
protected void calculateMinMax()
- Specified by:
calculateMinMaxin classAxesChartSeries
-
findMinMaxWithErrorBars
private double[] findMinMaxWithErrorBars(double[] data, double[] errorBars)Finds the min and max of a dataset accounting for error bars- Parameters:
data-errorBars-- Returns:
-
isAllXData
public boolean isAllXData()
Is xData.length equal to xDataAll.length- Returns:
- true: equal; false: not equal
-
getXData
public double[] getXData()
-
getYData
public double[] getYData()
-
getExtraValues
public double[] getExtraValues()
-
-