|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of the user datapublic interface ChartModel<T>
Describes the model required by charts.
Method Summary | |
---|---|
void |
addChangeListener(ChangeListener listener)
Adds the given listener to the list of observers. |
Color |
getColor(int index)
Returns the color of the item at the given index. |
T |
getData(int index)
Returns the user data at the given index. |
Icon |
getIcon(int index)
Returns the icon at the given index. |
int |
getItemCount()
Returns the number of items in this model. |
long |
getSize(int index)
Returns the mandatory size at the given index. |
String |
getText(int index)
Returns the text at the given index. |
void |
removeChangeListener(ChangeListener listener)
Removes the given listener fromthe list of observers. |
Method Detail |
---|
int getItemCount()
T getData(int index)
index
- the index to look at
IndexOutOfBoundsException
- if the index is out of boundsIcon getIcon(int index)
index
- the index to look at
IndexOutOfBoundsException
- if the index is out of boundsString getText(int index)
index
- the index to look at
IndexOutOfBoundsException
- if the index is out of boundslong getSize(int index)
index
- the index to look at
IndexOutOfBoundsException
- if the index is out of boundsColor getColor(int index)
null
and leave it
to a wrapper chart model to colorize the data.
index
- the index to look at
IndexOutOfBoundsException
- if the index is out of boundsvoid addChangeListener(ChangeListener listener)
listener
- the listener to be added
NullPointerException
- if the listener is null
void removeChangeListener(ChangeListener listener)
listener
- the listener to be added
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |