KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > it > businesslogic > ireport > chart > HighLowDataset


1 /*
2  * Copyright (C) 2005 - 2006 JasperSoft Corporation. All rights reserved.
3  * http://www.jaspersoft.com.
4  *
5  * Unless you have purchased a commercial license agreement from JasperSoft,
6  * the following license terms apply:
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as published by
10  * the Free Software Foundation.
11  *
12  * This program is distributed WITHOUT ANY WARRANTY; and without the
13  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14  * See the GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
18  * or write to:
19  *
20  * Free Software Foundation, Inc.,
21  * 59 Temple Place - Suite 330,
22  * Boston, MA USA 02111-1307
23  *
24  *
25  *
26  *
27  * HighLowDataset.java
28  *
29  * Created on 15 agosto 2005, 17.49
30  *
31  */

32
33 package it.businesslogic.ireport.chart;
34 import java.util.*;
35 /**
36  *
37  * @author Administrator
38  */

39 public class HighLowDataset extends Dataset {
40     
41     private String JavaDoc seriesExpression = "";
42     private String JavaDoc dateExpression = "";
43     private String JavaDoc highExpression = "";
44     private String JavaDoc lowExpression = "";
45     private String JavaDoc openExpression = "";
46     private String JavaDoc closeExpression = "";
47     private String JavaDoc volumeExpression = "";
48     private SectionItemHyperlink sectionHyperLink = new SectionItemHyperlink();
49     
50     /** Creates a new instance of PieDataset */
51     public HighLowDataset() {
52         super();
53     }
54
55     public String JavaDoc getSeriesExpression() {
56         return seriesExpression;
57     }
58
59     public void setSeriesExpression(String JavaDoc seriesExpression) {
60         this.seriesExpression = seriesExpression;
61     }
62
63     public String JavaDoc getDateExpression() {
64         return dateExpression;
65     }
66
67     public void setDateExpression(String JavaDoc dateExpression) {
68         this.dateExpression = dateExpression;
69     }
70
71     public String JavaDoc getHighExpression() {
72         return highExpression;
73     }
74
75     public void setHighExpression(String JavaDoc highExpression) {
76         this.highExpression = highExpression;
77     }
78
79     public String JavaDoc getLowExpression() {
80         return lowExpression;
81     }
82
83     public void setLowExpression(String JavaDoc lowExpression) {
84         this.lowExpression = lowExpression;
85     }
86
87     public String JavaDoc getOpenExpression() {
88         return openExpression;
89     }
90
91     public void setOpenExpression(String JavaDoc openExpression) {
92         this.openExpression = openExpression;
93     }
94
95     public String JavaDoc getCloseExpression() {
96         return closeExpression;
97     }
98
99     public void setCloseExpression(String JavaDoc closeExpression) {
100         this.closeExpression = closeExpression;
101     }
102
103     public String JavaDoc getVolumeExpression() {
104         return volumeExpression;
105     }
106
107     public void setVolumeExpression(String JavaDoc volumeExpression) {
108         this.volumeExpression = volumeExpression;
109     }
110     
111     public Dataset cloneMe()
112     {
113         HighLowDataset obj = new HighLowDataset();
114         copyBaseDataset(obj);
115         obj.setSeriesExpression(getSeriesExpression());
116         obj.setDateExpression( getDateExpression());
117         obj.setCloseExpression( getCloseExpression());
118         obj.setOpenExpression( getOpenExpression());
119         obj.setHighExpression( getHighExpression());
120         obj.setLowExpression( getLowExpression() );
121         obj.setVolumeExpression( getVolumeExpression());
122         obj.setItemHyperLink( getItemHyperLink().cloneMe());
123         
124         return obj;
125     }
126
127     public SectionItemHyperlink getItemHyperLink() {
128         return sectionHyperLink;
129     }
130
131     public void setItemHyperLink(SectionItemHyperlink secionHyperLink) {
132         this.sectionHyperLink = secionHyperLink;
133     }
134 }
135
Popular Tags