KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openi > chart > EnhancedChartTag


1 /*********************************************************************************
2  * The contents of this file are subject to the OpenI Public License Version 1.0
3  * ("License"); You may not use this file except in compliance with the
4  * License. You may obtain a copy of the License at
5  * http://www.openi.org/docs/LICENSE.txt
6  *
7  * Software distributed under the License is distributed on an "AS IS" basis,
8  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
9  * 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  ********************************************************************************/

20 package org.openi.chart;
21
22 import com.tonbeller.jpivot.chart.ChartComponentTag;
23 import com.tonbeller.wcf.component.Component;
24 import com.tonbeller.wcf.controller.RequestContext;
25 import org.apache.log4j.Logger;
26
27
28 /**
29  * @author plucas
30  *
31  * TODO To change the template for this generated type comment go to
32  * Window - Preferences - Java - Code Style - Code Templates
33  */

34 public class EnhancedChartTag extends ChartComponentTag {
35     private static Logger logger = Logger.getLogger(EnhancedChartTag.class);
36     protected float foregroundAlpha;
37
38     /* (non-Javadoc)
39      * @see com.tonbeller.wcf.component.ComponentTag#createComponent(com.tonbeller.wcf.controller.RequestContext)
40      */

41     public Component createComponent(RequestContext context)
42         throws Exception JavaDoc {
43         logger.debug("creating my own stuff!");
44
45         return new EnhancedChartComponent(this.getId(), null, this.getQuery(),
46             context);
47     }
48
49     /**
50      * @return Returns the foregroundAlpha.
51      */

52     public float getForegroundAlpha() {
53         return foregroundAlpha;
54     }
55
56     /**
57      * @param foregroundAlpha The foregroundAlpha to set.
58      */

59     public void setForegroundAlpha(float foregroundAlpha) {
60         this.foregroundAlpha = foregroundAlpha;
61     }
62 }
63
Popular Tags