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: * ChartDefinition.java
028: *
029: * Created on 2 ottobre 2004, 10.23
030: *
031: */
032:
033: package it.businesslogic.ireport.chart;
034:
035: import java.util.*;
036:
037: /**
038: *
039: * @author Administrator
040: */
041: public class ChartDefinition {
042:
043: private javax.swing.ImageIcon icon;
044: private String[] neededSeries;
045: private String chartCategory = "";
046: private String chartName = "";
047: private Vector sheetProperties = null;
048:
049: /** Creates a new instance of ChartDefinition */
050: public ChartDefinition() {
051: setSheetProperties(new Vector());
052: }
053:
054: public javax.swing.ImageIcon getIcon() {
055: return icon;
056: }
057:
058: public void setIcon(javax.swing.ImageIcon icon) {
059: this .icon = icon;
060: }
061:
062: public String[] getNeededSeries() {
063: return neededSeries;
064: }
065:
066: public void setNeededSeries(String[] neededSeries) {
067: this .neededSeries = neededSeries;
068: }
069:
070: public String getType() {
071: return chartCategory;
072: }
073:
074: public void setType(String type) {
075: this .chartCategory = type;
076: }
077:
078: public String getChartName() {
079: return chartName;
080: }
081:
082: public void setChartName(String chartName) {
083: this .chartName = chartName;
084: }
085:
086: public String toString() {
087: return getChartName();
088:
089: }
090:
091: private String factory;
092:
093: public String getFactory() {
094: return factory;
095: }
096:
097: public void setFactory(String factory) {
098: this .factory = factory;
099: }
100:
101: public Vector getSheetProperties() {
102: return sheetProperties;
103: }
104:
105: public void setSheetProperties(Vector sheetProperties) {
106: this.sheetProperties = sheetProperties;
107: }
108: }
|