Class ChartDescriptor

java.lang.Object
repast.simphony.scenario.AbstractDescriptor
repast.simphony.chart2.engine.ChartDescriptor
All Implemented Interfaces:
Descriptor
Direct Known Subclasses:
HistogramChartDescriptor, TimeSeriesChartDescriptor

public class ChartDescriptor extends AbstractDescriptor
Author:
Nick Collier
  • Field Details

    • dataSet

      protected String dataSet
    • xAxisLabel

      protected String xAxisLabel
    • yAxisLabel

      protected String yAxisLabel
    • chartTitle

      protected String chartTitle
    • type

      protected ChartDescriptor.ChartType type
    • background

      protected Color background
    • gridLineColor

      protected Color gridLineColor
    • showGrid

      protected boolean showGrid
    • showLegend

      protected boolean showLegend
  • Constructor Details

    • ChartDescriptor

      protected ChartDescriptor()
    • ChartDescriptor

      public ChartDescriptor(String name)
  • Method Details

    • getBackground

      public Color getBackground()
      Returns:
      the background
    • setBackground

      public void setBackground(Color background)
      Parameters:
      background - the background to set
    • getGridLineColor

      public Color getGridLineColor()
      Returns:
      the gridLineColor
    • setGridLineColor

      public void setGridLineColor(Color gridLineColor)
      Parameters:
      gridLineColor - the gridLineColor to set
    • isShowGrid

      public boolean isShowGrid()
      Returns:
      the showGrid
    • setShowGrid

      public void setShowGrid(boolean showGrid)
      Parameters:
      showGrid - the showGrid to set
    • getDataSet

      public String getDataSet()
      Returns:
      the dataSet
    • setDataSet

      public void setDataSet(String dataSet)
      Parameters:
      dataSet - the dataSet to set
    • getXAxisLabel

      public String getXAxisLabel()
      Returns:
      the xAxisLabel
    • setXAxisLabel

      public void setXAxisLabel(String xAxisLabel)
      Parameters:
      xAxisLabel - the xAxisLabel to set
    • getYAxisLabel

      public String getYAxisLabel()
      Returns:
      the yAxisLabel
    • setYAxisLabel

      public void setYAxisLabel(String yAxisLabel)
      Parameters:
      yAxisLabel - the yAxisLabel to set
    • getChartTitle

      public String getChartTitle()
      Returns:
      the chartTitle
    • setChartTitle

      public void setChartTitle(String chartTitle)
      Parameters:
      chartTitle - the chartTitle to set
    • doShowLegend

      public boolean doShowLegend()
    • setShowLegend

      public void setShowLegend(boolean val)