-
Notifications
You must be signed in to change notification settings - Fork 1
/
Element.java
1292 lines (1270 loc) · 29.1 KB
/
Element.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import java.awt.*;
import java.awt.event.*;
import java.awt.geom.*;
public class Element{
private int number;
private String abbr;
private String name;
private String electrons;
private double mass;
private double radius;
private Color color;
public static final int E_H = 1;
public static final int E_He = 2;
public static final int E_Li = 3;
public static final int E_Be = 4;
public static final int E_B = 5;
public static final int E_C = 6;
public static final int E_N = 7;
public static final int E_O = 8;
public static final int E_F = 9;
public static final int E_Ne = 10;
public static final int E_Na = 11;
public static final int E_Mg = 12;
public static final int E_Al = 13;
public static final int E_Si = 14;
public static final int E_P = 15;
public static final int E_S = 16;
public static final int E_Cl = 17;
public static final int E_Ar = 18;
public static final int E_K = 19;
public static final int E_Ca = 20;
public static final int E_Sc = 21;
public static final int E_Ti = 22;
public static final int E_V = 23;
public static final int E_Cr = 24;
public static final int E_Mn = 25;
public static final int E_Fe = 26;
public static final int E_Co = 27;
public static final int E_Ni = 28;
public static final int E_Cu = 29;
public static final int E_Zn = 30;
public static final int E_Ga = 31;
public static final int E_Ge = 32;
public static final int E_As = 33;
public static final int E_Se = 34;
public static final int E_Br = 35;
public static final int E_Kr = 36;
public static final int E_Rb = 37;
public static final int E_Sr = 38;
public static final int E_Y = 39;
public static final int E_Zr = 40;
public static final int E_Nb = 41;
public static final int E_Mo = 42;
public static final int E_Tc = 43;
public static final int E_Ru = 44;
public static final int E_Rh = 45;
public static final int E_Pd = 46;
public static final int E_Ag = 47;
public static final int E_Cd = 48;
public static final int E_In = 49;
public static final int E_Sn = 50;
public static final int E_Sb = 51;
public static final int E_Te = 52;
public static final int E_I = 53;
public static final int E_Xe = 54;
public static final int E_Cs = 55;
public static final int E_Ba = 56;
public static final int E_La = 57;
public static final int E_Ce = 58;
public static final int E_Pr = 59;
public static final int E_Nd = 60;
public static final int E_Pm = 61;
public static final int E_Sm = 62;
public static final int E_Eu = 63;
public static final int E_Gd = 64;
public static final int E_Tb = 65;
public static final int E_Dy = 66;
public static final int E_Ho = 67;
public static final int E_Er = 68;
public static final int E_Tm = 69;
public static final int E_Yb = 70;
public static final int E_Lu = 71;
public static final int E_Hf = 72;
public static final int E_Ta = 73;
public static final int E_W = 74;
public static final int E_Re = 75;
public static final int E_Os = 76;
public static final int E_Ir = 77;
public static final int E_Pt = 78;
public static final int E_Au = 79;
public static final int E_Hg = 80;
public static final int E_Tl = 81;
public static final int E_Pb = 82;
public static final int E_Bi = 83;
public static final int E_Po = 84;
public static final int E_At = 85;
public static final int E_Rn = 86;
public static final int E_Fr = 87;
public static final int E_Ra = 88;
public static final int E_Ac = 89;
public static final int E_Th = 90;
public static final int E_Pa = 91;
public static final int E_U = 92;
public static final int E_Np = 93;
public static final int E_Pu = 94;
public static final int E_Am = 95;
public static final int E_Cm = 96;
public static final int E_Bk = 97;
public static final int E_Cf = 98;
public static final int E_Es = 99;
public static final int E_Fm = 100;
public static final int E_Md = 101;
public static final int E_No = 102;
public static final int E_Lr = 103;
public static final int E_Rf = 104;
public static final int E_Db = 105;
public static final int E_Sg = 106;
public static final int E_Bh = 107;
public static final int E_Hs = 108;
public static final int E_Mt = 109;
public static final int E_Ds = 110;
public static final int E_Rg = 111;
public static final int E_Cn = 112;
public static final int E_Uut = 113;
public static final int E_Uuq = 114;
public static final int E_Uup = 115;
public static final int E_Uuh = 116;
public static final int E_Uus = 117;
public static final int E_Uuo = 118;
public static final int E_Uue = 119;
public Element(int index){
switch(index){
case E_H:
number = 1;
mass = 1.008;
radius = 1.2;
electrons = "1s1";
color = new Color(255,255,255,255);
name = "hydrogen";
abbr = "H";
break;
case E_He:
number = 2;
mass = 4.003;
radius = 1.4;
electrons = "1s2";
color = new Color(217,255,255,255);
name = "helium";
abbr = "He";
break;
case E_Li:
number = 3;
mass = 6.941;
radius = 1.8;
electrons = "1s2 2s1";
color = new Color(204,128,255,255);
name = "lithium";
abbr = "Li";
break;
case E_Be:
number = 4;
mass = 9.012;
radius = 1.5;
electrons = "1s2 2s2";
color = new Color(194,255,0,255);
name = "beryllium";
abbr = "Be";
break;
case E_B:
number = 5;
mass = 10.811;
radius = 1.9;
electrons = "[He] 2s2 2p1";
color = new Color(255,181,181,255);
name = "boron";
abbr = "B";
break;
case E_C:
number = 6;
mass = 12.011;
radius = 1.7;
electrons = "[He] 2s2 2p2";
color = new Color(144,144,144,255);
name = "carbon";
abbr = "C";
break;
case E_N:
number = 7;
mass = 14.007;
radius = 1.7;
electrons = "[He] 2s2 2p3";
color = new Color(48,80,248,255);
name = "nitrogen";
abbr = "N";
break;
case E_O:
number = 8;
mass = 15.999;
radius = 1.5;
electrons = "[He] 2s2 2p4";
color = new Color(255,13,13,255);
name = "oxygen";
abbr = "O";
break;
case E_F:
name = "fluorine";
abbr = "F";
number = 9;
mass = 18.998;
electrons = "[He] 2s2 2p5";
radius = 1.5;
color = new Color(144,224,80,255);
break;
case E_Ne:
name = "neon";
abbr = "Ne";
number = 10;
mass = 20.180;
electrons = "[He] 2s2 2p6";
radius = 1.5;
color = new Color(179,227,245,255);
break;
case E_Na:
name = "sodium";
abbr = "Na";
number = 11;
mass = 22.988;
electrons = "[Ne] 3s1";
radius = 2.3;
color = new Color(171,92,242,255);
break;
case E_Mg:
name = "magnesium";
abbr = "Mg";
number = 12;
mass = 24.305;
electrons = "[Ne] 3s2";
radius = 1.7;
color = new Color(138,255,0,255);
break;
case E_Al:
name = "aluminium";
abbr = "Al";
number = 13;
mass = 26.982;
electrons = "[Ne] 3s2 3p1";
radius = 1.8;
color = new Color(191,166,166,255);
break;
case E_Si:
name = "silicon";
abbr = "Si";
number = 14;
mass = 28.086;
electrons = "[Ne] 3s2 3p2";
radius = 2.1;
color = new Color(240,200,160,255);
break;
case E_P:
name = "phosphorus";
abbr = "P";
number = 15;
mass = 30.974;
electrons = "[Ne] 3s2 3p3";
radius = 1.8;
color = new Color(255,128,0,255);
break;
case E_S:
name = "sulfur";
abbr = "S";
number = 16;
mass = 32.065;
electrons = "[Ne] 3s2 3p4";
radius = 1.8;
color = new Color(255,255,48,255);
break;
case E_Cl:
name = "chlorine";
abbr = "Cl";
number = 17;
mass = 35.453;
electrons = "[Ne] 3s2 3p5";
radius = 1.8;
color = new Color(31,240,31,255);
break;
case E_Ar:
name = "argon";
abbr = "Ar";
number = 18;
mass = 39.948;
electrons = "[Ne] 3s2 3p6";
radius = 1.9;
color = new Color(128,209,227,255);
break;
case E_K:
name = "potassium";
abbr = "K";
number = 19;
mass = 39.098;
electrons = "[Ar] 4s1";
radius = 2.8;
color = new Color(143,64,212,255);
break;
case E_Ca:
name = "calsium";
abbr = "Ca";
number = 20;
mass = 40.078;
electrons = "[Ar] 4s2";
radius = 2.3;
color = new Color(61,255,0,255);
break;
case E_Sc:
name = "scandium";
abbr = "Sc";
number = 21;
mass = 44.956;
electrons = "[Ar] 3d1 4s2";
radius = 2.1;
color = new Color(230,230,230,255);
break;
case E_Ti:
name = "titanium";
abbr = "Ti";
number = 22;
mass = 47.867;
electrons = "[Ar] 3d2 4s2";
radius = 2.0;
color = new Color(191,194,199,255);
break;
case E_V:
name = "vanadium";
abbr = "V";
number = 23;
mass = 50.942;
electrons = "[Ar] 3d3 4s2";
radius = 1.9;
color = new Color(166,166,171,255);
break;
case E_Cr:
name = "chromium";
abbr = "Cr";
number = 24;
mass = 51.996;
electrons = "[Ar] 3d4 4s2";
radius = 1.8;
color = new Color(138,153,199,255);
break;
case E_Mn:
name = "manganese";
abbr = "Mn";
number = 25;
mass = 54.938;
electrons = "[Ar] 3d5 4s2";
radius = 1.7;
color = new Color(156,122,199,255);
break;
case E_Fe:
name = "iron";
abbr = "Fe";
number = 26;
mass = 55.845;
electrons = "[Ar] 3d6 4s2";
radius = 1.7;
color = new Color(224,102,51,255);
break;
case E_Co:
name = "cobalt";
abbr = "Co";
number = 27;
mass = 58.933;
electrons = "[Ar] 3d7 4s2";
radius = 1.6;
color = new Color(240,144,160,255);
break;
case E_Ni:
name = "nickel";
abbr = "Ni";
number = 28;
mass = 58.693;
electrons = "[Ar] 3d9 4s1";
radius = 1.6;
color = new Color(80,208,80,255);
break;
case E_Cu:
name = "copper";
abbr = "Cu";
number = 29;
mass = 63.546;
electrons = "[Ar] 3d10 4s1";
radius = 1.4;
color = new Color(200,128,51,255);
break;
case E_Zn:
name = "zinc";
abbr = "Zn";
number = 30;
mass = 65.38;
electrons = "[Ar] 3d10 4s2";
radius = 1.4;
color = new Color(125,128,176,255);
break;
case E_Ga:
name = "gallium";
abbr = "Ga";
number = 31;
mass = 69.723;
electrons = "[Ar] 3d10 4s2 4p1";
radius = 1.9;
color = new Color(194,143,143,255);
break;
case E_Ge:
name = "germanium";
abbr = "Ge";
number = 32;
mass = 72.64;
electrons = "[Ar] 3d10 4s2 4p2";
radius = 2.1;
color = new Color(102,143,143,255);
break;
case E_As:
name = "arsenic";
abbr = "As";
number = 33;
mass = 74.921;
electrons = "[Ar] 3d10 4s2 4p3";
radius = 1.9;
color = new Color(189,128,227,255);
break;
case E_Se:
name = "selenium";
abbr = "Se";
number = 34;
mass = 78.96;
electrons = "[Ar] 3d10 4s2 4p4";
radius = 1.9;
color = new Color(255,161,0,255);
break;
case E_Br:
name = "bromine";
abbr = "Br";
number = 35;
mass = 79.904;
electrons = "[Ar] 3d10 4s2 4p5";
radius = 1.9;
color = new Color(166,41,41,255);
break;
case E_Kr:
name = "krypton";
abbr = "Kr";
number = 36;
mass = 83.798;
electrons = "[Ar] 3d10 4s2 4p6";
radius = 2.0;
color = new Color(92,184,209,255);
break;
case E_Rb:
name = "rubidium";
abbr = "Rb";
number = 37;
mass = 85.467;
electrons = "[Kr] 5s1";
radius = 3.0;
color = new Color(112,46,176,255);
break;
case E_Sr:
name = "strontium";
abbr = "Sr";
number = 38;
mass = 87.62;
electrons = "[Kr] 5s2";
radius = 2.5;
color = new Color(0,255,0,255);
break;
case E_Y:
name = "yttrium";
abbr = "Y";
number = 39;
mass = 88.909;
electrons = "[Kr] 4d1 5s2";
radius = 1.9;
color = new Color(148,255,255,255);
break;
case E_Zr:
name = "zirconium";
abbr = "Zr";
number = 40;
mass = 91.224;
electrons = "[Kr] 4d2 5s2";
radius = 1.9;
color = new Color(148,224,224,255);
break;
case E_Nb:
name = "niobium";
abbr = "Nb";
number = 41;
mass = 92.906;
electrons = "[Kr] 4d4 5s1";
radius = 1.8;
color = new Color(115,194,201,255);
break;
case E_Mo:
name = "molybdenum";
abbr = "Mo";
number = 42;
mass = 95.94;
electrons = "[Kr] 4d5 5s1";
radius = 1.7;
color = new Color(84,181,181,255);
break;
case E_Tc:
name = "technetium";
abbr = "Tc";
number = 43;
mass = 98;
electrons = "[Kr] 4d5 5s2";
radius = 1.6;
color = new Color(59,158,158,255);
break;
case E_Ru:
name = "ruthenium";
abbr = "Ru";
number = 44;
mass = 101.07;
electrons = "[Kr] 4d7 5s1";
radius = 1.6;
color = new Color(36,143,143,255);
break;
case E_Rh:
name = "rhodium";
abbr = "Rh";
number = 45;
mass = 102.906;
electrons = "[Kr] 4d8 5s1";
radius = 1.6;
color = new Color(10,125,140,255);
break;
case E_Pd:
name = "palladium";
abbr = "Pd";
number = 46;
mass = 106.42;
electrons = "[Kr] 4d10";
radius = 1.6;
color = new Color(0,105,133,255);
break;
case E_Ag:
name = "silver";
abbr = "Ag";
number = 47;
mass = 107.868;
electrons = "[Kr] 4d10 5s1";
radius = 1.7;
color = new Color(192,192,192,255);
break;
case E_Cd:
name = "cadmium";
abbr = "Cd";
number = 48;
mass = 112.411;
electrons = "[Kr] 4d10 5s2";
radius = 1.6;
color = new Color(255,217,143,255);
break;
case E_In:
name = "indium";
abbr = "In";
number = 49;
mass = 114.818;
electrons = "[Kr] 4d10 5s2 5p1";
radius = 1.9;
color = new Color(166,117,115,255);
break;
case E_Sn:
name = "tin";
abbr = "In";
number = 50;
mass = 118.710;
electrons = "[Kr] 4d10 5s2 5p2";
radius = 2.2;
color = new Color(102,128,128,255);
break;
case E_Sb:
name = "antimony";
abbr = "Sb";
number = 51;
mass = 121.760;
electrons = "[Kr] 4d10 5s2 5p3";
radius = 2.0;
color = new Color(158,99,181,255);
break;
case E_Te:
name = "tellurium";
abbr = "Te";
number = 52;
mass = 127.60;
electrons = "[Kr] 4d10 5s2 5p4";
radius = 2.0;
color = new Color(212,122,0,255);
break;
case E_I:
name = "iodine";
abbr = "I";
number = 53;
mass = 127.60;
electrons = "[Kr] 4d10 5s2 5p5";
radius = 2.0;
color = new Color(148,0,148,255);
break;
case E_Xe:
name = "xenon";
abbr = "Xe";
number = 54;
mass = 131.293;
electrons = "[Kr] 4d10 5s2 5p6";
radius = 2.2;
color = new Color(66,158,176,255);
break;
case E_Cs:
name = "cesium";
abbr = "Cs";
number = 55;
mass = 132.905;
electrons = "[Xe] 6s1";
radius = 3.4;
color = new Color(87,23,143,255);
break;
case E_Ba:
name = "barium";
abbr = "Ba";
number = 56;
mass = 137.33;
electrons = "[Xe] 6s2";
radius = 2.7;
color = new Color(0,201,0,255);
break;
case E_La:
name = "lanthanum";
abbr = "La";
number = 57;
mass = 138.905;
electrons = "[Xe] 5d1 6s2";
radius = 2.6;
color = new Color(112,212,255,255);
break;
case E_Ce:
name = "cerium";
abbr = "Ce";
number = 58;
mass = 140.116;
electrons = "[Xe] 4f2 6s2";
radius = 2.6;
color = new Color(255,255,199,255);
break;
case E_Pr:
name = "praseodymium";
abbr = "Pr";
number = 59;
mass = 140.908;
electrons = "[Xe] 4f3 6s2";
radius = 2.6;
color = new Color(217,255,199,255);
break;
case E_Nd:
name = "neodymium";
abbr = "Ne";
number = 60;
mass = 144.242;
electrons = "[Xe] 4f4 6s2";
radius = 2.5;
color = new Color(199,255,199,255);
break;
case E_Pm:
name = "promethium";
abbr = "Pm";
number = 61;
mass = 145;
electrons = "[Xe] 4f5 6s2";
radius = 2.4;
color = new Color(163,255,199,255);
break;
case E_Sm:
name = "samarium";
abbr = "Sm";
number = 62;
mass = 150.36;
electrons = "[Xe] 4f6 6s2";
radius = 2.4;
color = new Color(143,255,199,255);
break;
case E_Eu:
name = "europium";
abbr = "Eu";
number = 63;
mass = 151.964;
electrons = "[Xe] 4f7 6s2";
radius = 2.4;
color = new Color(97,255,199,255);
break;
case E_Gd:
name = "gadolinium";
abbr = "Gd";
number = 64;
mass = 157.25;
electrons = "[Xe] 4f7 5d1 6s2";
radius = 2.4;
color = new Color(69,255,199,255);
break;
case E_Tb:
name = "terbium";
abbr = "Tb";
number = 65;
mass = 158.925;
electrons = "[Xe] 4f9 6s2";
radius = 2.3;
color = new Color(48,255,199,255);
break;
case E_Dy:
name = "dysporsium";
abbr = "Dy";
number = 66;
mass = 162.500;
electrons = "[Xe] 4f10 6s2";
radius = 2.3;
color = new Color(31,255,199,255);
break;
case E_Ho:
name = "holmium";
abbr = "Ho";
number = 67;
mass = 164.930;
electrons = "[Xe] 4f11 6s2";
radius = 2.3;
color = new Color(0,255,156,255);
break;
case E_Er:
name = "erbium";
abbr = "Er";
number = 68;
mass = 167.259;
electrons = "[Xe] 4f12 6s2";
radius = 2.2;
color = new Color(0,230,117,255);
break;
case E_Tm:
name = "thulium";
abbr = "Tm";
number = 69;
mass = 168.934;
electrons = "[Xe] 4f13 6s2";
radius = 2.2;
color = new Color(0,212,82,255);
break;
case E_Yb:
name = "ytterbium";
abbr = "Yb";
number = 70;
mass = 173.04;
electrons = "[Xe] 4f14 6s2";
radius = 2.1;
color = new Color(0,191,56,255);
break;
case E_Lu:
name = "lutetium";
abbr = "Lu";
number = 71;
mass = 174.967;
electrons = "[Xe] 4f14 5d1 6s2";
radius = 2.1;
color = new Color(0,171,36,255);
break;
case E_Hf:
name = "hafnium";
abbr = "Hf";
number = 72;
mass = 178.49;
electrons = "[Xe] 4f14 5d2 6s2";
radius = 2.0;
color = new Color(77,194,255,255);
break;
case E_Ta:
name = "tantalum";
abbr = "Ta";
number = 73;
mass = 180.948;
electrons = "[Xe] 4f14 5d3 6s2";
radius = 1.9;
color = new Color(77,166,255,255);
break;
case E_W:
name = "tungsten";
abbr = "Ta";
number = 74;
mass = 183.84;
electrons = "[Xe] 4f14 5d4 6s2";
radius = 1.9;
color = new Color(33,148,214,255);
break;
case E_Re:
name = "rhenium";
abbr = "Re";
number = 75;
mass = 186.207;
electrons = "[Xe] 4f14 5d5 6s2";
radius = 1.8;
color = new Color(38,125,171,255);
break;
case E_Os:
name = "osmium";
abbr = "Os";
number = 76;
mass = 190.23;
electrons = "[Xe] 4f14 5d6 6s2";
radius = 1.7;
color = new Color(38,102,150,255);
break;
case E_Ir:
name = "iridium";
abbr = "Ir";
number = 77;
mass = 192.217;
electrons = "[Xe] 4f14 5d7 6s2";
radius = 1.7;
color = new Color(23,84,135,255);
break;
case E_Pt:
name = "platinum";
abbr = "Pt";
number = 78;
mass = 195.084;
electrons = "[Xe] 4f14 5d9 6s1";
radius = 1.7;
color = new Color(208,208,224,255);
break;
case E_Au:
name = "gold";
abbr = "Au";
number = 79;
mass = 196.967;
electrons = "[Xe] 4f14 5d10 6s1";
radius = 1.7;
color = new Color(255,209,35,255);
break;
case E_Hg:
name = "mercury";
abbr = "Hg";
number = 80;
mass = 200.59;
electrons = "[Xe] 4f14 5d10 6s2";
radius = 1.6;
color = new Color(184,184,208,255);
break;
case E_Tl:
name = "thallium";
abbr = "Tl";
number = 81;
mass = 204.383;
electrons = "[Xe] 4f14 5d10 6s2 6p1";
radius = 2.0;
color = new Color(166,84,77,255);
break;
case E_Pb:
name = "lead";
abbr = "Pb";
number = 82;
mass = 207.2;
electrons = "[Xe] 4f14 5d10 6s2 6p2";
radius = 2.0;
color = new Color(87,89,97,255);
break;
case E_Bi:
name = "bismuth";
abbr = "Bi";
number = 83;
mass = 208.980;
electrons = "[Xe] 4f14 5d10 6s2 6p3";
radius = 2.1;
color = new Color(158,79,181,255);
break;
case E_Po:
name = "polonium";
abbr = "Po";
number = 84;
mass = 209;
electrons = "[Xe] 4f14 5d10 6s2 6p4";
radius = 2.0;
color = new Color(171,92,0,255);
break;
case E_At:
name = "astatine";
abbr = "At";
number = 85;
mass = 210;
electrons = "[Xe] 4f14 5d10 6s2 6p5";
radius = 2.0;
color = new Color(117,79,69,255);
break;
case E_Rn:
name = "radon";
abbr = "Rn";
number = 86;
mass = 222;
electrons = "[Xe] 4f14 5d10 6s2 6p6";
radius = 2.2;
color = new Color(66,130,150,255);
break;
case E_Fr:
name = "francium";
abbr = "Fr";
number = 87;
mass = 223;
electrons = "[Rn] 7s1";
radius = 3.5;
color = new Color(66,0,102,255);
break;
case E_Ra:
name = "radium";
abbr = "Ra";
number = 88;
mass = 226;
electrons = "[Rn] 7s2";
radius = 2.8;
color = new Color(0,125,0,255);
break;
case E_Ac:
name = "actinium";
abbr = "Ac";
number = 89;
mass = 227;
electrons = "[Rn] 6d1 7s2";
radius = 2.7;
color = new Color(112,171,250,255);
break;
case E_Th:
name = "thorium";
abbr = "Th";
number = 90;
mass = 232.038;
electrons = "[Rn] 6d2 7s2";
radius = 2.6;
color = new Color(0,186,255,255);
break;
case E_Pa:
name = "protactinium";
abbr = "Pa";
number = 91;
mass = 231.036;
electrons = "[Rn] 5f2 6d1 7s2";
radius = 2.4;
color = new Color(0,161,255,255);
break;
case E_U:
name = "uranium";
abbr = "U";
number = 92;
mass = 238.029;
electrons = "[Rn] 5f3 6d1 7s2";
radius = 1.9;
color = new Color(0,143,255,255);
break;
case E_Np:
name = "neptunium";
abbr = "Np";
number = 93;
mass = 237;
electrons = "[Rn] 5f4 6d1 7s2";
radius = 1.9;
color = new Color(0,128,255,255);
break;
case E_Pu:
name = "plutonium";
abbr = "Pu";
number = 94;
mass = 244;
electrons = "[Rn] 5f6 7s2";
radius = 1.9;
color = new Color(0,107,255,255);
break;
case E_Am:
name = "americium";
abbr = "Am";
number = 95;
mass = 243;
electrons = "[Rn] 5f7 7s2";
radius = 1.9;
color = new Color(84,92,242,255);
break;
case E_Cm:
name = "curium";
abbr = "Cm";
number = 96;
mass = 247;
electrons = "[Rn] 5f7 6d1 7s2";
radius = 1.9;
color = new Color(120,92,227,255);