01: package com.calipso.reportgenerator.userinterface;
02:
03: import org.jfree.data.category.CategoryDataset;
04:
05: import javax.swing.*;
06: import java.awt.*;
07:
08: /**
09: *
10: * User: Breto
11: * Date: Mar 11, 2004
12: * Time: 2:27:21 PM
13: *
14: */
15: public class Charts extends JPanel {
16: protected String tittle;
17: protected Color color;
18: protected boolean legend;
19: protected boolean toolTips;
20: protected Dimension size;
21: protected CategoryDataset dataset;
22: private boolean multipleAxis;
23:
24: public Charts(CategoryDataset dataset, String tittle, Color color,
25: boolean legend, boolean toolTips, Dimension size,
26: boolean multipleAxis) {
27: this .tittle = tittle;
28: this .color = color;
29: this .legend = legend;
30: this .toolTips = toolTips;
31: this .size = size;
32: this .dataset = dataset;
33: this .multipleAxis = multipleAxis;
34: }
35:
36: public String getTittle() {
37: return tittle;
38: }
39:
40: public Color getColor() {
41: return color;
42: }
43:
44: public boolean isLegend() {
45: return legend;
46: }
47:
48: public boolean isToolTips() {
49: return toolTips;
50: }
51:
52: public Dimension getSize() {
53: return size;
54: }
55:
56: public CategoryDataset getDataset() {
57: return dataset;
58: }
59:
60: public boolean isMultipleAxis() {
61: return multipleAxis;
62: }
63: }
|