Skip navigation links
org.apache.myfaces.trinidad.model
Class ChartModel
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChartModel
public ChartModel()
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()
Skip navigation links
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.