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: * Bar3DPlot.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 Bar3DPlot extends Plot {
040:
041: private boolean showLabels = false;
042: private double xOffset = org.jfree.chart.renderer.category.BarRenderer3D.DEFAULT_X_OFFSET;
043: private double yOffset = org.jfree.chart.renderer.category.BarRenderer3D.DEFAULT_Y_OFFSET;
044:
045: private String categoryAxisLabelExpression = "";
046: private String valueAxisLabelExpression = "";
047:
048: private AxisFormat categoryAxisFormat = new AxisFormat();
049: private AxisFormat valueAxisFormat = new AxisFormat();
050:
051: /** Creates a new instance of PiePlot */
052: public Bar3DPlot() {
053: }
054:
055: public boolean isShowLabels() {
056: return showLabels;
057: }
058:
059: public void setShowLabels(boolean showLabels) {
060: this .showLabels = showLabels;
061: }
062:
063: public String getCategoryAxisLabelExpression() {
064: return categoryAxisLabelExpression;
065: }
066:
067: public void setCategoryAxisLabelExpression(
068: String categoryAxisLabelExpression) {
069: this .categoryAxisLabelExpression = categoryAxisLabelExpression;
070: }
071:
072: public String getValueAxisLabelExpression() {
073: return valueAxisLabelExpression;
074: }
075:
076: public void setValueAxisLabelExpression(
077: String valueAxisLabelExpression) {
078: this .valueAxisLabelExpression = valueAxisLabelExpression;
079: }
080:
081: public double getXOffset() {
082: return xOffset;
083: }
084:
085: public void setXOffset(double xOffset) {
086: this .xOffset = xOffset;
087: }
088:
089: public double getYOffset() {
090: return yOffset;
091: }
092:
093: public void setYOffset(double yOffset) {
094: this .yOffset = yOffset;
095: }
096:
097: public Plot cloneMe() {
098: Bar3DPlot obj = new Bar3DPlot();
099: copyBasePlot(obj);
100: obj.setXOffset(this .getXOffset());
101: obj.setYOffset(this .getYOffset());
102: obj.setCategoryAxisLabelExpression(this
103: .getCategoryAxisLabelExpression());
104: obj.setValueAxisLabelExpression(this
105: .getValueAxisLabelExpression());
106: obj.setShowLabels(this .isShowLabels());
107: obj.setCategoryAxisFormat(getCategoryAxisFormat().cloneMe());
108: obj.setValueAxisFormat(getValueAxisFormat().cloneMe());
109:
110: return obj;
111: }
112:
113: public AxisFormat getCategoryAxisFormat() {
114: return categoryAxisFormat;
115: }
116:
117: public void setCategoryAxisFormat(AxisFormat categoryAxisFormat) {
118: this .categoryAxisFormat = categoryAxisFormat;
119: }
120:
121: public AxisFormat getValueAxisFormat() {
122: return valueAxisFormat;
123: }
124:
125: public void setValueAxisFormat(AxisFormat valueAxisFormat) {
126: this.valueAxisFormat = valueAxisFormat;
127: }
128:
129: }
|