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
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 Series
Series.DataType -
Field Summary
FieldsModifier and TypeFieldDescription(package private) double[](package private) double[](package private) double[](package private) double[](package private) double[](package private) double[]Fields inherited from class AxesChartSeries
xAxisDataType, xMax, xMin, yAxisType, yMax, yMin -
Constructor Summary
ConstructorsConstructorDescriptionAxesChartSeriesNumericalNoErrorBars(String name, double[] xData, double[] yData, double[] extraValues, Series.DataType xAxisDataType) Constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidfilterXByIndex(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[]double[]getXData()double[]getYData()booleanIs 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.voidMethods inherited from class MarkerSeries
getMarker, getMarkerColor, setMarker, setMarkerColorMethods inherited from class AxesChartSeries
getLineColor, getLineStyle, getLineWidth, getxAxisDataType, getXMax, getXMin, getyAxisDataType, getYMax, getYMin, setLineColor, setLineStyle, setLineWidthMethods inherited from class Series
getFillColor, getLabel, getLegendRenderType, getName, getYAxisDecimalPattern, getYAxisGroup, isEnabled, isShowInLegend, setEnabled, setFillColor, setLabel, setShowInLegend, setYAxisDecimalPattern, setYAxisGroup
-
Field Details
-
xDataAll
double[] xDataAll -
yDataAll
double[] yDataAll -
extraValuesAll
double[] extraValuesAll -
xData
double[] xData -
yData
double[] yData -
extraValues
double[] extraValues
-
-
Constructor Details
-
AxesChartSeriesNumericalNoErrorBars
public AxesChartSeriesNumericalNoErrorBars(String name, double[] xData, double[] yData, double[] extraValues, Series.DataType xAxisDataType) Constructor- Parameters:
name-xData-yData-xAxisDataType-
-
-
Method Details
-
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()
-