jgnash.ui.report.compiled
Class PayeePieChart

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

public class PayeePieChart
extends java.lang.Object

This displays a dialog that shows a pie chart with transactions from the selected account Filters can be setup on a per account basis to group by payee Name.

Version:
$Id$
Author:
Pranay Kumar

Nested Class Summary
private static class PayeePieChart.TranTuple
           
 
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  javax.swing.JComboBox filterCombo
           
private  java.util.Vector<java.lang.String> filterList
           
private  boolean filtersChanged
           
private static java.lang.String FILTERTAG
           
private  org.jfree.chart.labels.PieSectionLabelGenerator percentLabels
           
private  java.util.prefs.Preferences pref
           
private  Resource rb
           
private  javax.swing.JCheckBox showPercentCheck
           
private static java.lang.String STARTDATE
           
private  DatePanel startField
           
private  java.awt.TextField txtAddFilter
           
private  javax.swing.JCheckBox useFilters
           
 
Constructor Summary
PayeePieChart()
           
 
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  java.util.List<PayeePieChart.TranTuple> getTransactions(Account account, java.util.List<PayeePieChart.TranTuple> transactions, java.util.Date startDate, java.util.Date endDate)
           
private  void refreshFilters()
           
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

FILTERTAG

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

rb

private final Resource rb

pref

private java.util.prefs.Preferences pref

combo

private AccountListComboBox combo

useFilters

private javax.swing.JCheckBox useFilters

filterCombo

private javax.swing.JComboBox filterCombo

filterList

private java.util.Vector<java.lang.String> filterList

txtAddFilter

private java.awt.TextField txtAddFilter

filtersChanged

private boolean filtersChanged

showPercentCheck

private javax.swing.JCheckBox showPercentCheck

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

PayeePieChart

public PayeePieChart()
Method Detail

show

public static void show()

createPanel

private javax.swing.JPanel createPanel()

refreshFilters

private void refreshFilters()

setCurrentAccount

private void setCurrentAccount(Account a)

createPieChart

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

getTransactions

private java.util.List<PayeePieChart.TranTuple> getTransactions(Account account,
                                                                java.util.List<PayeePieChart.TranTuple> transactions,
                                                                java.util.Date startDate,
                                                                java.util.Date endDate)

createPieDataset

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