1  /*
     2   Copyright aswing.org, see the LICENCE.txt.
     3  */
     4  
     5   /**
     6  * @author firdosh
     7  */
     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
LJLJHm֚1LoCKC&&0L=JcD&W!5BHZKEiDHH(E"&v3L=JFC&!qK
vKoCKC&&FF=JEF&qK,,Lq1Lk 0LxVRRRRRbScSdSlSpSqSrStS&TFF=JEF&qK&Vi.Ii.Ii.I&H"G"&}FF=JEF&qK&e<2L=J}oC&atK&oFF=JEF&qK,I0I|mHZ!"N&Lj 0L80L(j0l0P9Tyt
KKJF&rFF=JEF&tK&FF=JEF&qK&FF=JEF&tK&}FF=JEF&	tK]nLJbLJJIpZ&FF=JEF&
tK&
0L=JC&XQ$&&FF=JEF&+`^$&=FF=JEF&,`_$&]FF=JEF&tK&pFF=JEF&-``$ujLJLJH8!"#$%&'*&FF=JEF&.`a$D@)4L_4L_4L\8&'(>?@AE
{+q1L4L2Lber">Number, y:Number):Void

Draw the icon at the specified location.

Specified By

paintIcon() in org.aswing.Icon

uninstallIcon

public function uninstallIcon(com:Component):Void

Description copied from Icon

Remove things in the icon object related to the component. For example remove the MCs created at the first paint time.

There is not installIcon method, so you must install icon related things at the first time of paintIcon, for example attach a MC if needed.

Specified By

uninstallIcon() in org.aswing.Icon

toString

public function toString():String