net.sourceforge.doyen
Class ViewUsageReportsAction
java.lang.Object
javax.swing.AbstractAction
net.sourceforge.doyen.ViewUsageReportsAction
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- class ViewUsageReportsAction
- extends AbstractAction
mLogger
private static Logger mLogger
mParent
private Doyen mParent
CHART_HEIGHT
private static final int CHART_HEIGHT
- See Also:
- Constant Field Values
CHART_WIDTH
private static final int CHART_WIDTH
- See Also:
- Constant Field Values
IMAGE_HEIGHT
private static final int IMAGE_HEIGHT
- See Also:
- Constant Field Values
IMAGE_WIDTH
private static final int IMAGE_WIDTH
- See Also:
- Constant Field Values
ViewUsageReportsAction
public ViewUsageReportsAction(Doyen parent)
actionPerformed
public void actionPerformed(ActionEvent e)
getDataSet
private static org.jCharts.chartData.PieChartDataSet getDataSet(ProfileType profile,
String title,
org.jCharts.properties.PieChart2DProperties properties)
throws org.jCharts.chartData.ChartDataException
- Throws:
org.jCharts.chartData.ChartDataException
getStringArray
private static String[] getStringArray(List alLabels)
getDoubleArray
private static double[] getDoubleArray(List alData)
- Now, to perform a magical conversion from an ArrayList of Longs to an array of doubles
getDataAndLabels
private static void getDataAndLabels(ProfileType profile,
List alData,
List alLabels)
getDataAndLabels
private static void getDataAndLabels(ProjectType project,
List alData,
List alLabels)
getDataAndLabels
private static void getDataAndLabels(TaskType task,
List alData,
List alLabels)
getDuration
private static long getDuration(TimeLogType timelog)
getPaints
private static Paint[] getPaints(int num)