1 package org.codehaus.mojo.dashboard.report.plugin.chart;
2
3 /*
4 * Copyright 2006 David Vicente
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18
19 import java.awt.Paint;
20
21 import org.jfree.chart.ChartColor;
22
23 /**
24 * @author <a href="dvicente72@gmail.com">David Vicente</a>
25 *
26 */
27 public abstract class AbstractChartStrategy implements IChartStrategy
28 {
29 /**
30 *
31 */
32 //private ResourceBundle bundle = null;
33
34 /**
35 *
36 */
37 private boolean isDatasetEmpty = true;
38
39 private String title = "";
40 private String xAxisLabel = "";
41 private String yAxisLabel = "";
42
43 /**
44 *
45 * @param bundle
46 */
47 /*public AbstractChartStrategy( ResourceBundle bundle, String title )
48 {
49 this.bundle = bundle;
50 this.title = title;
51 }*/
52
53 /**
54 *
55 */
56 public String getXAxisLabel()
57 {
58 return xAxisLabel;
59 }
60
61 /**
62 *
63 */
64 public String getYAxisLabel()
65 {
66 return yAxisLabel;
67 }
68
69 /**
70 *
71 */
72 public void setXAxisLabel( String xAxisLabel)
73 {
74 this.xAxisLabel = xAxisLabel;
75 }
76
77 /**
78 *
79 */
80 public void setYAxisLabel( String yAxisLabel )
81 {
82 this.yAxisLabel = yAxisLabel;
83 }
84
85 /**
86 *
87 */
88 public Paint[] getPaintColor()
89 {
90 return ChartColor.createDefaultPaintArray();
91 }
92
93 /**
94 *
95 */
96 public boolean isDatasetEmpty()
97 {
98 return this.isDatasetEmpty;
99 }
100
101 /**
102 *
103 */
104 public void setDatasetEmpty( boolean isDatasetEmpty )
105 {
106 this.isDatasetEmpty = isDatasetEmpty;
107 }
108
109 public String getTitle()
110 {
111 return title;
112 }
113 public void setTitle( String title )
114 {
115 this.title = title;
116 }
117 }