net.sf.statcvs.renderer
Class Chart

java.lang.Object
  extended bynet.sf.statcvs.renderer.Chart
Direct Known Subclasses:
BarChart, CombinedCommitScatterChart, LOCChart, PieChart, StackedBarChart, TimeLineChart

public class Chart
extends Object

superclass of all charts provides several methods for charts

Author:
jentzsch

Constructor Summary
Chart(String title, String fileName)
          creates charts
 
Method Summary
 void createChart()
          create chart with titles and credit information
 JFreeChart getChart()
          get chart
 String getFileName()
          get fileName
 void saveChart(int imageWidth, int imageHeight)
          save chart as PNG
 void saveChart(int imageWidth, int imageHeight, String filename)
          save chart as PNG, restore old file name
 void setChart(JFreeChart chart)
          set chart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Chart

public Chart(String title,
             String fileName)
creates charts

Parameters:
title - chart title
fileName - fileName for chart
Method Detail

createChart

public void createChart()
create chart with titles and credit information


saveChart

public void saveChart(int imageWidth,
                      int imageHeight,
                      String filename)
save chart as PNG, restore old file name

Parameters:
imageWidth - image width
imageHeight - image height
filename - file name

saveChart

public void saveChart(int imageWidth,
                      int imageHeight)
save chart as PNG

Parameters:
imageWidth - image width
imageHeight - image height

getChart

public JFreeChart getChart()
get chart

Returns:
chart the chart

setChart

public void setChart(JFreeChart chart)
set chart

Parameters:
chart - the chart

getFileName

public String getFileName()
get fileName

Returns:
fileName file name