="132"> 132 private function __onPress (index:Number) : Void 133 { 134 var e:Event = createPieChartEvent(index); 135 dispatchEvent(ON_PRESS, e); 136 } 137 138 /** 139 * Creates a pie chart event object 140 */ 141 private function createPieChartEvent(index:Number):Event{ 142 var e:Event = createEventObj(); 143 e.data = _dataSet[index]; 144 return e; 145 } 146 147 /** 148 * Generates a randomn color 149 */ 150 private function getRandomnColor (Void) : Number 151 { 152 var col : String = "0x"; 153 for (var i : Number = 0; i < 6; i ++) 154 { 155 var digit : Number = Math.floor (Math.random () * 15); 156 if (digit == 10) 157 { 158 col += "A"; 159 } 160 else if (digit == 11) 161 { 162 col += "B"; 163 } 164 else if (digit == 12) 165 { 166 col += "C"; 167 } 168 else if (digit == 13) 169 { 170 col += "D"; 171 } 172 else if (digit == 14) 173 { 174 col += "E"; 175 } 176 else if (digit == 15) 177 { 17 ! " # % & ( ) * , . / 0 1 3 : ; < = > ? @ A B ! " # $ % & ' ( * + - / 1 2 3 4 5 6 7 8 9 : ; < = > B C D F G H I K L N O P Q R U V X Z [ \ ] ^ _ ` a c d e f g h i j m o q r s t u v w I X Y Z \ _ r s t u v w ! " # $ % & ' ( * , - . / 0 2 6 > C D ` b c d e f g h i j k l m n s t v w x y ~ ~# # # # # # # # & & & & & & & & & & & & & & & & & -& .& /& & & & & & & & & & & & & & ' ' ' ' ' ' ' ' *' +' ,' .' /' 1' :' ;' >' ?' Q' e' v' w' x' y' {' |' ' ' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , !, ", #, $, %, &, ', (, ), *, +, ,, -, ., /, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, :, ;, <, =, >, ?, @, A, B, C, D, E, F, G, H, I, J, K, L, M, p, ~, , , , , , , , , , p- q- r- s- t- u- v- w- x- y- z- {- |- }- ~- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - org.aswing.LookAndFeel - AsWing alpha3Class org.aswing.LookAndFeelorg.aswing.LookAndFeelDescription Reserved for look and feel implementation. Method Index
Reserved for look and feel implementation.