01: /*
02: * Copyright 2005 Joe Walker
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package jsx3.chart;
17:
18: import org.directwebremoting.ScriptBuffer;
19: import org.directwebremoting.proxy.ScriptProxy;
20: import org.directwebremoting.proxy.io.Context;
21:
22: /**
23: * Base class for radial charts (pie chart is only example so far).
24: * @author Joe Walker [joe at getahead dot org]
25: * @author DRAPGEN - Dwr Reverse Ajax Proxy GENerator
26: */
27: public class RadialChart extends jsx3.chart.Chart {
28: /**
29: * All reverse ajax proxies need context to work from
30: * @param scriptProxy The place we are writing scripts to
31: * @param context The script that got us to where we are now
32: */
33: public RadialChart(Context context, String extension,
34: ScriptProxy scriptProxy) {
35: super (context, extension, scriptProxy);
36: }
37:
38: /**
39: * The instance initializer.
40: * @param name the GI name of the instance
41: * @param left left position (in pixels) of the chart relative to its parent container
42: * @param top top position (in pixels) of the chart relative to its parent container
43: * @param width width (in pixels) of the chart
44: * @param height height (in pixels) of the chart
45: */
46: public RadialChart(String name, int left, int top, int width,
47: int height) {
48: super ((Context) null, (String) null, (ScriptProxy) null);
49: ScriptBuffer script = new ScriptBuffer();
50: script.appendCall("new RadialChart", name, left, top, width,
51: height);
52: setInitScript(script);
53: }
54:
55: }
|