Package repast.simphony.chart2.engine
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ChartDescriptor.ChartType
-
Field Summary
Fields Modifier and Type Field Description protected Color
background
protected String
chartTitle
protected String
dataSet
protected Color
gridLineColor
protected boolean
showGrid
protected boolean
showLegend
protected ChartDescriptor.ChartType
type
protected String
xAxisLabel
protected String
yAxisLabel
-
Fields inherited from class repast.simphony.scenario.AbstractDescriptor
scs
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ChartDescriptor()
ChartDescriptor(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doShowLegend()
Color
getBackground()
String
getChartTitle()
String
getDataSet()
Color
getGridLineColor()
String
getXAxisLabel()
String
getYAxisLabel()
boolean
isShowGrid()
void
setBackground(Color background)
void
setChartTitle(String chartTitle)
void
setDataSet(String dataSet)
void
setGridLineColor(Color gridLineColor)
void
setShowGrid(boolean showGrid)
void
setShowLegend(boolean val)
void
setXAxisLabel(String xAxisLabel)
void
setYAxisLabel(String yAxisLabel)
-
Methods inherited from class repast.simphony.scenario.AbstractDescriptor
addScenarioChangedListener, getName, readResolve, setName
-
-
-
-
Field Detail
-
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 Detail
-
ChartDescriptor
protected ChartDescriptor()
-
ChartDescriptor
public ChartDescriptor(String name)
-
-
Method Detail
-
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)
-
-