org.apache.myfaces.trinidad.model
Class ChartModel

java.lang.Object
  extended by org.apache.myfaces.trinidad.model.ChartModel

public abstract class ChartModel
extends java.lang.Object

The data model used by chart components. The chart is draw using values from the yValues 2D array. The yValues are returned by getYValues() method. The maximum and the minimum are controlled by getMaxYValue() method and getMinYValue() method. The default maximum value is 120% of the maximum of the yValues if no value is specified. The default minimum value is 0. For XYLine and Scatter plots xValues are also required. The xValues are controlled by getXValues() method, getMaxXValue() method and getMinXValue() method. The labels on y-axis of the graph are calculated from the yValues. However the labels on the x-axis are controlled by the group labels array returned by getGroupLabels() method. Each group of values in the chart may contain multiple series. The number of series in a group are controlled by getSeriesLabels() method. The colors of the series are controlled by getSeriesColors() method. The chart title, sub-title and the footnote can be specified using getTitle() method, getSubTitle() method and getFootNote() method


Constructor Summary
ChartModel()
           
 
Method Summary
 java.lang.String getFootNote()
           
abstract  java.util.List<java.lang.String> getGroupLabels()
           
 java.lang.Double getMaxXValue()
           
 java.lang.Double getMaxYValue()
           
 java.lang.Double getMinXValue()
           
 java.lang.Double getMinYValue()
           
 java.util.List<java.awt.Color> getSeriesColors()
           
abstract  java.util.List<java.lang.String> getSeriesLabels()
           
 java.lang.String getSubTitle()
           
 java.lang.String getTitle()
           
 java.util.List<java.util.List<java.lang.Double>> getXValues()
           
abstract  java.util.List<java.util.List<java.lang.Double>> getYValues()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartModel

public ChartModel()
Method Detail

getSeriesLabels

public abstract java.util.List<java.lang.String> getSeriesLabels()

getGroupLabels

public abstract java.util.List<java.lang.String> getGroupLabels()

getSeriesColors

public java.util.List<java.awt.Color> getSeriesColors()

getXValues

public java.util.List<java.util.List<java.lang.Double>> getXValues()

getYValues

public abstract java.util.List<java.util.List<java.lang.Double>> getYValues()

getMaxYValue

public java.lang.Double getMaxYValue()

getMinYValue

public java.lang.Double getMinYValue()

getMaxXValue

public java.lang.Double getMaxXValue()

getMinXValue

public java.lang.Double getMinXValue()

getTitle

public java.lang.String getTitle()

getSubTitle

public java.lang.String getSubTitle()

getFootNote

public java.lang.String getFootNote()


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.