01: /*********************************************************************************
02: * The contents of this file are subject to the OpenI Public License Version 1.0
03: * ("License"); You may not use this file except in compliance with the
04: * License. You may obtain a copy of the License at
05: * http://www.openi.org/docs/LICENSE.txt
06: *
07: * Software distributed under the License is distributed on an "AS IS" basis,
08: * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
09: * the specific language governing rights and limitations under the License.
10: *
11: * The Original Code is: OpenI Open Source
12: *
13: * The Initial Developer of the Original Code is Loyalty Matrix, Inc.
14: * Portions created by Loyalty Matrix, Inc. are
15: * Copyright (C) 2005 Loyalty Matrix, Inc.; All Rights Reserved.
16: *
17: * Contributor(s): ______________________________________.
18: *
19: ********************************************************************************/package org.openi.chart;
20:
21: import com.tonbeller.jpivot.chart.ChartComponentTag;
22: import com.tonbeller.wcf.component.Component;
23: import com.tonbeller.wcf.controller.RequestContext;
24: import org.apache.log4j.Logger;
25:
26: /**
27: * @author plucas
28: *
29: * TODO To change the template for this generated type comment go to
30: * Window - Preferences - Java - Code Style - Code Templates
31: */
32: public class EnhancedChartTag extends ChartComponentTag {
33: private static Logger logger = Logger
34: .getLogger(EnhancedChartTag.class);
35: protected float foregroundAlpha;
36:
37: /* (non-Javadoc)
38: * @see com.tonbeller.wcf.component.ComponentTag#createComponent(com.tonbeller.wcf.controller.RequestContext)
39: */
40: public Component createComponent(RequestContext context)
41: throws Exception {
42: logger.debug("creating my own stuff!");
43:
44: return new EnhancedChartComponent(this .getId(), null, this
45: .getQuery(), context);
46: }
47:
48: /**
49: * @return Returns the foregroundAlpha.
50: */
51: public float getForegroundAlpha() {
52: return foregroundAlpha;
53: }
54:
55: /**
56: * @param foregroundAlpha The foregroundAlpha to set.
57: */
58: public void setForegroundAlpha(float foregroundAlpha) {
59: this.foregroundAlpha = foregroundAlpha;
60: }
61: }
|