KickJava   Java API By Example, From Geeks To Geeks.

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


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.JRBaseCandlestickPlot;
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 /**
41  * @author Ionut Nedelcu (ionutned@users.sourceforge.net)
42  * @version $Id: JRDesignCandlestickPlot.java 1386 2006-09-06 00:33:02 +0300 (Wed, 06 Sep 2006) bklawans $
43  */

44 public class JRDesignCandlestickPlot extends JRBaseCandlestickPlot
45 {
46     /**
47      *
48      */

49     private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID;
50
51
52     /**
53      *
54      */

55     public JRDesignCandlestickPlot(JRChartPlot candlestickPlot)
56     {
57         super(candlestickPlot);
58     }
59
60
61     /**
62      *
63      */

64     public void setTimeAxisLabelExpression( JRExpression timeAxisLabelExpression ){
65         this.timeAxisLabelExpression = timeAxisLabelExpression;
66         
67     }
68
69     /**
70      *
71      */

72     public void setTimeAxisLabelFont(JRFont timeAxisLabelFont)
73     {
74         this.timeAxisLabelFont = timeAxisLabelFont;
75     }
76
77     /**
78      *
79      */

80     public void setTimeAxisLabelColor(Color JavaDoc timeAxisLabelColor)
81     {
82         this.timeAxisLabelColor = timeAxisLabelColor;
83     }
84
85     /**
86      *
87      */

88     public void setTimeAxisTickLabelFont(JRFont timeAxisTickLabelFont)
89     {
90         this.timeAxisTickLabelFont = timeAxisTickLabelFont;
91     }
92
93     /**
94      *
95      */

96     public void setTimeAxisTickLabelColor(Color JavaDoc timeAxisTickLabelColor)
97     {
98         this.timeAxisTickLabelColor = timeAxisTickLabelColor;
99     }
100
101     /**
102      *
103      */

104     public void setTimeAxisTickLabelMask(String JavaDoc timeAxisTickLabelMask)
105     {
106         this.timeAxisTickLabelMask = timeAxisTickLabelMask;
107     }
108
109     /**
110      *
111      */

112     public void setTimeAxisLineColor(Color JavaDoc timeAxisLineColor)
113     {
114         this.timeAxisLineColor = timeAxisLineColor;
115     }
116
117     /**
118      *
119      */

120     public void setValueAxisLabelExpression(JRExpression valueAxisLabelExpression)
121     {
122         this.valueAxisLabelExpression = valueAxisLabelExpression;
123     }
124
125     /**
126      *
127      */

128     public void setValueAxisLabelFont(JRFont valueAxisLabelFont)
129     {
130         this.valueAxisLabelFont = valueAxisLabelFont;
131     }
132
133     /**
134      *
135      */

136     public void setValueAxisLabelColor(Color JavaDoc valueAxisLabelColor)
137     {
138         this.valueAxisLabelColor = valueAxisLabelColor;
139     }
140     
141     /**
142      *
143      */

144     public void setValueAxisTickLabelFont(JRFont valueAxisTickLabelFont)
145     {
146         this.valueAxisTickLabelFont = valueAxisTickLabelFont;
147     }
148
149     /**
150      *
151      */

152     public void setValueAxisTickLabelColor(Color JavaDoc valueAxisTickLabelColor)
153     {
154         this.valueAxisTickLabelColor = valueAxisTickLabelColor;
155     }
156
157     /**
158      *
159      */

160     public void setValueAxisTickLabelMask(String JavaDoc valueAxisTickLabelMask)
161     {
162         this.valueAxisTickLabelMask = valueAxisTickLabelMask;
163     }
164
165     /**
166      *
167      */

168     public void setValueAxisLineColor(Color JavaDoc valueAxisLineColor)
169     {
170         this.valueAxisLineColor = valueAxisLineColor;
171     }
172     
173     /**
174      *
175      */

176     public void setTimeAxisFormat(JRAxisFormat axisFormat)
177     {
178         setTimeAxisLabelFont(axisFormat.getLabelFont());
179         setTimeAxisLabelColor(axisFormat.getLabelColor());
180         setTimeAxisTickLabelFont(axisFormat.getTickLabelFont());
181         setTimeAxisTickLabelColor(axisFormat.getTickLabelColor());
182         setTimeAxisTickLabelMask(axisFormat.getTickLabelMask());
183         setTimeAxisLineColor(axisFormat.getLineColor());
184     }
185
186     /**
187      *
188      */

189     public void setValueAxisFormat(JRAxisFormat axisFormat)
190     {
191         setValueAxisLabelFont(axisFormat.getLabelFont());
192         setValueAxisLabelColor(axisFormat.getLabelColor());
193         setValueAxisTickLabelFont(axisFormat.getTickLabelFont());
194         setValueAxisTickLabelColor(axisFormat.getTickLabelColor());
195         setValueAxisTickLabelMask(axisFormat.getTickLabelMask());
196         setValueAxisLineColor(axisFormat.getLineColor());
197     }
198 }
199
Popular Tags