JIDE 3.5.15

com.jidesoft.palette
Class InterpolatedPalette

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

public class InterpolatedPalette
extends FixedPalette

Palette where colors are interpolated according to some fixed points.


Nested Class Summary
static class InterpolatedPalette.Entry
           
static class InterpolatedPalette.Mode
           
 
Nested classes/interfaces inherited from interface com.jidesoft.palette.Palette
Palette.Cycle
 
Field Summary
 
Fields inherited from class com.jidesoft.palette.FixedPalette
_colors
 
Fields inherited from class com.jidesoft.palette.AbstractMutablePalette
_colorCount
 
Constructor Summary
InterpolatedPalette(InterpolatedPalette.Entry... entries)
           
InterpolatedPalette(Palette palette)
           
 
Method Summary
 Color getColor(double fraction)
           
 Set<InterpolatedPalette.Entry> getEntries()
           
protected  double getHighestFraction()
           
protected  double getLowestFraction()
           
 InterpolatedPalette.Mode getMode()
           
 void setColor(double fraction, Color color)
           
 void setEntries(Iterable<InterpolatedPalette.Entry> entries)
           
 void setMode(InterpolatedPalette.Mode mode)
           
 
Methods inherited from class com.jidesoft.palette.FixedPalette
getColor, getColorCount
 
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
 

Constructor Detail

InterpolatedPalette

public InterpolatedPalette(Palette palette)

InterpolatedPalette

public InterpolatedPalette(InterpolatedPalette.Entry... entries)
Method Detail

getColor

public Color getColor(double fraction)
Specified by:
getColor in interface Palette
Overrides:
getColor in class FixedPalette

setColor

public void setColor(double fraction,
                     Color color)

getMode

public InterpolatedPalette.Mode getMode()

setMode

public void setMode(InterpolatedPalette.Mode mode)

getEntries

public Set<InterpolatedPalette.Entry> getEntries()

setEntries

public void setEntries(Iterable<InterpolatedPalette.Entry> entries)

getLowestFraction

protected double getLowestFraction()
Overrides:
getLowestFraction in class FixedPalette

getHighestFraction

protected double getHighestFraction()
Overrides:
getHighestFraction in class FixedPalette

JIDE 3.5.15