View Javadoc

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.data.general.Dataset;
22  
23  /**
24   * 
25   * @author <a href="dvicente72@gmail.com">David Vicente</a>
26   * 
27   */
28  public interface IChartStrategy
29  {
30      /**
31       * 
32       * @param dashboardReport
33       * @return
34       */
35      //Dataset createDataset( IDashBoardReportBean dashboardReport );
36      /**
37       * 
38       */
39      Dataset getDataset();
40      
41      void fillDataset();
42          
43      /**
44       * 
45       * @param dataset
46       * @param dashboardReport
47       */
48      //void createDatasetElement( Dataset dataset, IDashBoardReportBean dashboardReport );
49  
50      /**
51       * 
52       * @return
53       */
54      String getXAxisLabel();
55  
56      /**
57       * 
58       * @return
59       */
60      String getYAxisLabel();
61      
62      /**
63       * 
64       * @return
65       */
66      void setXAxisLabel( String xAxisLabel);
67  
68      /**
69       * 
70       * @return
71       */
72      void setYAxisLabel( String yAxisLabel );
73  
74      /**
75       * 
76       * @return
77       */
78      Paint[] getPaintColor();
79  
80      /**
81       * 
82       * @return
83       */
84      boolean isDatasetEmpty();
85  
86      /**
87       * 
88       * @param isDatasetEmpty
89       */
90      void setDatasetEmpty( boolean isDatasetEmpty );
91  
92      /**
93       * 
94       * @return
95       */
96      //ResourceBundle getBundle();
97      /**
98       * 
99       * @return
100      */
101     String getTitle();
102         
103 }