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: * BubblePlot.java
028: *
029: * Created on 16 agosto 2005, 10.19
030: *
031: */
032:
033: package it.businesslogic.ireport.chart;
034:
035: /**
036: *
037: * @author Administrator
038: */
039: public class BubblePlot extends Plot {
040:
041: private String scaleType = "RangeAxis";
042:
043: private String xAxisLabelExpression = "";
044: private String yAxisLabelExpression = "";
045:
046: private AxisFormat xAxisFormat = new AxisFormat();
047: private AxisFormat yAxisFormat = new AxisFormat();
048:
049: /** Creates a new instance of PiePlot */
050: public BubblePlot() {
051: }
052:
053: public String getXAxisLabelExpression() {
054: return xAxisLabelExpression;
055: }
056:
057: public void setXAxisLabelExpression(String xAxisLabelExpression) {
058: this .xAxisLabelExpression = xAxisLabelExpression;
059: }
060:
061: public String getYAxisLabelExpression() {
062: return yAxisLabelExpression;
063: }
064:
065: public void setYAxisLabelExpression(String yAxisLabelExpression) {
066: this .yAxisLabelExpression = yAxisLabelExpression;
067: }
068:
069: public String getScaleType() {
070: return scaleType;
071: }
072:
073: public void setScaleType(String scaleType) {
074: this .scaleType = scaleType;
075: }
076:
077: public Plot cloneMe() {
078: BubblePlot obj = new BubblePlot();
079: copyBasePlot(obj);
080: obj.setScaleType(this .getScaleType());
081: obj.setYAxisLabelExpression(this .getYAxisLabelExpression());
082: obj.setXAxisLabelExpression(this .getXAxisLabelExpression());
083:
084: obj.setXAxisFormat(getXAxisFormat().cloneMe());
085: obj.setYAxisFormat(getYAxisFormat().cloneMe());
086:
087: return obj;
088: }
089:
090: public AxisFormat getXAxisFormat() {
091: return xAxisFormat;
092: }
093:
094: public void setXAxisFormat(AxisFormat xAxisFormat) {
095: this .xAxisFormat = xAxisFormat;
096: }
097:
098: public AxisFormat getYAxisFormat() {
099: return yAxisFormat;
100: }
101:
102: public void setYAxisFormat(AxisFormat yAxisFormat) {
103: this.yAxisFormat = yAxisFormat;
104: }
105:
106: }
|