001: /*
002: * Copyright (C) 2005 - 2008 JasperSoft Corporation. All rights reserved.
003: * http://www.jaspersoft.com.
004: *
005: * Unless you have purchased a commercial license agreement from JasperSoft,
006: * the following license terms apply:
007: *
008: * This program is free software; you can redistribute it and/or modify
009: * it under the terms of the GNU General Public License version 2 as published by
010: * the Free Software Foundation.
011: *
012: * This program is distributed WITHOUT ANY WARRANTY; and without the
013: * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
014: * See the GNU General Public License for more details.
015: *
016: * You should have received a copy of the GNU General Public License
017: * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
018: * or write to:
019: *
020: * Free Software Foundation, Inc.,
021: * 59 Temple Place - Suite 330,
022: * Boston, MA USA 02111-1307
023: *
024: *
025: *
026: *
027: * HighLowDataset.java
028: *
029: * Created on 15 agosto 2005, 17.49
030: *
031: */
032:
033: package it.businesslogic.ireport.chart;
034:
035: import java.util.*;
036:
037: /**
038: *
039: * @author Administrator
040: */
041: public class HighLowDataset extends Dataset {
042:
043: private String seriesExpression = "";
044: private String dateExpression = "";
045: private String highExpression = "";
046: private String lowExpression = "";
047: private String openExpression = "";
048: private String closeExpression = "";
049: private String volumeExpression = "";
050: private SectionItemHyperlink sectionHyperLink = new SectionItemHyperlink();
051:
052: /** Creates a new instance of PieDataset */
053: public HighLowDataset() {
054: super ();
055: }
056:
057: public String getSeriesExpression() {
058: return seriesExpression;
059: }
060:
061: public void setSeriesExpression(String seriesExpression) {
062: this .seriesExpression = seriesExpression;
063: }
064:
065: public String getDateExpression() {
066: return dateExpression;
067: }
068:
069: public void setDateExpression(String dateExpression) {
070: this .dateExpression = dateExpression;
071: }
072:
073: public String getHighExpression() {
074: return highExpression;
075: }
076:
077: public void setHighExpression(String highExpression) {
078: this .highExpression = highExpression;
079: }
080:
081: public String getLowExpression() {
082: return lowExpression;
083: }
084:
085: public void setLowExpression(String lowExpression) {
086: this .lowExpression = lowExpression;
087: }
088:
089: public String getOpenExpression() {
090: return openExpression;
091: }
092:
093: public void setOpenExpression(String openExpression) {
094: this .openExpression = openExpression;
095: }
096:
097: public String getCloseExpression() {
098: return closeExpression;
099: }
100:
101: public void setCloseExpression(String closeExpression) {
102: this .closeExpression = closeExpression;
103: }
104:
105: public String getVolumeExpression() {
106: return volumeExpression;
107: }
108:
109: public void setVolumeExpression(String volumeExpression) {
110: this .volumeExpression = volumeExpression;
111: }
112:
113: public Dataset cloneMe() {
114: HighLowDataset obj = new HighLowDataset();
115: copyBaseDataset(obj);
116: obj.setSeriesExpression(getSeriesExpression());
117: obj.setDateExpression(getDateExpression());
118: obj.setCloseExpression(getCloseExpression());
119: obj.setOpenExpression(getOpenExpression());
120: obj.setHighExpression(getHighExpression());
121: obj.setLowExpression(getLowExpression());
122: obj.setVolumeExpression(getVolumeExpression());
123: obj.setItemHyperLink(getItemHyperLink().cloneMe());
124:
125: return obj;
126: }
127:
128: public SectionItemHyperlink getItemHyperLink() {
129: return sectionHyperLink;
130: }
131:
132: public void setItemHyperLink(SectionItemHyperlink secionHyperLink) {
133: this.sectionHyperLink = secionHyperLink;
134: }
135: }
|