|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Palette
Defines a palette of colors.
Nested Class Summary | |
---|---|
static class |
Palette.Cycle
|
Method Summary | |
---|---|
void |
addPaletteListener(PaletteListener listener)
Add a listener to the list that's notified each time a change to the palette occurs. |
void |
addWeakPaletteListener(PaletteListener listener)
Add a listener to the list that's notified each time a change to the palette occurs. |
Color |
getColor(double fraction)
|
Color |
getColor(int index)
|
int |
getColorCount()
|
Palette.Cycle |
getCycle()
Defines the method to use when retrieving colors outside the normal interval. |
void |
removePaletteListener(PaletteListener listener)
Remove a listener to the list that's notified each time a change to the palette occurs. |
Method Detail |
---|
Color getColor(double fraction)
Color getColor(int index)
int getColorCount()
Palette.Cycle getCycle()
void addPaletteListener(PaletteListener listener)
listener
- the PaletteListenervoid addWeakPaletteListener(PaletteListener listener)
listener
- the PaletteListenervoid removePaletteListener(PaletteListener listener)
listener
- the PaletteListener
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |