|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 ChartModelChartModel.getTitle()public void setTitle(TextChartItem title)
ChartModel
setTitle in interface ChartModeltitle - The title item for the chart.ChartModel.setTitle(org.ujac.chart.TextChartItem)public List getChartData()
ChartModel
getChartData in interface ChartModelChartModel.getChartData()public void setChartData(List chartData)
ChartModel
setChartData in interface ChartModelchartData - A list of double arrays.ChartModel.setChartData(java.util.List)public List getAreaLabels()
getAreaLabels in interface ChartModelpublic void setAreaLabels(List areaLabels)
setAreaLabels in interface ChartModelareaLabels - A list of Strings.public List getSegmentLabels()
getSegmentLabels in interface ChartModelpublic void setSegmentLabels(List segmentLabels)
setSegmentLabels in interface ChartModelsegmentLabels - A list of Strings.public double getMinValue()
getMinValue in interface ChartModelpublic void setMinValue(double minValue)
setMinValue in interface ChartModelminValue - The minimum chart data value.public double getMaxValue()
getMaxValue in interface ChartModelpublic void setMaxValue(double maxValue)
setMaxValue in interface ChartModelmaxValue - The maximum chart data value.public int getNumSegments()
getNumSegments in interface ChartModelpublic int getNumAreas()
getNumAreas in interface ChartModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||