|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ColorLegend
A ColorLegend is a set of colors associated with names. The ColorLegend associates colors with floats.
Creation date: 15 mars 2006
LinkColorShower
Method Summary | |
---|---|
java.awt.Color |
getColor(float value)
Returns the color for the given float value. |
java.awt.Color |
getColor(int index)
Returns the color at specified index. |
java.lang.String |
getName(int index)
Returns the legend associated with the color at specified index. |
int |
getNbColors()
Returns the number of colors. |
void |
setColor(int index,
java.awt.Color color)
Sets the color color at index index |
void |
setName(int index,
java.lang.String name)
Sets the name of the color at index index |
Method Detail |
---|
java.awt.Color getColor(float value)
value
-
java.awt.Color getColor(int index)
index
-
int getNbColors()
java.lang.String getName(int index)
index
-
void setColor(int index, java.awt.Color color)
color
at index index
index
- color
- void setName(int index, java.lang.String name)
index
index
- name
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |