KickJava   Java API By Example, From Geeks To Geeks.

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


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.JRBaseHighLowPlot;
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: JRDesignHighLowPlot.java 1386 2006-09-06 00:33:02 +0300 (Wed, 06 Sep 2006) bklawans $
43  */

44 public class JRDesignHighLowPlot extends JRBaseHighLowPlot
45 {
46
47     /**
48      *
49      */

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

56     public JRDesignHighLowPlot(JRChartPlot highLowPlot)
57     {
58         super(highLowPlot);
59     }
60
61
62     /**
63      *
64      */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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