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: * A column chart.
24:
25: Series: ColumnSeries only.
26: Axes: Y axis must be value axis, X axis can be value or category axis
27:
28: The 'type' my be 'clustered', 'stacked', or 'stacked100', which correspond to the basic Excel-like
29: variations of a column chart.
30: * @author Joe Walker [joe at getahead dot org]
31: * @author DRAPGEN - Dwr Reverse Ajax Proxy GENerator
32: */
33: public class ColumnChart extends jsx3.chart.BCChart {
34: /**
35: * All reverse ajax proxies need context to work from
36: * @param scriptProxy The place we are writing scripts to
37: * @param context The script that got us to where we are now
38: */
39: public ColumnChart(Context context, String extension,
40: ScriptProxy scriptProxy) {
41: super (context, extension, scriptProxy);
42: }
43:
44: /**
45: * The instance initializer.
46: * @param name the GI name of the instance
47: * @param left left position (in pixels) of the chart relative to its parent container
48: * @param top top position (in pixels) of the chart relative to its parent container
49: * @param width width (in pixels) of the chart
50: * @param height height (in pixels) of the chart
51: */
52: public ColumnChart(String name, int left, int top, int width,
53: int height) {
54: super ((Context) null, (String) null, (ScriptProxy) null);
55: ScriptBuffer script = new ScriptBuffer();
56: script.appendCall("new ColumnChart", name, left, top, width,
57: height);
58: setInitScript(script);
59: }
60:
61: }
|