JIDE 3.5.15

com.jidesoft.palette
Interface Palette

All Known Subinterfaces:
MutablePalette
All Known Implementing Classes:
AbstractMutablePalette, AbstractPalette, FixedPalette, InterpolatedPalette

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

getColor

Color getColor(double fraction)

getColor

Color getColor(int index)

getColorCount

int getColorCount()

getCycle

Palette.Cycle getCycle()
Defines the method to use when retrieving colors outside the normal interval.

Returns:
the method to use

addPaletteListener

void addPaletteListener(PaletteListener listener)
Add a listener to the list that's notified each time a change to the palette occurs.

Parameters:
listener - the PaletteListener

addWeakPaletteListener

void addWeakPaletteListener(PaletteListener listener)
Add a listener to the list that's notified each time a change to the palette occurs. The listener will automatically be disposed of should no other object have a reference to it.

Parameters:
listener - the PaletteListener

removePaletteListener

void removePaletteListener(PaletteListener listener)
Remove a listener to the list that's notified each time a change to the palette occurs.

Parameters:
listener - the PaletteListener

JIDE 3.5.15