|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.chart.DefaultChartModel
public class DefaultChartModel
Name: DefaultChartModel
Description: Default implementation for chart models.
Field Summary | |
---|---|
protected List |
areaLabels
The chart area labels. |
protected List |
chartData
The chart data. |
protected double |
maxValue
The maximum data value. |
protected double |
minValue
The minimum data value. |
protected List |
segmentLabels
The chart segment labels. |
protected TextChartItem |
title
The chart's title item. |
Constructor Summary | |
---|---|
DefaultChartModel()
Constructs a DefaultChartModel instance with no specific attributes. |
Method Summary | |
---|---|
List |
getAreaLabels()
Gets the chart area labels as a list of Strings. |
List |
getChartData()
Gets the chart data as a list of double arrays. |
double |
getMaxValue()
Gets the maximum value from the chartData. |
double |
getMinValue()
Gets the minimum value from the chartData. |
int |
getNumAreas()
Gets the number of areas. |
int |
getNumSegments()
Gets the number of segments. |
List |
getSegmentLabels()
Gets the chart segment labels as a list of Strings. |
TextChartItem |
getTitle()
Gets the chart title. |
void |
setAreaLabels(List areaLabels)
Sets the chart area labels as a list of Strings. |
void |
setChartData(List chartData)
Sets the chart data as a list of double arrays. |
void |
setMaxValue(double maxValue)
Sets the maximum value from the chart data. |
void |
setMinValue(double minValue)
Sets the minimum value from the chart data. |
void |
setSegmentLabels(List segmentLabels)
Sets the chart segment labels as a list of Strings. |
void |
setTitle(TextChartItem title)
Sets the chart title. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TextChartItem title
protected List chartData
protected List areaLabels
protected List segmentLabels
protected double minValue
protected double maxValue
Constructor Detail |
---|
public DefaultChartModel()
Method Detail |
---|
public TextChartItem getTitle()
ChartModel
getTitle
in interface ChartModel
ChartModel.getTitle()
public void setTitle(TextChartItem title)
ChartModel
setTitle
in interface ChartModel
title
- The title item for the chart.ChartModel.setTitle(org.ujac.chart.TextChartItem)
public List getChartData()
ChartModel
getChartData
in interface ChartModel
ChartModel.getChartData()
public void setChartData(List chartData)
ChartModel
setChartData
in interface ChartModel
chartData
- A list of double arrays.ChartModel.setChartData(java.util.List)
public List getAreaLabels()
getAreaLabels
in interface ChartModel
public void setAreaLabels(List areaLabels)
setAreaLabels
in interface ChartModel
areaLabels
- A list of Strings.public List getSegmentLabels()
getSegmentLabels
in interface ChartModel
public void setSegmentLabels(List segmentLabels)
setSegmentLabels
in interface ChartModel
segmentLabels
- A list of Strings.public double getMinValue()
getMinValue
in interface ChartModel
public void setMinValue(double minValue)
setMinValue
in interface ChartModel
minValue
- The minimum chart data value.public double getMaxValue()
getMaxValue
in interface ChartModel
public void setMaxValue(double maxValue)
setMaxValue
in interface ChartModel
maxValue
- The maximum chart data value.public int getNumSegments()
getNumSegments
in interface ChartModel
public int getNumAreas()
getNumAreas
in interface ChartModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |