Package PamView.chart

Class PamChartSeries

java.lang.Object
PamView.chart.PamChartSeries

public class PamChartSeries extends Object
Series data for PAmChart.
Author:
dg50
  • 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 values
      yValues - 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

      public SeriesType getSeriesType()
      Returns:
      the seriesType
    • setSeriesType

      public void setSeriesType(SeriesType seriesType)
      Parameters:
      seriesType - the seriesType to set
    • getSymbolData

      public SymbolData getSymbolData()
      Returns:
      the pamSymbolBase
    • getLineColor

      public Color getLineColor()
      Returns:
      the lineColor
    • setLineColor

      public void setLineColor(Color lineColor)
      Parameters:
      lineColor - the lineColor to set
    • getSeriesYAxis

      public PamAxis getSeriesYAxis()
      Returns:
      the seriesYAxis
    • setSeriesYAxis

      public void setSeriesYAxis(PamAxis seriesYAxis)
      Parameters:
      seriesYAxis - the seriesYAxis to set
    • setSymbolData

      public void setSymbolData(SymbolData symbolData)
      Parameters:
      symbolData - the symbolData to set
    • getSeriesName

      public String getSeriesName()
      Returns:
      the seriesName
    • getLineWidth

      public float getLineWidth()
      Returns:
      the lineWidth
    • setLineWidth

      public void setLineWidth(float lineWidth)
      Parameters:
      lineWidth - the lineWidth to set