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: * Plot.java
028: *
029: * Created on 8 luglio 2005, 17.55
030: *
031: */
032:
033: package it.businesslogic.ireport.chart;
034:
035: /**
036: *
037: * @author Administrator
038: */
039: public class Plot {
040:
041: private java.awt.Color backcolor = null;
042: private String orientation = "Vertical";
043: private double backgroundAlpha = 1;
044: private double foregroundAlpha = 1;
045: private double labelRotation = 0;
046: private java.util.List seriesColors = new java.util.ArrayList();
047:
048: /** Creates a new instance of Plot */
049: public Plot() {
050: }
051:
052: public java.awt.Color getBackcolor() {
053: return backcolor;
054: }
055:
056: public void setBackcolor(java.awt.Color backcolor) {
057: this .backcolor = backcolor;
058: }
059:
060: public String getOrientation() {
061: return orientation;
062: }
063:
064: public void setOrientation(String orientation) {
065: this .orientation = orientation;
066: }
067:
068: public double getBackgroundAlpha() {
069: return backgroundAlpha;
070: }
071:
072: public void setBackgroundAlpha(double backgroundAlpha) {
073: this .backgroundAlpha = backgroundAlpha;
074: }
075:
076: public double getForegroundAlpha() {
077: return foregroundAlpha;
078: }
079:
080: public void setForegroundAlpha(double foregroundAlpha) {
081: this .foregroundAlpha = foregroundAlpha;
082: }
083:
084: public Plot cloneMe() {
085: return new Plot();
086: }
087:
088: public void copyBasePlot(Plot plot) {
089: if (getBackcolor() != null)
090: plot.setBackcolor(new java.awt.Color(getBackcolor()
091: .getRGB()));
092: plot.setForegroundAlpha(getForegroundAlpha());
093: plot.setBackgroundAlpha(getBackgroundAlpha());
094: plot.setOrientation(new String(getOrientation()));
095: }
096:
097: public double getLabelRotation() {
098: return labelRotation;
099: }
100:
101: public void setLabelRotation(double labelRotation) {
102: this .labelRotation = labelRotation;
103: }
104:
105: public java.util.List getSeriesColors() {
106: return seriesColors;
107: }
108:
109: public void setSeriesColors(java.util.List seriesColors) {
110: this.seriesColors = seriesColors;
111: }
112:
113: }
|