|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.googlecode.charts4j.USAState
public class USAState
A state in the USA. Herein you can find all the US States.
PoliticalBoundary
,
Country
,
MapChart
Nested Class Summary | |
---|---|
static class |
USAState.Code
USA state name code. |
static class |
USAState.Name
USA State name. |
Constructor Summary | |
---|---|
USAState(USAState.Code code,
int color)
Construct this implementation of PoliticalBoundary . |
|
USAState(USAState.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 USAState(USAState.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 USAState(USAState.Code code, int color)
PoliticalBoundary
.
code
- 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)
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 |