com.hack23.cia.service.impl.control.chartservice.impl
Class ParliamentChartServiceImpl

Package class diagram package ParliamentChartServiceImpl
java.lang.Object
  extended by com.hack23.cia.service.impl.control.chartservice.impl.ParliamentChartServiceImpl
All Implemented Interfaces:
AbstractChartService, ParliamentChartService

public class ParliamentChartServiceImpl
extends Object
implements ParliamentChartService

The Class ParliamentChartServiceImpl.


Constructor Summary
Modifier Constructor and Description
protected ParliamentChartServiceImpl(ApplicationModelFactoryFactory applicationModelFactoryFactory)
          Instantiates a new parliament chart service impl.
 
Method Summary
Modifier and Type Method and Description
protected  BinaryContent createBar3DChart(org.jfree.data.category.CategoryDataset dataset, String title, String xTitle, String yTitle, String fileName)
          Creates the bar3 d chart.
protected  BinaryContent createTimeSeriesChart(String title, String timeAxisLabel, String valueAxisLabel, String fileName, org.jfree.data.time.TimeSeriesCollection responseTimeByHourDataset)
          Creates the time series chart.
 List<BinaryContent> generateParliamentCharts(AgencyData agency, List<BallotData> ballots, List<PoliticalPartyData> politicalParties, LanguageData language)
          Generate parliament charts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParliamentChartServiceImpl

protected ParliamentChartServiceImpl(ApplicationModelFactoryFactory applicationModelFactoryFactory)
Instantiates a new parliament chart service impl.

Parameters:
applicationModelFactoryFactory - the application model factory factory
Method Detail

generateParliamentCharts

public final List<BinaryContent> generateParliamentCharts(AgencyData agency,
                                                          List<BallotData> ballots,
                                                          List<PoliticalPartyData> politicalParties,
                                                          LanguageData language)
Description copied from interface: ParliamentChartService
Generate parliament charts.

Specified by:
generateParliamentCharts in interface ParliamentChartService
Parameters:
agency - the agency
ballots - the ballots
politicalParties - the political parties
language - the language
Returns:
the list

createBar3DChart

protected final BinaryContent createBar3DChart(org.jfree.data.category.CategoryDataset dataset,
                                               String title,
                                               String xTitle,
                                               String yTitle,
                                               String fileName)
Creates the bar3 d chart.

Parameters:
dataset - the dataset
title - the title
xTitle - the x title
yTitle - the y title
fileName - the file name
Returns:
the binary content

createTimeSeriesChart

protected final BinaryContent createTimeSeriesChart(String title,
                                                    String timeAxisLabel,
                                                    String valueAxisLabel,
                                                    String fileName,
                                                    org.jfree.data.time.TimeSeriesCollection responseTimeByHourDataset)
Creates the time series chart.

Parameters:
title - the title
timeAxisLabel - the time axis label
valueAxisLabel - the value axis label
fileName - the file name
responseTimeByHourDataset - the response time by hour dataset
Returns:
the binary content


Copyright © 2008-2010 www.hack23.com. All Rights Reserved.