KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > jasperreports > charts > design > JRDesignTimeSeriesPlot


1 /*
2  * ============================================================================
3  * GNU Lesser General Public License
4  * ============================================================================
5  *
6  * JasperReports - Free Java report-generating library.
7  * Copyright (C) 2001-2006 JasperSoft Corporation http://www.jaspersoft.com
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
22  *
23  * JasperSoft Corporation
24  * 303 Second Street, Suite 450 North
25  * San Francisco, CA 94107
26  * http://www.jaspersoft.com
27  */

28 package net.sf.jasperreports.charts.design;
29
30 import java.awt.Color JavaDoc;
31
32 import net.sf.jasperreports.charts.base.JRBaseTimeSeriesPlot;
33 import net.sf.jasperreports.charts.util.JRAxisFormat;
34 import net.sf.jasperreports.engine.JRChartPlot;
35 import net.sf.jasperreports.engine.JRConstants;
36 import net.sf.jasperreports.engine.JRExpression;
37 import net.sf.jasperreports.engine.JRFont;
38
39 /**
40  * @author Flavius Sana (flavius_sana@users.sourceforge.net)
41  * @version $Id: JRDesignTimeSeriesPlot.java 1386 2006-09-06 00:33:02 +0300 (Wed, 06 Sep 2006) bklawans $
42  */

43
44 public class JRDesignTimeSeriesPlot extends JRBaseTimeSeriesPlot {
45
46     private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID;
47     
48     public JRDesignTimeSeriesPlot(JRChartPlot plot){
49         super( plot );
50     }
51     
52     /**
53      *
54      */

55     public void setTimeAxisLabelExpression( JRExpression timeAxisLabelExpression ){
56         this.timeAxisLabelExpression = timeAxisLabelExpression;
57         
58     }
59
60     /**
61      *
62      */

63     public void setTimeAxisLabelFont(JRFont timeAxisLabelFont)
64     {
65         this.timeAxisLabelFont = timeAxisLabelFont;
66     }
67
68     /**
69      *
70      */

71     public void setTimeAxisLabelColor(Color JavaDoc timeAxisLabelColor)
72     {
73         this.timeAxisLabelColor = timeAxisLabelColor;
74     }
75
76     /**
77      *
78      */

79     public void setTimeAxisTickLabelFont(JRFont timeAxisTickLabelFont)
80     {
81         this.timeAxisTickLabelFont = timeAxisTickLabelFont;
82     }
83
84     /**
85      *
86      */

87     public void setTimeAxisTickLabelColor(Color JavaDoc timeAxisTickLabelColor)
88     {
89         this.timeAxisTickLabelColor = timeAxisTickLabelColor;
90     }
91
92     /**
93      *
94      */

95     public void setTimeAxisTickLabelMask(String JavaDoc timeAxisTickLabelMask)
96     {
97         this.timeAxisTickLabelMask = timeAxisTickLabelMask;
98     }
99
100     /**
101      *
102      */

103     public void setTimeAxisLineColor(Color JavaDoc timeAxisLineColor)
104     {
105         this.timeAxisLineColor = timeAxisLineColor;
106     }
107
108     /**
109      *
110      */

111     public void setValueAxisLabelExpression(JRExpression valueAxisLabelExpression)
112     {
113         this.valueAxisLabelExpression = valueAxisLabelExpression;
114     }
115
116     /**
117      *
118      */

119     public void setValueAxisLabelFont(JRFont valueAxisLabelFont)
120     {
121         this.valueAxisLabelFont = valueAxisLabelFont;
122     }
123
124     /**
125      *
126      */

127     public void setValueAxisLabelColor(Color JavaDoc valueAxisLabelColor)
128     {
129         this.valueAxisLabelColor = valueAxisLabelColor;
130     }
131     
132     /**
133      *
134      */

135     public void setValueAxisTickLabelFont(JRFont valueAxisTickLabelFont)
136     {
137         this.valueAxisTickLabelFont = valueAxisTickLabelFont;
138     }
139
140     /**
141      *
142      */

143     public void setValueAxisTickLabelColor(Color JavaDoc valueAxisTickLabelColor)
144     {
145         this.valueAxisTickLabelColor = valueAxisTickLabelColor;
146     }
147
148     /**
149      *
150      */

151     public void setValueAxisTickLabelMask(String JavaDoc valueAxisTickLabelMask)
152     {
153         this.valueAxisTickLabelMask = valueAxisTickLabelMask;
154     }
155
156     /**
157      *
158      */

159     public void setValueAxisLineColor(Color JavaDoc valueAxisLineColor)
160     {
161         this.valueAxisLineColor = valueAxisLineColor;
162     }
163
164     /**
165      *
166      */

167     public void setTimeAxisFormat(JRAxisFormat axisFormat)
168     {
169         setTimeAxisLabelFont(axisFormat.getLabelFont());
170         setTimeAxisLabelColor(axisFormat.getLabelColor());
171         setTimeAxisTickLabelFont(axisFormat.getTickLabelFont());
172         setTimeAxisTickLabelColor(axisFormat.getTickLabelColor());
173         setTimeAxisTickLabelMask(axisFormat.getTickLabelMask());
174         setTimeAxisLineColor(axisFormat.getLineColor());
175     }
176
177     /**
178      *
179      */

180     public void setValueAxisFormat(JRAxisFormat axisFormat)
181     {
182         setValueAxisLabelFont(axisFormat.getLabelFont());
183         setValueAxisLabelColor(axisFormat.getLabelColor());
184         setValueAxisTickLabelFont(axisFormat.getTickLabelFont());
185         setValueAxisTickLabelColor(axisFormat.getTickLabelColor());
186         setValueAxisTickLabelMask(axisFormat.getTickLabelMask());
187         setValueAxisLineColor(axisFormat.getLineColor());
188     }
189 }
190
Popular Tags