001: /*
002: * ============================================================================
003: * GNU Lesser General Public License
004: * ============================================================================
005: *
006: * JasperReports - Free Java report-generating library.
007: * Copyright (C) 2001-2006 JasperSoft Corporation http://www.jaspersoft.com
008: *
009: * This library is free software; you can redistribute it and/or
010: * modify it under the terms of the GNU Lesser General Public
011: * License as published by the Free Software Foundation; either
012: * version 2.1 of the License, or (at your option) any later version.
013: *
014: * This library is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017: * Lesser General Public License for more details.
018: *
019: * You should have received a copy of the GNU Lesser General Public
020: * License along with this library; if not, write to the Free Software
021: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
022: *
023: * JasperSoft Corporation
024: * 303 Second Street, Suite 450 North
025: * San Francisco, CA 94107
026: * http://www.jaspersoft.com
027: */
028: package net.sf.jasperreports.charts.fill;
029:
030: import java.awt.Color;
031:
032: import net.sf.jasperreports.charts.JRBar3DPlot;
033: import net.sf.jasperreports.engine.JRExpression;
034: import net.sf.jasperreports.engine.JRFont;
035: import net.sf.jasperreports.engine.base.JRBaseFont;
036: import net.sf.jasperreports.engine.fill.JRFillChartPlot;
037: import net.sf.jasperreports.engine.fill.JRFillObjectFactory;
038: import net.sf.jasperreports.engine.util.JRStyleResolver;
039:
040: /**
041: * @author Teodor Danciu (teodord@users.sourceforge.net)
042: * @version $Id: JRFillBar3DPlot.java 1577 2007-02-09 11:25:48Z teodord $
043: */
044: public class JRFillBar3DPlot extends JRFillChartPlot implements
045: JRBar3DPlot {
046:
047: /**
048: *
049: */
050: protected JRFont categoryAxisLabelFont = null;
051: protected Color categoryAxisLabelColor = null;
052: protected JRFont categoryAxisTickLabelFont = null;
053: protected Color categoryAxisTickLabelColor = null;
054: protected Color categoryAxisLineColor = null;
055:
056: protected JRFont valueAxisLabelFont = null;
057: protected Color valueAxisLabelColor = null;
058: protected JRFont valueAxisTickLabelFont = null;
059: protected Color valueAxisTickLabelColor = null;
060: protected Color valueAxisLineColor = null;
061:
062: /**
063: *
064: */
065: public JRFillBar3DPlot(JRBar3DPlot barPlot,
066: JRFillObjectFactory factory) {
067: super (barPlot, factory);
068:
069: categoryAxisLabelFont = new JRBaseFont(null, null, barPlot
070: .getChart(), barPlot.getCategoryAxisLabelFont());
071: categoryAxisLabelColor = barPlot.getOwnCategoryAxisLabelColor();
072: categoryAxisTickLabelFont = new JRBaseFont(null, null, barPlot
073: .getChart(), barPlot.getCategoryAxisTickLabelFont());
074: categoryAxisTickLabelColor = barPlot
075: .getOwnCategoryAxisTickLabelColor();
076: categoryAxisLineColor = barPlot.getOwnCategoryAxisLineColor();
077:
078: valueAxisLabelFont = new JRBaseFont(null, null, barPlot
079: .getChart(), barPlot.getValueAxisLabelFont());
080: valueAxisLabelColor = barPlot.getOwnValueAxisLabelColor();
081: valueAxisTickLabelFont = new JRBaseFont(null, null, barPlot
082: .getChart(), barPlot.getValueAxisTickLabelFont());
083: valueAxisTickLabelColor = barPlot
084: .getOwnValueAxisTickLabelColor();
085: valueAxisLineColor = barPlot.getOwnValueAxisLineColor();
086: }
087:
088: /**
089: *
090: */
091: public JRExpression getCategoryAxisLabelExpression() {
092: return ((JRBar3DPlot) parent).getCategoryAxisLabelExpression();
093: }
094:
095: /**
096: *
097: */
098: public JRFont getCategoryAxisLabelFont() {
099: return categoryAxisLabelFont;
100: }
101:
102: /**
103: *
104: */
105: public void setCategoryAxisLabelFont(JRFont font) {
106: }
107:
108: /**
109: *
110: */
111: public Color getCategoryAxisLabelColor() {
112: return JRStyleResolver.getCategoryAxisLabelColor(this , this );
113: }
114:
115: /**
116: *
117: */
118: public Color getOwnCategoryAxisLabelColor() {
119: return categoryAxisLabelColor;
120: }
121:
122: /**
123: *
124: */
125: public void setCategoryAxisLabelColor(Color color) {
126: }
127:
128: /**
129: *
130: */
131: public JRFont getCategoryAxisTickLabelFont() {
132: return categoryAxisTickLabelFont;
133: }
134:
135: /**
136: *
137: */
138: public void setCategoryAxisTickLabelFont(JRFont font) {
139: }
140:
141: /**
142: *
143: */
144: public Color getCategoryAxisTickLabelColor() {
145: return JRStyleResolver
146: .getCategoryAxisTickLabelColor(this , this );
147: }
148:
149: /**
150: *
151: */
152: public Color getOwnCategoryAxisTickLabelColor() {
153: return categoryAxisTickLabelColor;
154: }
155:
156: /**
157: *
158: */
159: public void setCategoryAxisTickLabelColor(Color color) {
160: }
161:
162: /**
163: *
164: */
165: public String getCategoryAxisTickLabelMask() {
166: return ((JRBar3DPlot) parent).getCategoryAxisTickLabelMask();
167: }
168:
169: /**
170: *
171: */
172: public void setCategoryAxisTickLabelMask(String mask) {
173: }
174:
175: /**
176: *
177: */
178: public Color getCategoryAxisLineColor() {
179: return JRStyleResolver.getCategoryAxisLineColor(this , this );
180: }
181:
182: /**
183: *
184: */
185: public Color getOwnCategoryAxisLineColor() {
186: return categoryAxisLineColor;
187: }
188:
189: /**
190: *
191: */
192: public void setCategoryAxisLineColor(Color color) {
193: }
194:
195: /**
196: *
197: */
198: public JRExpression getValueAxisLabelExpression() {
199: return ((JRBar3DPlot) parent).getValueAxisLabelExpression();
200: }
201:
202: /**
203: *
204: */
205: public JRFont getValueAxisLabelFont() {
206: return valueAxisLabelFont;
207: }
208:
209: /**
210: *
211: */
212: public void setValueAxisLabelFont(JRFont font) {
213: }
214:
215: /**
216: *
217: */
218: public Color getValueAxisLabelColor() {
219: return JRStyleResolver.getValueAxisLabelColor(this , this );
220: }
221:
222: /**
223: *
224: */
225: public Color getOwnValueAxisLabelColor() {
226: return valueAxisLabelColor;
227: }
228:
229: /**
230: *
231: */
232: public void setValueAxisLabelColor(Color color) {
233: }
234:
235: /**
236: *
237: */
238: public JRFont getValueAxisTickLabelFont() {
239: return valueAxisTickLabelFont;
240: }
241:
242: /**
243: *
244: */
245: public void setValueAxisTickLabelFont(JRFont font) {
246: }
247:
248: /**
249: *
250: */
251: public Color getValueAxisTickLabelColor() {
252: return JRStyleResolver.getValueAxisTickLabelColor(this , this );
253: }
254:
255: /**
256: *
257: */
258: public Color getOwnValueAxisTickLabelColor() {
259: return valueAxisTickLabelColor;
260: }
261:
262: /**
263: *
264: */
265: public void setValueAxisTickLabelColor(Color color) {
266: }
267:
268: /**
269: *
270: */
271: public String getValueAxisTickLabelMask() {
272: return ((JRBar3DPlot) parent).getValueAxisTickLabelMask();
273: }
274:
275: /**
276: *
277: */
278: public void setValueAxisTickLabelMask(String mask) {
279: }
280:
281: /**
282: *
283: */
284: public Color getValueAxisLineColor() {
285: return JRStyleResolver.getValueAxisLineColor(this , this );
286: }
287:
288: /**
289: *
290: */
291: public Color getOwnValueAxisLineColor() {
292: return valueAxisLineColor;
293: }
294:
295: /**
296: *
297: */
298: public void setValueAxisLineColor(Color color) {
299: }
300:
301: /**
302: *
303: */
304: public double getXOffset() {
305: return ((JRBar3DPlot) parent).getXOffset();
306: }
307:
308: /**
309: *
310: */
311: public void setXOffset(double xOffset) {
312: }
313:
314: /**
315: *
316: */
317: public double getYOffset() {
318: return ((JRBar3DPlot) parent).getYOffset();
319: }
320:
321: /**
322: *
323: */
324: public void setYOffset(double yOffset) {
325: }
326:
327: /**
328: *
329: */
330: public boolean isShowLabels() {
331: return ((JRBar3DPlot) parent).isShowLabels();
332: }
333:
334: /**
335: *
336: */
337: public void setShowLabels(boolean isShowLabels) {
338: }
339: }
|