|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Description: Interface used to access a "data source" object. An object implementing this interface must respond to queries about a range of values. A DataSetType refers to the type of the data set (eg "Category", "Status", or "Type"). The name of the "dataSet" will be some value of the data set type. For instance, if the dataSetType was "Status", possible datasets may include ("Approved", "Pending", or "Rejected"). A single graph could include graphs for each of these datasets on the same graph (i.e. they are graphed relative to each other). A DataSet refers to a set of data that can be graphed and for right now usually has the Date as it's X axis. The data retrieved from a dataSource does not have to be sorted. The DataSet should be able to sort the data, once retrieved.
Field Summary | |
static int |
ALL
|
static int |
DAY
|
static int |
MONTH
|
static int |
NONE
|
static int |
WEEK
|
static int |
YEAR
|
Method Summary | |
java.lang.String[] |
getAvailableDataSets(java.lang.String dataSetType)
Get the list of data sets associated with the specified data set type. |
java.lang.String[] |
getAvailableDataSetTypes()
Get a list of "types" of graphs. |
DataSet |
getDataSetByDateRange(java.lang.String dataSetType,
java.lang.String dataSet,
java.util.Date date1,
java.util.Date date2,
java.lang.String valueToGraph)
Retrieves the data in a date range using the specified data set type, data set, and graph value. |
DataSet |
getDataSetByDateRange(java.lang.String dataSetType,
java.lang.String dataSet,
java.util.Date date1,
java.util.Date date2,
java.lang.String valueToGraph,
int groupBy)
Retrieves the data in a date range using the specified data set type, data set, graph value, and grouping. |
java.text.SimpleDateFormat |
getDefaultDateFormat()
Get the date format that should be used to draw dates. |
java.lang.String[] |
getPossibleGraphValues()
Get the list of possible "values" to graph. |
Field Detail |
public static final int DAY
public static final int WEEK
public static final int MONTH
public static final int YEAR
public static final int ALL
public static final int NONE
Method Detail |
public java.text.SimpleDateFormat getDefaultDateFormat()
public java.lang.String[] getAvailableDataSetTypes()
public java.lang.String[] getAvailableDataSets(java.lang.String dataSetType)
public java.lang.String[] getPossibleGraphValues()
public DataSet getDataSetByDateRange(java.lang.String dataSetType, java.lang.String dataSet, java.util.Date date1, java.util.Date date2, java.lang.String valueToGraph)
public DataSet getDataSetByDateRange(java.lang.String dataSetType, java.lang.String dataSet, java.util.Date date1, java.util.Date date2, java.lang.String valueToGraph, int groupBy)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |