|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object za.org.coefficient.modules.BaseModule za.org.coefficient.modules.statistics.StatisticsDisplay
public class StatisticsDisplay
Constructor Summary | |
---|---|
StatisticsDisplay()
|
Method Summary | |
---|---|
private void |
addDataToDataset(java.util.Map dateDataMap,
org.jfree.data.time.TimeTableXYDataset dataset,
java.lang.String seriesName)
|
java.lang.String |
canExecuteForRole(CoefficientContext ctx,
java.lang.String methodName,
Role usersHighestRole)
This is a base implementation that will allow all methods to be invoked without regard to roles |
java.util.ArrayList |
generateAndSaveModuleXYLineCharts(CoefficientContext ctx,
int daysToInclude)
|
java.lang.String |
generateAndSavePercentActivityPieChart(CoefficientContext ctx,
int daysToInclude)
|
java.lang.String |
generateAndSaveProjectTotalsXYLineChart(CoefficientContext ctx,
int daysToInclude)
|
java.lang.String |
getMainMethod()
This method is used to determine which method should be invoked when the module is requested without an operation. |
java.lang.String |
getModuleDescription()
This method is used to find the description of the module |
java.lang.String |
getModuleDisplayName()
This method is used to find the display name of the module |
private void |
registerChartForDeletion(java.lang.String fileName,
CoefficientContext ctx)
Adds a ChartDeleter object to the session object with the name JFreeChart_Deleter if there is not already one bound to the session and adds the filename to the list of charts to be deleted. |
java.lang.String |
saveChartForViewing(CoefficientContext ctx,
org.jfree.chart.JFreeChart jfc)
|
CoefficientContext |
showStatistics(CoefficientContext ctx)
|
Methods inherited from class za.org.coefficient.modules.BaseModule |
---|
createRSSItem, displayUsersData, getCoefficientContext, getModuleName, isProjectRequired, publishEvent, setCoefficientContext, showHelp |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StatisticsDisplay()
Method Detail |
---|
public java.lang.String getMainMethod()
ModuleLocal
getMainMethod
in interface ModuleLocal
getMainMethod
in class BaseModule
public java.lang.String getModuleDescription()
ModuleLocal
getModuleDescription
in interface ModuleLocal
getModuleDescription
in class BaseModule
public java.lang.String getModuleDisplayName()
ModuleLocal
getModuleDisplayName
in interface ModuleLocal
getModuleDisplayName
in class BaseModule
public java.lang.String canExecuteForRole(CoefficientContext ctx, java.lang.String methodName, Role usersHighestRole)
BaseModule
canExecuteForRole
in interface ModuleLocal
canExecuteForRole
in class BaseModule
public CoefficientContext showStatistics(CoefficientContext ctx)
public java.lang.String generateAndSavePercentActivityPieChart(CoefficientContext ctx, int daysToInclude)
public java.lang.String generateAndSaveProjectTotalsXYLineChart(CoefficientContext ctx, int daysToInclude)
public java.util.ArrayList generateAndSaveModuleXYLineCharts(CoefficientContext ctx, int daysToInclude)
public java.lang.String saveChartForViewing(CoefficientContext ctx, org.jfree.chart.JFreeChart jfc) throws java.io.IOException
java.io.IOException
private void addDataToDataset(java.util.Map dateDataMap, org.jfree.data.time.TimeTableXYDataset dataset, java.lang.String seriesName)
private void registerChartForDeletion(java.lang.String fileName, CoefficientContext ctx)
tempFile
- the file to be deleted.ctx
- the coefficient context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |