net.sourceforge.doyen
Class ViewUsageReportsAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bynet.sourceforge.doyen.ViewUsageReportsAction
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

class ViewUsageReportsAction
extends AbstractAction


Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
private static int CHART_HEIGHT
           
private static int CHART_WIDTH
           
private static int IMAGE_HEIGHT
           
private static int IMAGE_WIDTH
           
private static Logger mLogger
           
private  Doyen mParent
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ViewUsageReportsAction(Doyen parent)
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
private static void getDataAndLabels(ProfileType profile, List alData, List alLabels)
           
private static void getDataAndLabels(ProjectType project, List alData, List alLabels)
           
private static void getDataAndLabels(TaskType task, List alData, List alLabels)
           
private static org.jCharts.chartData.PieChartDataSet getDataSet(ProfileType profile, String title, org.jCharts.properties.PieChart2DProperties properties)
           
private static double[] getDoubleArray(List alData)
          Now, to perform a magical conversion from an ArrayList of Longs to an array of doubles
private static long getDuration(TimeLogType timelog)
           
private static Paint[] getPaints(int num)
           
private static String[] getStringArray(List alLabels)
           
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ViewUsageReportsAction

public ViewUsageReportsAction(Doyen parent)
Method Detail

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)