PageRenderTime 50ms CodeModel.GetById 13ms app.highlight 31ms RepoModel.GetById 2ms app.codeStats 0ms

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