|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.palette.AbstractPalette
com.jidesoft.palette.AbstractMutablePalette
com.jidesoft.palette.FixedPalette
com.jidesoft.palette.InterpolatedPalette
public class InterpolatedPalette
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 |
|---|
public InterpolatedPalette(Palette palette)
public InterpolatedPalette(InterpolatedPalette.Entry... entries)
| Method Detail |
|---|
public Color getColor(double fraction)
getColor in interface PalettegetColor in class FixedPalette
public void setColor(double fraction,
Color color)
public InterpolatedPalette.Mode getMode()
public void setMode(InterpolatedPalette.Mode mode)
public Set<InterpolatedPalette.Entry> getEntries()
public void setEntries(Iterable<InterpolatedPalette.Entry> entries)
protected double getLowestFraction()
getLowestFraction in class FixedPaletteprotected double getHighestFraction()
getHighestFraction in class FixedPalette
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||