jgnash.ui.report.compiled
Class IncomeExpensePieChart

java.lang.Object
  extended by jgnash.ui.report.compiled.IncomeExpensePieChart

public class IncomeExpensePieChart
extends java.lang.Object

This displays a dialog that shows a pie chart with account distribution for Income and Expense accounts only.

Version:
$Id$
Author:
Jeff Prickett, Craig Cavanaugh, Chad McHenry, Dany Veilleux

Field Summary
private  org.jfree.chart.ChartPanel chartPanel
           
private  AccountListComboBox combo
           
private  Account currentAccount
           
private  org.jfree.chart.labels.PieSectionLabelGenerator defaultLabels
           
private  DatePanel endField
           
private  java.awt.Point lastPoint
           
private  org.jfree.chart.labels.PieSectionLabelGenerator percentLabels
           
private  java.util.prefs.Preferences pref
           
private  Resource rb
           
private  javax.swing.JCheckBox showEmptyCheck
           
private  javax.swing.JCheckBox showPercentCheck
           
private static java.lang.String STARTDATE
           
private  DatePanel startField
           
private  java.awt.Cursor ZOOM_IN
           
private  java.awt.Cursor ZOOM_OUT
           
 
Constructor Summary
IncomeExpensePieChart()
           
 
Method Summary
private  javax.swing.JPanel createPanel()
           
private  org.jfree.chart.JFreeChart createPieChart(Account a)
           
private  org.jfree.data.general.PieDataset createPieDataset(Account a)
           
private  void setChartCursor(org.jfree.chart.ChartPanel chartPanel, org.jfree.chart.entity.ChartEntity e, java.awt.Point point)
           
private  void setCurrentAccount(Account a)
           
static void show()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STARTDATE

private static final java.lang.String STARTDATE
See Also:
Constant Field Values

rb

private final Resource rb

pref

private java.util.prefs.Preferences pref

combo

private AccountListComboBox combo

showEmptyCheck

private javax.swing.JCheckBox showEmptyCheck

showPercentCheck

private javax.swing.JCheckBox showPercentCheck

ZOOM_IN

private java.awt.Cursor ZOOM_IN

ZOOM_OUT

private java.awt.Cursor ZOOM_OUT

lastPoint

private java.awt.Point lastPoint

currentAccount

private Account currentAccount

chartPanel

private org.jfree.chart.ChartPanel chartPanel

startField

private DatePanel startField

endField

private DatePanel endField

defaultLabels

private org.jfree.chart.labels.PieSectionLabelGenerator defaultLabels

percentLabels

private org.jfree.chart.labels.PieSectionLabelGenerator percentLabels
Constructor Detail

IncomeExpensePieChart

public IncomeExpensePieChart()
Method Detail

show

public static void show()

createPanel

private javax.swing.JPanel createPanel()

setCurrentAccount

private void setCurrentAccount(Account a)

setChartCursor

private void setChartCursor(org.jfree.chart.ChartPanel chartPanel,
                            org.jfree.chart.entity.ChartEntity e,
                            java.awt.Point point)

createPieChart

private org.jfree.chart.JFreeChart createPieChart(Account a)

createPieDataset

private org.jfree.data.general.PieDataset createPieDataset(Account a)