1
4
5
8
9 import org.aswing. *;
10 import org.aswing.geom. *;
11 import org.aswing.utils.*;
12 import org.aswing.graphices.Graphics;
13
14 class org.aswing.JPieChart extends Component
15 {
16 private var _dataSet : Array;
17 private var _colorSet : Array;
18 private var _angles : Array;
19 private var _wedges : Array;
20 private var _legends : Array;
21 private var _legend_txt : Array;
22 private var _title : String;
23 private var _showLegend : Boolean;
24 private var MAX : Number = 0;
25
26 public function JPieChart (title : String, dataSet : Array, colorSet : Array)
27 {
28 _root.DEBUG.text += "In Constructor";
29 super ();
30 setName ("JPieChart");
31 if (title != null)
32 {
33 _title = title;
34 }
35 else
36 {
37 _title = "JPieChart";
38 }
O )K^Ko'K : #: 0: ; < 4u
LJLJH m ֚1LoCKC &