JIDE 3.5.15

com.jidesoft.palette
Class FixedPalette

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

public class FixedPalette
extends AbstractMutablePalette

Palette composed of a defined list of discrete colors.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.jidesoft.palette.Palette
Palette.Cycle
 
Field Summary
protected  List<Color> _colors
           
 
Fields inherited from class com.jidesoft.palette.AbstractMutablePalette
_colorCount
 
Constructor Summary
protected FixedPalette()
           
  FixedPalette(Color... colors)
           
  FixedPalette(int... colors)
           
  FixedPalette(List<Color> colors)
           
 
Method Summary
 Color getColor(double fraction)
           
 Color getColor(int index)
           
 int getColorCount()
           
protected  double getHighestFraction()
           
protected  double getLowestFraction()
           
 
Methods inherited from class com.jidesoft.palette.AbstractMutablePalette
getCycle, setColorCount, setCycle
 
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, removePaletteListener
 

Field Detail

_colors

protected List<Color> _colors
Constructor Detail

FixedPalette

protected FixedPalette()

FixedPalette

public FixedPalette(int... colors)

FixedPalette

public FixedPalette(Color... colors)

FixedPalette

public FixedPalette(List<Color> colors)
Method Detail

getColor

public Color getColor(double fraction)

getLowestFraction

protected double getLowestFraction()

getHighestFraction

protected double getHighestFraction()

getColor

public Color getColor(int index)

getColorCount

public int getColorCount()

JIDE 3.5.15