|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.charts4j.Country
public class Country
A country on planet earth. Herein you can find all the country codes that are detailed in ISO 3166.
PoliticalBoundary
,
USAState
,
MapChart
,
GeographicalArea
Nested Class Summary | |
---|---|
static class |
Country.Code
Country code. |
static class |
Country.Name
Country names. |
Constructor Summary | |
---|---|
Country(Country.Code code,
int color)
Construct this implementation of PoliticalBoundary . |
|
Country(Country.Name name,
int color)
Construct this implementation of PoliticalBoundary . |
Method Summary | |
---|---|
String |
getCode()
Get the political boundary code (e.g "US", "NY"). |
int |
getColor()
Get the color associated with this political boundary area. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Country(Country.Name name, int color)
PoliticalBoundary
.
name
- Supply a country name.color
- Define an integer from 0 to 100 that will be positioned along
the color gradient. The integer you provide here will be
interpolated with the color gradient that you defined in
MapChart.setColorGradient(Color defaultColor, Color... colorGradient)
public Country(Country.Code code, int color)
PoliticalBoundary
.
code
- Supply a country code.color
- Define an integer from 0 to 100 that will be positioned along
the color gradient. The integer you provide here will be
interpolated with the color gradient that you defined in
MapChart.setColorGradient(Color defaultColor, Color... colorGradient)
Method Detail |
---|
public String getCode()
getCode
in interface PoliticalBoundary
public int getColor()
getColor
in interface PoliticalBoundary
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |