public class KPITrendGraph
extends java.lang.Object
| Constructor and Description |
|---|
KPITrendGraph(java.util.List kpis,
java.util.Date from,
java.util.Date to,
java.lang.String range,
long mainKPI,
WebClientSession clientsession) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getColor(int i)
Returns next available color to draw the chart
|
java.util.Vector |
getDates(int datePart,
int points,
java.util.GregorianCalendar g,
int skip)
Returns a string of labels for dates
|
int |
getXIncrement()
Adds a number of days, months, years etc based on range of the KPIHistory
Sets
|
LineChartData |
makeChartData()
Returns an object of type Map that will be passed to the
jsp for dojo chart image generation
|
LineChartData.LineChartItem |
makeLineData(MboRemote kpi,
MboSetData historyData,
int i,
java.util.Date startDate)
Instantiate a new Line set, set its properties and data
|
public KPITrendGraph(java.util.List kpis,
java.util.Date from,
java.util.Date to,
java.lang.String range,
long mainKPI,
WebClientSession clientsession)
kpis - List of KPIs to comparerange - Range typepublic LineChartData.LineChartItem makeLineData(MboRemote kpi, MboSetData historyData, int i, java.util.Date startDate)
public java.util.Vector getDates(int datePart,
int points,
java.util.GregorianCalendar g,
int skip)
datePart - the part of datepoints - number of points to be plottedskip - number of days to skippublic int getXIncrement()
public LineChartData makeChartData()
public java.lang.String getColor(int i)
i - index of color