MATSIM
CountsGraph.java
Go to the documentation of this file.
1 /* *********************************************************************** *
2  * project: org.matsim.*
3  * CountsGraph.java
4  * *
5  * *********************************************************************** *
6  * *
7  * copyright : (C) 2007 by the members listed in the COPYING, *
8  * LICENSE and WARRANTY file. *
9  * email : info at matsim dot org *
10  * *
11  * *********************************************************************** *
12  * *
13  * This program is free software; you can redistribute it and/or modify *
14  * it under the terms of the GNU General Public License as published by *
15  * the Free Software Foundation; either version 2 of the License, or *
16  * (at your option) any later version. *
17  * See also COPYING, LICENSE and WARRANTY file *
18  * *
19  * *********************************************************************** */
20 
21 package org.matsim.counts.algorithms.graphs;
22 
23 import java.util.List;
24 
25 import org.jfree.chart.JFreeChart;
27 
28 
29 public abstract class CountsGraph {
30  protected List<CountSimComparison> ccl_;
31  protected JFreeChart chart_;
32  protected int iteration_;
36  private String chartTitle_;
40  private String filename;
41 
42  public CountsGraph() {
43  }
44 
45  public CountsGraph(final List<CountSimComparison> ccl, final int iteration, final String filename, final String chartTitle) {
46  this.ccl_=ccl;
47  this.iteration_=iteration;
48  this.chartTitle_=chartTitle;
49  this.filename = filename;
50  }
51 
52  public String getChartTitle() {
53  return this.chartTitle_;
54  }
55  public JFreeChart getChart() {
56  return this.chart_;
57  }
58  public void setChartTitle(final String chartTitle) {
59  this.chartTitle_=chartTitle;
60  }
61 
62  public abstract JFreeChart createChart(int nbr);
63 
64 
68  public String getFilename() {
69  return this.filename;
70  }
71 
75  public void setFilename(final String filename) {
76  this.filename = filename;
77  }
78 }
void setChartTitle(final String chartTitle)
abstract JFreeChart createChart(int nbr)
CountsGraph(final List< CountSimComparison > ccl, final int iteration, final String filename, final String chartTitle)