Package PamView.chart
Class PamChartSeries
java.lang.Object
PamView.chart.PamChartSeries
Series data for PAmChart.
- Author:
- dg50
-
Constructor Summary
ConstructorsConstructorDescriptionPamChartSeries(SeriesType seriesType, String seriesName, double[] xValues, double[] yValues) Make a chart series. -
Method Summary
Modifier and TypeMethodDescriptionfloatdouble[]double[]voidsetLineColor(Color lineColor) voidsetLineWidth(float lineWidth) protected voidsetPamSymbolBase(SymbolData symbolData) voidsetSeriesType(SeriesType seriesType) voidsetSeriesYAxis(PamAxis seriesYAxis) voidsetSymbolData(SymbolData symbolData) voidsetxValues(double[] xValues) voidsetyValues(double[] yValues) voidsortByX()Sort the series into order by X value (needed if plotting lines, not important for scatter)
-
Constructor Details
-
PamChartSeries
public PamChartSeries(SeriesType seriesType, String seriesName, double[] xValues, double[] yValues) throws PamChartSeriesException Make a chart series. For bar charts, if the x array is the same length as the y array, assume the values refer to bin centres. If the x array is 1 greater than the y array length, assume they are histogram bin edges.- Parameters:
xValues- array of x axis valuesyValues- array of y axis values- Throws:
PamChartSeriesException
-
-
Method Details
-
sortByX
public void sortByX()Sort the series into order by X value (needed if plotting lines, not important for scatter) -
getxValues
public double[] getxValues()- Returns:
- the xValues
-
setxValues
public void setxValues(double[] xValues) - Parameters:
xValues- the xValues to set
-
getyValues
public double[] getyValues()- Returns:
- the yValues
-
setyValues
public void setyValues(double[] yValues) - Parameters:
yValues- the yValues to set
-
getSeriesType
- Returns:
- the seriesType
-
setSeriesType
- Parameters:
seriesType- the seriesType to set
-
getSymbolData
- Returns:
- the pamSymbolBase
-
setPamSymbolBase
- Parameters:
pamSymbolBase- the pamSymbolBase to set
-
getLineColor
- Returns:
- the lineColor
-
setLineColor
- Parameters:
lineColor- the lineColor to set
-
getSeriesYAxis
- Returns:
- the seriesYAxis
-
setSeriesYAxis
- Parameters:
seriesYAxis- the seriesYAxis to set
-
setSymbolData
- Parameters:
symbolData- the symbolData to set
-
getSeriesName
- Returns:
- the seriesName
-
getLineWidth
public float getLineWidth()- Returns:
- the lineWidth
-
setLineWidth
public void setLineWidth(float lineWidth) - Parameters:
lineWidth- the lineWidth to set
-