cs235MasseyA6
DataVisualiser
 All Classes Files Functions
Public Member Functions | Static Public Member Functions | List of all members
PieChart Class Reference
Inheritance diagram for PieChart:
Inheritance graph
[legend]
Collaboration diagram for PieChart:
Collaboration graph
[legend]

Public Member Functions

 PieChart (ChartData data, String title, String colourScheme, ArrayList< Color > userList)
 Constructor for PieChart. More...
 
Dataset CreateDataset (ChartData data)
 Creates a JFreeChart dataset from data in form ChartData. More...
 
- Public Member Functions inherited from Chart
boolean SetChartTitle (String title)
 Set the Title of the chart. More...
 
String GetChartTitle ()
 Accessor for m_ChartTitle. More...
 
boolean SetAuthor (String author)
 Set the Author of the chart. More...
 
String GetAuthor ()
 Accessor for m_Author. More...
 
boolean SetDate (Boolean date)
 Mutator for m_Date - the Date of the chart. More...
 
Boolean GetDate ()
 Accessor for m_Date. More...
 
boolean SetDescription (String descr)
 Mutator for m_Description - Description of the chart. More...
 
String GetDescription ()
 Accessor for m_Description. More...
 
boolean SetXAxis (String xAxis)
 Mutator method for m_XAxis - X Axis Label of chart. More...
 
String GetXAxis ()
 Accessor for m_XAxis. More...
 
boolean SetYAxis (String yAxis)
 Mutator method of m_YAxis - Y Axis Label of chart. More...
 
String GetYAxis ()
 Accessor for m_YAxis. More...
 
JFreeChart GetChart ()
 Accessor for m_Chart - internal chart structure. More...
 
boolean SetChart (JFreeChart chart)
 Mutator for m_Chart - internal data storage. More...
 
boolean SetColour (ColourList colour)
 Mutator method for m_Colour - colour scheme of chart. More...
 
boolean SetLegend (LegendTitle legend)
 Mutator method of m_Legend - legent of chart. More...
 
LegendTitle GetLegend ()
 Accessor for m_Legend. More...
 
 Chart (ChartData data, String title, String colourScheme, ArrayList< Color > userList)
 Constructor from data, title and colourScheme. More...
 
- Public Member Functions inherited from Visualisation
boolean SetColour (ColourList colour)
 Mutator for m_ColourScheme - the colour scheme of the chart. More...
 
ChartData GetData ()
 Accessor for m_Data. More...
 
boolean SetData (ChartData data)
 Mutator for m_Data - the internal data structure. More...
 
ColourList GetColour ()
 Accessor for m_Colour. More...
 
boolean SetTitle (String title)
 Mutator for m_Title - title of visualisation. More...
 
String GetTitle ()
 Accessor for m_Title. More...
 
String toString ()
 Displays data in the form of a string. More...
 

Static Public Member Functions

static void main (String[] args)
 Unit test. More...
 

Additional Inherited Members

- Protected Attributes inherited from Chart
JFreeChart m_Chart
 
String m_ChartTitle
 
String m_Author = ""
 
Boolean m_Date = false
 
String m_Description = ""
 
String m_XAxis = ""
 
String m_YAxis = ""
 
LegendTitle m_Legend
 

Constructor & Destructor Documentation

PieChart.PieChart ( ChartData  data,
String  title,
String  colourScheme,
ArrayList< Color >  userList 
)

Constructor for PieChart.

Parameters
datais the data that shall be used to create the chart
titleis the title to be used upon creation of the chart
colourSchemeis a string of the type of colour to use
userListis the ArrayList<Color> of user defined colours
Returns
- a new PieChart with specified data

Here is the call graph for this function:

Member Function Documentation

Dataset PieChart.CreateDataset ( ChartData  data)
virtual

Creates a JFreeChart dataset from data in form ChartData.

Parameters
datais the data that shall be used to create the chart

Implements Chart.

Here is the call graph for this function:

static void PieChart.main ( String[]  args)
static

Unit test.

Parameters
args- command line arguments (not used)

Here is the call graph for this function:


The documentation for this class was generated from the following file: