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: * TimePeriodSeries.java
028: *
029: * Created on 17 agosto 2005, 10.56
030: *
031: */
032:
033: package it.businesslogic.ireport.chart;
034:
035: /**
036: *
037: * @author Administrator
038: */
039: public class TimePeriodSeries {
040:
041: private String seriesExpression = "";
042: private String startDateExpression = "";
043: private String endDateExpression = "";
044: private String valueExpression = "";
045: private String labelExpression = "";
046: private SectionItemHyperlink sectionItemHyperlink = new SectionItemHyperlink();
047:
048: /** Creates a new instance of CategorySeries */
049: public TimePeriodSeries() {
050: }
051:
052: public String getSeriesExpression() {
053: return seriesExpression;
054: }
055:
056: public void setSeriesExpression(String seriesExpression) {
057: this .seriesExpression = seriesExpression;
058: }
059:
060: public String getValueExpression() {
061: return valueExpression;
062: }
063:
064: public void setValueExpression(String valueExpression) {
065: this .valueExpression = valueExpression;
066: }
067:
068: public String getLabelExpression() {
069: return labelExpression;
070: }
071:
072: public void setLabelExpression(String labelExpression) {
073: this .labelExpression = labelExpression;
074: }
075:
076: public String toString() {
077: String str = getSeriesExpression();
078: if (str == null)
079: str = "";
080: if (str.length() > 50)
081: str = str.substring(0, 30);
082:
083: return "Time period series [" + str + "]";
084: }
085:
086: public String getStartDateExpression() {
087: return startDateExpression;
088: }
089:
090: public void setStartDateExpression(String startDateExpression) {
091: this .startDateExpression = startDateExpression;
092: }
093:
094: public String getEndDateExpression() {
095: return endDateExpression;
096: }
097:
098: public void setEndDateExpression(String endDateExpression) {
099: this .endDateExpression = endDateExpression;
100: }
101:
102: public TimePeriodSeries cloneMe() {
103: TimePeriodSeries cs = new TimePeriodSeries();
104: cs.setSeriesExpression(this .getSeriesExpression());
105: cs.setStartDateExpression(this .getStartDateExpression());
106: cs.setEndDateExpression(this .getEndDateExpression());
107: cs.setValueExpression(this .getValueExpression());
108: cs.setLabelExpression(this .getLabelExpression());
109: cs.setSectionItemHyperlink(this .getSectionItemHyperlink()
110: .cloneMe());
111:
112: return cs;
113: }
114:
115: public SectionItemHyperlink getSectionItemHyperlink() {
116: return sectionItemHyperlink;
117: }
118:
119: public void setSectionItemHyperlink(
120: SectionItemHyperlink sectionItemHyperlink) {
121: this.sectionItemHyperlink = sectionItemHyperlink;
122: }
123:
124: }
|