JIDE 3.5.15

com.jidesoft.palette
Class AbstractMutablePalette

java.lang.Object
  extended by com.jidesoft.palette.AbstractPalette
      extended by com.jidesoft.palette.AbstractMutablePalette
All Implemented Interfaces:
MutablePalette, Palette
Direct Known Subclasses:
FixedPalette

public abstract class AbstractMutablePalette
extends AbstractPalette
implements MutablePalette

This class provides a skeletal implementation of the MutablePalette interface to minimize the effort required to implement this interface.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.jidesoft.palette.Palette
Palette.Cycle
 
Field Summary
protected  int _colorCount
           
 
Constructor Summary
AbstractMutablePalette()
           
 
Method Summary
 Palette.Cycle getCycle()
          Defines the method to use when retrieving colors outside the normal interval.
 void setColorCount(int colorCount)
           
 void setCycle(Palette.Cycle cycle)
           
 
Methods inherited from class com.jidesoft.palette.AbstractPalette
addPaletteListener, addWeakPaletteListener, getEntry, isInverted, notifyPaletteChanged, removePaletteListener, removePaletteListeners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jidesoft.palette.Palette
addPaletteListener, addWeakPaletteListener, getColor, getColor, getColorCount, removePaletteListener
 

Field Detail

_colorCount

protected int _colorCount
Constructor Detail

AbstractMutablePalette

public AbstractMutablePalette()
Method Detail

setColorCount

public void setColorCount(int colorCount)
Specified by:
setColorCount in interface MutablePalette

getCycle

public Palette.Cycle getCycle()
Description copied from interface: Palette
Defines the method to use when retrieving colors outside the normal interval.

Specified by:
getCycle in interface Palette
Returns:
the method to use

setCycle

public void setCycle(Palette.Cycle cycle)
Specified by:
setCycle in interface MutablePalette

JIDE 3.5.15