KickJava   Java API By Example, From Geeks To Geeks.

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


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.JRBaseBarPlot;
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 Teodor Danciu (teodord@users.sourceforge.net)
42  * @version $Id: JRDesignBarPlot.java 1386 2006-09-06 00:33:02 +0300 (Wed, 06 Sep 2006) bklawans $
43  */

44 public class JRDesignBarPlot extends JRBaseBarPlot
45 {
46
47
48     /**
49      *
50      */

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

57     public JRDesignBarPlot(JRChartPlot barPlot)
58     {
59         super(barPlot);
60     }
61
62
63     /**
64      *
65      */

66     public void setCategoryAxisLabelExpression(JRExpression categoryAxisLabelExpression)
67     {
68         this.categoryAxisLabelExpression = categoryAxisLabelExpression;
69     }
70
71     /**
72      *
73      */

74     public void setCategoryAxisLabelFont(JRFont categoryAxisLabelFont)
75     {
76         this.categoryAxisLabelFont = categoryAxisLabelFont;
77     }
78
79     /**
80      *
81      */

82     public void setCategoryAxisLabelColor(Color JavaDoc categoryAxisLabelColor)
83     {
84         this.categoryAxisLabelColor = categoryAxisLabelColor;
85     }
86
87     /**
88      *
89      */

90     public void setCategoryAxisTickLabelFont(JRFont categoryAxisTickLabelFont)
91     {
92         this.categoryAxisTickLabelFont = categoryAxisTickLabelFont;
93     }
94
95     /**
96      *
97      */

98     public void setCategoryAxisTickLabelColor(Color JavaDoc categoryAxisTickLabelColor)
99     {
100         this.categoryAxisTickLabelColor = categoryAxisTickLabelColor;
101     }
102
103     /**
104      *
105      */

106     public void setCategoryAxisTickLabelMask(String JavaDoc categoryAxisTickLabelMask)
107     {
108         this.categoryAxisTickLabelMask = categoryAxisTickLabelMask;
109     }
110
111     /**
112      *
113      */

114     public void setCategoryAxisLineColor(Color JavaDoc categoryAxisLineColor)
115     {
116         this.categoryAxisLineColor = categoryAxisLineColor;
117     }
118
119     /**
120      *
121      */

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

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

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

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

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

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

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

178     public void setCategoryAxisFormat(JRAxisFormat axisFormat)
179     {
180         setCategoryAxisLabelFont(axisFormat.getLabelFont());
181         setCategoryAxisLabelColor(axisFormat.getLabelColor());
182         setCategoryAxisTickLabelFont(axisFormat.getTickLabelFont());
183         setCategoryAxisTickLabelColor(axisFormat.getTickLabelColor());
184         setCategoryAxisTickLabelMask(axisFormat.getTickLabelMask());
185         setCategoryAxisLineColor(axisFormat.getLineColor());
186     }
187
188     /**
189      *
190      */

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