org.ujac.chart
Interface ChartModel

All Known Implementing Classes:
DefaultChartModel, RealtimeChartModel

public interface ChartModel

Name: ChartModel
Description: An interface for chart models.

Author:
lauerc

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 chart data.
 double getMinValue()
          Gets the minimum value from the chart data.
 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.
 

Method Detail

getTitle

TextChartItem getTitle()
Gets the chart title.

Returns:
The chart's title item.

setTitle

void setTitle(TextChartItem title)
Sets the chart title.

Parameters:
title - The title item for the chart.

getChartData

List getChartData()
Gets the chart data as a list of double arrays.

Returns:
A list of double arrays.

setChartData

void setChartData(List chartData)
Sets the chart data as a list of double arrays.

Parameters:
chartData - A list of double arrays.

getAreaLabels

List getAreaLabels()
Gets the chart area labels as a list of Strings.

Returns:
A list of Strings.

setAreaLabels

void setAreaLabels(List areaLabels)
Sets the chart area labels as a list of Strings.

Parameters:
areaLabels - A list of Strings.

getSegmentLabels

List getSegmentLabels()
Gets the chart segment labels as a list of Strings.

Returns:
A list of Strings.

setSegmentLabels

void setSegmentLabels(List segmentLabels)
Sets the chart segment labels as a list of Strings.

Parameters:
segmentLabels - A list of Strings.

getMinValue

double getMinValue()
Gets the minimum value from the chart data.

Returns:
The minimum chart data value.

setMinValue

void setMinValue(double minValue)
Sets the minimum value from the chart data.

Parameters:
minValue - The minimum chart data value.

getMaxValue

double getMaxValue()
Gets the maximum value from the chart data.

Returns:
The maximum chart data value.

setMaxValue

void setMaxValue(double maxValue)
Sets the maximum value from the chart data.

Parameters:
maxValue - The maximum chart data value.

getNumSegments

int getNumSegments()
Gets the number of segments.

Returns:
The number of segments.

getNumAreas

int getNumAreas()
Gets the number of areas.

Returns:
The number of areas (the segment lengths).


Copyright © 2003-2004 UJAC.org. All Rights Reserved.