/src/main/java/com/googlecode/charts4j/Country.java

http://charts4j.googlecode.com/ · Java · 1093 lines · 513 code · 10 blank · 570 comment · 0 complexity · d76382215d1d7df5d9aae3a6d7caa414 MD5 · raw file

  1. /**
  2. *
  3. * The MIT License
  4. *
  5. * Copyright (c) 2011 the original author or authors.
  6. *
  7. * Permission is hereby granted, free of charge, to any person obtaining a copy
  8. * of this software and associated documentation files (the "Software"), to deal
  9. * in the Software without restriction, including without limitation the rights
  10. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  11. * copies of the Software, and to permit persons to whom the Software is
  12. * furnished to do so, subject to the following conditions:
  13. * The above copyright notice and this permission notice shall be included in
  14. * all copies or substantial portions of the Software.
  15. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  18. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  19. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  20. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  21. * THE SOFTWARE.
  22. */
  23. package com.googlecode.charts4j;
  24. /**
  25. * A country on planet earth. Herein you can find all the country codes that are
  26. * detailed in <a
  27. * href="http://www.iso.org/iso/country_codes/iso_3166_code_lists/english_country_names_and_code_elements.htm">ISO
  28. * 3166</a>.
  29. *
  30. * @author Julien Chastang (julien.c.chastang at gmail dot com)
  31. *
  32. * @see PoliticalBoundary
  33. * @see USAState
  34. * @see MapChart
  35. * @see GeographicalArea
  36. */
  37. public class Country extends AbstractPoliticalBoundary {
  38. /**
  39. * Country names.
  40. */
  41. public enum Name {
  42. /** Afghanistan. **/
  43. AFGHANISTAN("AF"),
  44. /** Aland_islands. **/
  45. ALAND_ISLANDS("AX"),
  46. /** Albania. **/
  47. ALBANIA("AL"),
  48. /** Algeria. **/
  49. ALGERIA("DZ"),
  50. /** American_samoa. **/
  51. AMERICAN_SAMOA("AS"),
  52. /** Andorra. **/
  53. ANDORRA("AD"),
  54. /** Angola. **/
  55. ANGOLA("AO"),
  56. /** Anguilla. **/
  57. ANGUILLA("AI"),
  58. /** Antarctica. **/
  59. ANTARCTICA("AQ"),
  60. /** Antigua_and_barbuda. **/
  61. ANTIGUA_AND_BARBUDA("AG"),
  62. /** Argentina. **/
  63. ARGENTINA("AR"),
  64. /** Armenia. **/
  65. ARMENIA("AM"),
  66. /** Aruba. **/
  67. ARUBA("AW"),
  68. /** Australia. **/
  69. AUSTRALIA("AU"),
  70. /** Austria. **/
  71. AUSTRIA("AT"),
  72. /** Azerbaijan. **/
  73. AZERBAIJAN("AZ"),
  74. /** Bahamas. **/
  75. BAHAMAS("BS"),
  76. /** Bahrain. **/
  77. BAHRAIN("BH"),
  78. /** Bangladesh. **/
  79. BANGLADESH("BD"),
  80. /** Barbados. **/
  81. BARBADOS("BB"),
  82. /** Belarus. **/
  83. BELARUS("BY"),
  84. /** Belgium. **/
  85. BELGIUM("BE"),
  86. /** Belize. **/
  87. BELIZE("BZ"),
  88. /** Benin. **/
  89. BENIN("BJ"),
  90. /** Bermuda. **/
  91. BERMUDA("BM"),
  92. /** Bhutan. **/
  93. BHUTAN("BT"),
  94. /** Bolivia. **/
  95. BOLIVIA("BO"),
  96. /** Bosnia_and_herzegovina. **/
  97. BOSNIA_AND_HERZEGOVINA("BA"),
  98. /** Botswana. **/
  99. BOTSWANA("BW"),
  100. /** Bouvet_island. **/
  101. BOUVET_ISLAND("BV"),
  102. /** Brazil. **/
  103. BRAZIL("BR"),
  104. /** British_indian_ocean_territory. **/
  105. BRITISH_INDIAN_OCEAN_TERRITORY("IO"),
  106. /** Brunei_darussalam. **/
  107. BRUNEI_DARUSSALAM("BN"),
  108. /** Bulgaria. **/
  109. BULGARIA("BG"),
  110. /** Burkina_faso. **/
  111. BURKINA_FASO("BF"),
  112. /** Burundi. **/
  113. BURUNDI("BI"),
  114. /** Cambodia. **/
  115. CAMBODIA("KH"),
  116. /** Cameroon. **/
  117. CAMEROON("CM"),
  118. /** Canada. **/
  119. CANADA("CA"),
  120. /** Cape_verde. **/
  121. CAPE_VERDE("CV"),
  122. /** Cayman_islands. **/
  123. CAYMAN_ISLANDS("KY"),
  124. /** Central_african_republic. **/
  125. CENTRAL_AFRICAN_REPUBLIC("CF"),
  126. /** Chad. **/
  127. CHAD("TD"),
  128. /** Chile. **/
  129. CHILE("CL"),
  130. /** China. **/
  131. CHINA("CN"),
  132. /** Christmas_island. **/
  133. CHRISTMAS_ISLAND("CX"),
  134. /** Cocos_keeling_islands. **/
  135. COCOS_KEELING_ISLANDS("CC"),
  136. /** Colombia. **/
  137. COLOMBIA("CO"),
  138. /** Comoros. **/
  139. COMOROS("KM"),
  140. /** Congo. **/
  141. CONGO("CG"),
  142. /** Congo_the_democratic_republic_of_the. **/
  143. CONGO_THE_DEMOCRATIC_REPUBLIC_OF_THE("CD"),
  144. /** Cook_islands. **/
  145. COOK_ISLANDS("CK"),
  146. /** Costa_rica. **/
  147. COSTA_RICA("CR"),
  148. /** Cote_d_ivoire. **/
  149. COTE_D_IVOIRE("CI"),
  150. /** Croatia. **/
  151. CROATIA("HR"),
  152. /** Cuba. **/
  153. CUBA("CU"),
  154. /** Cyprus. **/
  155. CYPRUS("CY"),
  156. /** Czech_republic. **/
  157. CZECH_REPUBLIC("CZ"),
  158. /** Denmark. **/
  159. DENMARK("DK"),
  160. /** Djibouti. **/
  161. DJIBOUTI("DJ"),
  162. /** Dominica. **/
  163. DOMINICA("DM"),
  164. /** Dominican_republic. **/
  165. DOMINICAN_REPUBLIC("DO"),
  166. /** Ecuador. **/
  167. ECUADOR("EC"),
  168. /** Egypt. **/
  169. EGYPT("EG"),
  170. /** El_salvador. **/
  171. EL_SALVADOR("SV"),
  172. /** Equatorial_guinea. **/
  173. EQUATORIAL_GUINEA("GQ"),
  174. /** Eritrea. **/
  175. ERITREA("ER"),
  176. /** Estonia. **/
  177. ESTONIA("EE"),
  178. /** Ethiopia. **/
  179. ETHIOPIA("ET"),
  180. /** Falkland_islands_malvinas_. **/
  181. FALKLAND_ISLANDS_MALVINAS_("FK"),
  182. /** Faroe_islands. **/
  183. FAROE_ISLANDS("FO"),
  184. /** Fiji. **/
  185. FIJI("FJ"),
  186. /** Finland. **/
  187. FINLAND("FI"),
  188. /** France. **/
  189. FRANCE("FR"),
  190. /** French_guiana. **/
  191. FRENCH_GUIANA("GF"),
  192. /** French_polynesia. **/
  193. FRENCH_POLYNESIA("PF"),
  194. /** French_southern_territories. **/
  195. FRENCH_SOUTHERN_TERRITORIES("TF"),
  196. /** Gabon. **/
  197. GABON("GA"),
  198. /** Gambia. **/
  199. GAMBIA("GM"),
  200. /** Georgia. **/
  201. GEORGIA("GE"),
  202. /** Germany. **/
  203. GERMANY("DE"),
  204. /** Ghana. **/
  205. GHANA("GH"),
  206. /** Gibraltar. **/
  207. GIBRALTAR("GI"),
  208. /** Greece. **/
  209. GREECE("GR"),
  210. /** Greenland. **/
  211. GREENLAND("GL"),
  212. /** Grenada. **/
  213. GRENADA("GD"),
  214. /** Guadeloupe. **/
  215. GUADELOUPE("GP"),
  216. /** Guam. **/
  217. GUAM("GU"),
  218. /** Guatemala. **/
  219. GUATEMALA("GT"),
  220. /** Guernsey. **/
  221. GUERNSEY("GG"),
  222. /** Guinea. **/
  223. GUINEA("GN"),
  224. /** Guinea_bissau. **/
  225. GUINEA_BISSAU("GW"),
  226. /** Guyana. **/
  227. GUYANA("GY"),
  228. /** Haiti. **/
  229. HAITI("HT"),
  230. /** Heard_island_and_mcdonald_islands. **/
  231. HEARD_ISLAND_AND_MCDONALD_ISLANDS("HM"),
  232. /** Holy_see_vatican_city_state_. **/
  233. HOLY_SEE_VATICAN_CITY_STATE_("VA"),
  234. /** Honduras. **/
  235. HONDURAS("HN"),
  236. /** Hong_kong. **/
  237. HONG_KONG("HK"),
  238. /** Hungary. **/
  239. HUNGARY("HU"),
  240. /** Iceland. **/
  241. ICELAND("IS"),
  242. /** India. **/
  243. INDIA("IN"),
  244. /** Indonesia. **/
  245. INDONESIA("ID"),
  246. /** Iran_islamic_republic_of. **/
  247. IRAN_ISLAMIC_REPUBLIC_OF("IR"),
  248. /** Iraq. **/
  249. IRAQ("IQ"),
  250. /** Ireland. **/
  251. IRELAND("IE"),
  252. /** Isle_of_man. **/
  253. ISLE_OF_MAN("IM"),
  254. /** Israel. **/
  255. ISRAEL("IL"),
  256. /** Italy. **/
  257. ITALY("IT"),
  258. /** Jamaica. **/
  259. JAMAICA("JM"),
  260. /** Japan. **/
  261. JAPAN("JP"),
  262. /** Jersey. **/
  263. JERSEY("JE"),
  264. /** Jordan. **/
  265. JORDAN("JO"),
  266. /** Kazakhstan. **/
  267. KAZAKHSTAN("KZ"),
  268. /** Kenya. **/
  269. KENYA("KE"),
  270. /** Kiribati. **/
  271. KIRIBATI("KI"),
  272. /** Korea_democratic_peoples_republic_of. **/
  273. KOREA_DEMOCRATIC_PEOPLES_REPUBLIC_OF("KP"),
  274. /** Korea_republic_of. **/
  275. KOREA_REPUBLIC_OF("KR"),
  276. /** Kuwait. **/
  277. KUWAIT("KW"),
  278. /** Kyrgyzstan. **/
  279. KYRGYZSTAN("KG"),
  280. /** Lao_peoples_democratic_republic. **/
  281. LAO_PEOPLES_DEMOCRATIC_REPUBLIC("LA"),
  282. /** Latvia. **/
  283. LATVIA("LV"),
  284. /** Lebanon. **/
  285. LEBANON("LB"),
  286. /** Lesotho. **/
  287. LESOTHO("LS"),
  288. /** Liberia. **/
  289. LIBERIA("LR"),
  290. /** Libyan_arab_jamahiriya. **/
  291. LIBYAN_ARAB_JAMAHIRIYA("LY"),
  292. /** Liechtenstein. **/
  293. LIECHTENSTEIN("LI"),
  294. /** Lithuania. **/
  295. LITHUANIA("LT"),
  296. /** Luxembourg. **/
  297. LUXEMBOURG("LU"),
  298. /** Macao. **/
  299. MACAO("MO"),
  300. /** Macedonia_the_former_yugoslav_republic_of. **/
  301. MACEDONIA_THE_FORMER_YUGOSLAV_REPUBLIC_OF("MK"),
  302. /** Madagascar. **/
  303. MADAGASCAR("MG"),
  304. /** Malawi. **/
  305. MALAWI("MW"),
  306. /** Malaysia. **/
  307. MALAYSIA("MY"),
  308. /** Maldives. **/
  309. MALDIVES("MV"),
  310. /** Mali. **/
  311. MALI("ML"),
  312. /** Malta. **/
  313. MALTA("MT"),
  314. /** Marshall_islands. **/
  315. MARSHALL_ISLANDS("MH"),
  316. /** Martinique. **/
  317. MARTINIQUE("MQ"),
  318. /** Mauritania. **/
  319. MAURITANIA("MR"),
  320. /** Mauritius. **/
  321. MAURITIUS("MU"),
  322. /** Mayotte. **/
  323. MAYOTTE("YT"),
  324. /** Mexico. **/
  325. MEXICO("MX"),
  326. /** Micronesia_federated_states_of. **/
  327. MICRONESIA_FEDERATED_STATES_OF("FM"),
  328. /** Moldova_republic_of. **/
  329. MOLDOVA_REPUBLIC_OF("MD"),
  330. /** Monaco. **/
  331. MONACO("MC"),
  332. /** Mongolia. **/
  333. MONGOLIA("MN"),
  334. /** Montenegro. **/
  335. MONTENEGRO("ME"),
  336. /** Montserrat. **/
  337. MONTSERRAT("MS"),
  338. /** Morocco. **/
  339. MOROCCO("MA"),
  340. /** Mozambique. **/
  341. MOZAMBIQUE("MZ"),
  342. /** Myanmar. **/
  343. MYANMAR("MM"),
  344. /** Namibia. **/
  345. NAMIBIA("NA"),
  346. /** Nauru. **/
  347. NAURU("NR"),
  348. /** Nepal. **/
  349. NEPAL("NP"),
  350. /** Netherlands. **/
  351. NETHERLANDS("NL"),
  352. /** Netherlands_antilles. **/
  353. NETHERLANDS_ANTILLES("AN"),
  354. /** New_caledonia. **/
  355. NEW_CALEDONIA("NC"),
  356. /** New_zealand. **/
  357. NEW_ZEALAND("NZ"),
  358. /** Nicaragua. **/
  359. NICARAGUA("NI"),
  360. /** Niger. **/
  361. NIGER("NE"),
  362. /** Nigeria. **/
  363. NIGERIA("NG"),
  364. /** Niue. **/
  365. NIUE("NU"),
  366. /** Norfolk_island. **/
  367. NORFOLK_ISLAND("NF"),
  368. /** Northern_mariana_islands. **/
  369. NORTHERN_MARIANA_ISLANDS("MP"),
  370. /** Norway. **/
  371. NORWAY("NO"),
  372. /** Oman. **/
  373. OMAN("OM"),
  374. /** Pakistan. **/
  375. PAKISTAN("PK"),
  376. /** Palau. **/
  377. PALAU("PW"),
  378. /** Palestinian_territory_occupied. **/
  379. PALESTINIAN_TERRITORY_OCCUPIED("PS"),
  380. /** Panama. **/
  381. PANAMA("PA"),
  382. /** Papua_new_guinea. **/
  383. PAPUA_NEW_GUINEA("PG"),
  384. /** Paraguay. **/
  385. PARAGUAY("PY"),
  386. /** Peru. **/
  387. PERU("PE"),
  388. /** Philippines. **/
  389. PHILIPPINES("PH"),
  390. /** Pitcairn. **/
  391. PITCAIRN("PN"),
  392. /** Poland. **/
  393. POLAND("PL"),
  394. /** Portugal. **/
  395. PORTUGAL("PT"),
  396. /** Puerto_rico. **/
  397. PUERTO_RICO("PR"),
  398. /** Qatar. **/
  399. QATAR("QA"),
  400. /** Reunion. **/
  401. REUNION("RE"),
  402. /** Romania. **/
  403. ROMANIA("RO"),
  404. /** Russian_federation. **/
  405. RUSSIAN_FEDERATION("RU"),
  406. /** Rwanda. **/
  407. RWANDA("RW"),
  408. /** Saint_barthelemy. **/
  409. SAINT_BARTHELEMY("BL"),
  410. /** Saint_helena. **/
  411. SAINT_HELENA("SH"),
  412. /** Saint_kitts_and_nevis. **/
  413. SAINT_KITTS_AND_NEVIS("KN"),
  414. /** Saint_lucia. **/
  415. SAINT_LUCIA("LC"),
  416. /** Saint_martin. **/
  417. SAINT_MARTIN("MF"),
  418. /** Saint_pierre_and_miquelon. **/
  419. SAINT_PIERRE_AND_MIQUELON("PM"),
  420. /** Saint_vincent_and_the_grenadines. **/
  421. SAINT_VINCENT_AND_THE_GRENADINES("VC"),
  422. /** Samoa. **/
  423. SAMOA("WS"),
  424. /** San_marino. **/
  425. SAN_MARINO("SM"),
  426. /** Sao_tome_and_principe. **/
  427. SAO_TOME_AND_PRINCIPE("ST"),
  428. /** Saudi_arabia. **/
  429. SAUDI_ARABIA("SA"),
  430. /** Senegal. **/
  431. SENEGAL("SN"),
  432. /** Serbia. **/
  433. SERBIA("RS"),
  434. /** Seychelles. **/
  435. SEYCHELLES("SC"),
  436. /** Sierra_leone. **/
  437. SIERRA_LEONE("SL"),
  438. /** Singapore. **/
  439. SINGAPORE("SG"),
  440. /** Slovakia. **/
  441. SLOVAKIA("SK"),
  442. /** Slovenia. **/
  443. SLOVENIA("SI"),
  444. /** Solomon_islands. **/
  445. SOLOMON_ISLANDS("SB"),
  446. /** Somalia. **/
  447. SOMALIA("SO"),
  448. /** South_africa. **/
  449. SOUTH_AFRICA("ZA"),
  450. /** South_georgia_and_the_south_sandwich_islands. **/
  451. SOUTH_GEORGIA_AND_THE_SOUTH_SANDWICH_ISLANDS("GS"),
  452. /** Spain. **/
  453. SPAIN("ES"),
  454. /** Sri_lanka. **/
  455. SRI_LANKA("LK"),
  456. /** Sudan. **/
  457. SUDAN("SD"),
  458. /** Suriname. **/
  459. SURINAME("SR"),
  460. /** Svalbard_and_jan_mayen. **/
  461. SVALBARD_AND_JAN_MAYEN("SJ"),
  462. /** Swaziland. **/
  463. SWAZILAND("SZ"),
  464. /** Sweden. **/
  465. SWEDEN("SE"),
  466. /** Switzerland. **/
  467. SWITZERLAND("CH"),
  468. /** Syrian_arab_republic. **/
  469. SYRIAN_ARAB_REPUBLIC("SY"),
  470. /** Taiwan_province_of_china. **/
  471. TAIWAN_PROVINCE_OF_CHINA("TW"),
  472. /** Tajikistan. **/
  473. TAJIKISTAN("TJ"),
  474. /** Tanzania_united_republic_of. **/
  475. TANZANIA_UNITED_REPUBLIC_OF("TZ"),
  476. /** Thailand. **/
  477. THAILAND("TH"),
  478. /** Timor_leste. **/
  479. TIMOR_LESTE("TL"),
  480. /** Togo. **/
  481. TOGO("TG"),
  482. /** Tokelau. **/
  483. TOKELAU("TK"),
  484. /** Tonga. **/
  485. TONGA("TO"),
  486. /** Trinidad_and_tobago. **/
  487. TRINIDAD_AND_TOBAGO("TT"),
  488. /** Tunisia. **/
  489. TUNISIA("TN"),
  490. /** Turkey. **/
  491. TURKEY("TR"),
  492. /** Turkmenistan. **/
  493. TURKMENISTAN("TM"),
  494. /** Turks_and_caicos_islands. **/
  495. TURKS_AND_CAICOS_ISLANDS("TC"),
  496. /** Tuvalu. **/
  497. TUVALU("TV"),
  498. /** Uganda. **/
  499. UGANDA("UG"),
  500. /** Ukraine. **/
  501. UKRAINE("UA"),
  502. /** United_arab_emirates. **/
  503. UNITED_ARAB_EMIRATES("AE"),
  504. /** United_kingdom. **/
  505. UNITED_KINGDOM("GB"),
  506. /** United_states. **/
  507. UNITED_STATES("US"),
  508. /** United_states_minor_outlying_islands. **/
  509. UNITED_STATES_MINOR_OUTLYING_ISLANDS("UM"),
  510. /** Uruguay. **/
  511. URUGUAY("UY"),
  512. /** Uzbekistan. **/
  513. UZBEKISTAN("UZ"),
  514. /** Vanuatu. **/
  515. VANUATU("VU"),
  516. /** Venezuela. **/
  517. VENEZUELA("VE"),
  518. /** Viet_nam. **/
  519. VIET_NAM("VN"),
  520. /** Virgin_islands_british. **/
  521. VIRGIN_ISLANDS_BRITISH("VG"),
  522. /** Virgin_islands_us. **/
  523. VIRGIN_ISLANDS_US("VI"),
  524. /** Wallis_and_futuna. **/
  525. WALLIS_AND_FUTUNA("WF"),
  526. /** Western_sahara. **/
  527. WESTERN_SAHARA("EH"),
  528. /** Yemen. **/
  529. YEMEN("YE"),
  530. /** Zambia. **/
  531. ZAMBIA("ZM"),
  532. /** Zimbabwe. **/
  533. ZIMBABWE("ZW");
  534. /** String for the Google Chart API parameter. */
  535. private final String name;
  536. /**
  537. * Instantiating enum.
  538. *
  539. * @param name
  540. * the string for the Google Chart API parameter
  541. */
  542. private Name(final String name) {
  543. this.name = name;
  544. }
  545. /**
  546. * {@inheritDoc}
  547. */
  548. @Override
  549. public String toString() {
  550. return name;
  551. }
  552. }
  553. /**
  554. * Country code.
  555. *
  556. */
  557. public enum Code {
  558. /** Afghanistan. **/
  559. AF,
  560. /** Aland_islands. **/
  561. AX,
  562. /** Albania. **/
  563. AL,
  564. /** Algeria. **/
  565. DZ,
  566. /** American_samoa. **/
  567. AS,
  568. /** Andorra. **/
  569. AD,
  570. /** Angola. **/
  571. AO,
  572. /** Anguilla. **/
  573. AI,
  574. /** Antarctica. **/
  575. AQ,
  576. /** Antigua_and_barbuda. **/
  577. AG,
  578. /** Argentina. **/
  579. AR,
  580. /** Armenia. **/
  581. AM,
  582. /** Aruba. **/
  583. AW,
  584. /** Australia. **/
  585. AU,
  586. /** Austria. **/
  587. AT,
  588. /** Azerbaijan. **/
  589. AZ,
  590. /** Bahamas. **/
  591. BS,
  592. /** Bahrain. **/
  593. BH,
  594. /** Bangladesh. **/
  595. BD,
  596. /** Barbados. **/
  597. BB,
  598. /** Belarus. **/
  599. BY,
  600. /** Belgium. **/
  601. BE,
  602. /** Belize. **/
  603. BZ,
  604. /** Benin. **/
  605. BJ,
  606. /** Bermuda. **/
  607. BM,
  608. /** Bhutan. **/
  609. BT,
  610. /** Bolivia. **/
  611. BO,
  612. /** Bosnia_and_herzegovina. **/
  613. BA,
  614. /** Botswana. **/
  615. BW,
  616. /** Bouvet_island. **/
  617. BV,
  618. /** Brazil. **/
  619. BR,
  620. /** British_indian_ocean_territory. **/
  621. IO,
  622. /** Brunei_darussalam. **/
  623. BN,
  624. /** Bulgaria. **/
  625. BG,
  626. /** Burkina_faso. **/
  627. BF,
  628. /** Burundi. **/
  629. BI,
  630. /** Cambodia. **/
  631. KH,
  632. /** Cameroon. **/
  633. CM,
  634. /** Canada. **/
  635. CA,
  636. /** Cape_verde. **/
  637. CV,
  638. /** Cayman_islands. **/
  639. KY,
  640. /** Central_african_republic. **/
  641. CF,
  642. /** Chad. **/
  643. TD,
  644. /** Chile. **/
  645. CL,
  646. /** China. **/
  647. CN,
  648. /** Christmas_island. **/
  649. CX,
  650. /** Cocos_keeling_islands. **/
  651. CC,
  652. /** Colombia. **/
  653. CO,
  654. /** Comoros. **/
  655. KM,
  656. /** Congo. **/
  657. CG,
  658. /** Congo_the_democratic_republic_of_the. **/
  659. CD,
  660. /** Cook_islands. **/
  661. CK,
  662. /** Costa_rica. **/
  663. CR,
  664. /** Cote_d_ivoire. **/
  665. CI,
  666. /** Croatia. **/
  667. HR,
  668. /** Cuba. **/
  669. CU,
  670. /** Cyprus. **/
  671. CY,
  672. /** Czech_republic. **/
  673. CZ,
  674. /** Denmark. **/
  675. DK,
  676. /** Djibouti. **/
  677. DJ,
  678. /** Dominica. **/
  679. DM,
  680. /** Dominican_republic. **/
  681. DO,
  682. /** Ecuador. **/
  683. EC,
  684. /** Egypt. **/
  685. EG,
  686. /** El_salvador. **/
  687. SV,
  688. /** Equatorial_guinea. **/
  689. GQ,
  690. /** Eritrea. **/
  691. ER,
  692. /** Estonia. **/
  693. EE,
  694. /** Ethiopia. **/
  695. ET,
  696. /** Falkland_islands_malvinas_. **/
  697. FK,
  698. /** Faroe_islands. **/
  699. FO,
  700. /** Fiji. **/
  701. FJ,
  702. /** Finland. **/
  703. FI,
  704. /** France. **/
  705. FR,
  706. /** French_guiana. **/
  707. GF,
  708. /** French_polynesia. **/
  709. PF,
  710. /** French_southern_territories. **/
  711. TF,
  712. /** Gabon. **/
  713. GA,
  714. /** Gambia. **/
  715. GM,
  716. /** Georgia. **/
  717. GE,
  718. /** Germany. **/
  719. DE,
  720. /** Ghana. **/
  721. GH,
  722. /** Gibraltar. **/
  723. GI,
  724. /** Greece. **/
  725. GR,
  726. /** Greenland. **/
  727. GL,
  728. /** Grenada. **/
  729. GD,
  730. /** Guadeloupe. **/
  731. GP,
  732. /** Guam. **/
  733. GU,
  734. /** Guatemala. **/
  735. GT,
  736. /** Guernsey. **/
  737. GG,
  738. /** Guinea. **/
  739. GN,
  740. /** Guinea_bissau. **/
  741. GW,
  742. /** Guyana. **/
  743. GY,
  744. /** Haiti. **/
  745. HT,
  746. /** Heard_island_and_mcdonald_islands. **/
  747. HM,
  748. /** Holy_see_vatican_city_state_. **/
  749. VA,
  750. /** Honduras. **/
  751. HN,
  752. /** Hong_kong. **/
  753. HK,
  754. /** Hungary. **/
  755. HU,
  756. /** Iceland. **/
  757. IS,
  758. /** India. **/
  759. IN,
  760. /** Indonesia. **/
  761. ID,
  762. /** Iran_islamic_republic_of. **/
  763. IR,
  764. /** Iraq. **/
  765. IQ,
  766. /** Ireland. **/
  767. IE,
  768. /** Isle_of_man. **/
  769. IM,
  770. /** Israel. **/
  771. IL,
  772. /** Italy. **/
  773. IT,
  774. /** Jamaica. **/
  775. JM,
  776. /** Japan. **/
  777. JP,
  778. /** Jersey. **/
  779. JE,
  780. /** Jordan. **/
  781. JO,
  782. /** Kazakhstan. **/
  783. KZ,
  784. /** Kenya. **/
  785. KE,
  786. /** Kiribati. **/
  787. KI,
  788. /** Korea_democratic_peoples_republic_of. **/
  789. KP,
  790. /** Korea_republic_of. **/
  791. KR,
  792. /** Kuwait. **/
  793. KW,
  794. /** Kyrgyzstan. **/
  795. KG,
  796. /** Lao_peoples_democratic_republic. **/
  797. LA,
  798. /** Latvia. **/
  799. LV,
  800. /** Lebanon. **/
  801. LB,
  802. /** Lesotho. **/
  803. LS,
  804. /** Liberia. **/
  805. LR,
  806. /** Libyan_arab_jamahiriya. **/
  807. LY,
  808. /** Liechtenstein. **/
  809. LI,
  810. /** Lithuania. **/
  811. LT,
  812. /** Luxembourg. **/
  813. LU,
  814. /** Macao. **/
  815. MO,
  816. /** Macedonia_the_former_yugoslav_republic_of. **/
  817. MK,
  818. /** Madagascar. **/
  819. MG,
  820. /** Malawi. **/
  821. MW,
  822. /** Malaysia. **/
  823. MY,
  824. /** Maldives. **/
  825. MV,
  826. /** Mali. **/
  827. ML,
  828. /** Malta. **/
  829. MT,
  830. /** Marshall_islands. **/
  831. MH,
  832. /** Martinique. **/
  833. MQ,
  834. /** Mauritania. **/
  835. MR,
  836. /** Mauritius. **/
  837. MU,
  838. /** Mayotte. **/
  839. YT,
  840. /** Mexico. **/
  841. MX,
  842. /** Micronesia_federated_states_of. **/
  843. FM,
  844. /** Moldova_republic_of. **/
  845. MD,
  846. /** Monaco. **/
  847. MC,
  848. /** Mongolia. **/
  849. MN,
  850. /** Montenegro. **/
  851. ME,
  852. /** Montserrat. **/
  853. MS,
  854. /** Morocco. **/
  855. MA,
  856. /** Mozambique. **/
  857. MZ,
  858. /** Myanmar. **/
  859. MM,
  860. /** Namibia. **/
  861. NA,
  862. /** Nauru. **/
  863. NR,
  864. /** Nepal. **/
  865. NP,
  866. /** Netherlands. **/
  867. NL,
  868. /** Netherlands_antilles. **/
  869. AN,
  870. /** New_caledonia. **/
  871. NC,
  872. /** New_zealand. **/
  873. NZ,
  874. /** Nicaragua. **/
  875. NI,
  876. /** Niger. **/
  877. NE,
  878. /** Nigeria. **/
  879. NG,
  880. /** Niue. **/
  881. NU,
  882. /** Norfolk_island. **/
  883. NF,
  884. /** Northern_mariana_islands. **/
  885. MP,
  886. /** Norway. **/
  887. NO,
  888. /** Oman. **/
  889. OM,
  890. /** Pakistan. **/
  891. PK,
  892. /** Palau. **/
  893. PW,
  894. /** Palestinian_territory_occupied. **/
  895. PS,
  896. /** Panama. **/
  897. PA,
  898. /** Papua_new_guinea. **/
  899. PG,
  900. /** Paraguay. **/
  901. PY,
  902. /** Peru. **/
  903. PE,
  904. /** Philippines. **/
  905. PH,
  906. /** Pitcairn. **/
  907. PN,
  908. /** Poland. **/
  909. PL,
  910. /** Portugal. **/
  911. PT,
  912. /** Puerto_rico. **/
  913. PR,
  914. /** Qatar. **/
  915. QA,
  916. /** Reunion. **/
  917. RE,
  918. /** Romania. **/
  919. RO,
  920. /** Russian_federation. **/
  921. RU,
  922. /** Rwanda. **/
  923. RW,
  924. /** Saint_barthelemy. **/
  925. BL,
  926. /** Saint_helena. **/
  927. SH,
  928. /** Saint_kitts_and_nevis. **/
  929. KN,
  930. /** Saint_lucia. **/
  931. LC,
  932. /** Saint_martin. **/
  933. MF,
  934. /** Saint_pierre_and_miquelon. **/
  935. PM,
  936. /** Saint_vincent_and_the_grenadines. **/
  937. VC,
  938. /** Samoa. **/
  939. WS,
  940. /** San_marino. **/
  941. SM,
  942. /** Sao_tome_and_principe. **/
  943. ST,
  944. /** Saudi_arabia. **/
  945. SA,
  946. /** Senegal. **/
  947. SN,
  948. /** Serbia. **/
  949. RS,
  950. /** Seychelles. **/
  951. SC,
  952. /** Sierra_leone. **/
  953. SL,
  954. /** Singapore. **/
  955. SG,
  956. /** Slovakia. **/
  957. SK,
  958. /** Slovenia. **/
  959. SI,
  960. /** Solomon_islands. **/
  961. SB,
  962. /** Somalia. **/
  963. SO,
  964. /** South_africa. **/
  965. ZA,
  966. /** South_georgia_and_the_south_sandwich_islands. **/
  967. GS,
  968. /** Spain. **/
  969. ES,
  970. /** Sri_lanka. **/
  971. LK,
  972. /** Sudan. **/
  973. SD,
  974. /** Suriname. **/
  975. SR,
  976. /** Svalbard_and_jan_mayen. **/
  977. SJ,
  978. /** Swaziland. **/
  979. SZ,
  980. /** Sweden. **/
  981. SE,
  982. /** Switzerland. **/
  983. CH,
  984. /** Syrian_arab_republic. **/
  985. SY,
  986. /** Taiwan_province_of_china. **/
  987. TW,
  988. /** Tajikistan. **/
  989. TJ,
  990. /** Tanzania_united_republic_of. **/
  991. TZ,
  992. /** Thailand. **/
  993. TH,
  994. /** Timor_leste. **/
  995. TL,
  996. /** Togo. **/
  997. TG,
  998. /** Tokelau. **/
  999. TK,
  1000. /** Tonga. **/
  1001. TO,
  1002. /** Trinidad_and_tobago. **/
  1003. TT,
  1004. /** Tunisia. **/
  1005. TN,
  1006. /** Turkey. **/
  1007. TR,
  1008. /** Turkmenistan. **/
  1009. TM,
  1010. /** Turks_and_caicos_islands. **/
  1011. TC,
  1012. /** Tuvalu. **/
  1013. TV,
  1014. /** Uganda. **/
  1015. UG,
  1016. /** Ukraine. **/
  1017. UA,
  1018. /** United_arab_emirates. **/
  1019. AE,
  1020. /** United_kingdom. **/
  1021. GB,
  1022. /** United_states. **/
  1023. US,
  1024. /** United_states_minor_outlying_islands. **/
  1025. UM,
  1026. /** Uruguay. **/
  1027. UY,
  1028. /** Uzbekistan. **/
  1029. UZ,
  1030. /** Vanuatu. **/
  1031. VU,
  1032. /** Venezuela. **/
  1033. VE,
  1034. /** Viet_nam. **/
  1035. VN,
  1036. /** Virgin_islands_british. **/
  1037. VG,
  1038. /** Virgin_islands_us. **/
  1039. VI,
  1040. /** Wallis_and_futuna. **/
  1041. WF,
  1042. /** Western_sahara. **/
  1043. EH,
  1044. /** Yemen. **/
  1045. YE,
  1046. /** Zambia. **/
  1047. ZM,
  1048. /** Zimbabwe. **/
  1049. ZW;
  1050. }
  1051. /**
  1052. * Construct this implementation of {@link PoliticalBoundary}.
  1053. *
  1054. * @param name
  1055. * Supply a country name.
  1056. *
  1057. * @param color
  1058. * Define an integer from 0 to 100 that will be positioned along
  1059. * the color gradient. The integer you provide here will be
  1060. * interpolated with the color gradient that you defined in
  1061. * {@link MapChart#setColorGradient(Color defaultColor, Color... colorGradient)}
  1062. */
  1063. public Country(final Name name, final int color) {
  1064. super(name.toString(), color);
  1065. }
  1066. /**
  1067. * Construct this implementation of {@link PoliticalBoundary}.
  1068. *
  1069. * @param code
  1070. * Supply a country code.
  1071. *
  1072. * @param color
  1073. * Define an integer from 0 to 100 that will be positioned along
  1074. * the color gradient. The integer you provide here will be
  1075. * interpolated with the color gradient that you defined in
  1076. * {@link MapChart#setColorGradient(Color defaultColor, Color... colorGradient)}
  1077. */
  1078. public Country(final Code code, final int color) {
  1079. super(code.toString(), color);
  1080. }
  1081. }