|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jfree.chart.ui.ColorPalette
Defines palette used in Contour Plots.
Field Summary | |
protected int[] |
b
Blue components. |
protected int[] |
g
Green components. |
protected boolean |
inverse
Inverse palette (ie, min and max colors are reversed). |
protected static double |
log10
Constant for converting loge to log10. |
protected boolean |
logscale
Logscale? |
protected double |
maxZ
The max z-axis value. |
protected double |
minZ
The min z-axis value. |
protected java.lang.String |
paletteName
The palette name. |
protected int[] |
r
Red components. |
protected boolean |
stepped
Controls whether palette colors are stepped (not continuous). |
protected double[] |
tickValues
Tick values are stored for use with stepped palette. |
Constructor Summary | |
ColorPalette()
Default contructor. |
Method Summary | |
java.awt.Paint |
getColor(double value)
Returns the color associated with a value. |
java.awt.Color |
getColor(int izV)
Returns a color. |
java.awt.Color |
getColorLinear(double value)
Returns Color by mapping a given value to a linear palette. |
java.awt.Color |
getColorLog(double value)
Returns Color by mapping a given value to a common log palette. |
double |
getMaxZ()
Returns the maximum Z value. |
double |
getMinZ()
Returns the minimum Z value. |
java.awt.Paint |
getPaint(double value)
Returns Paint by mapping a given value to a either a linear or common log palette as controlled by the value logscale. |
java.lang.String |
getPaletteName()
Returns the palette name. |
double[] |
getTickValues()
Returns the tick values. |
abstract void |
initialize()
Called to initialize the palette's color indexes |
void |
invertPalette()
Inverts Palette |
boolean |
isInverse()
Returns the inverse flag. |
boolean |
isLogscale()
Returns the log-scale flag. |
boolean |
isStepped()
Returns the 'is-stepped' flag. |
void |
setInverse(boolean inverse)
Sets the inverse flag. |
void |
setLogscale(boolean logscale)
Sets the 'log-scale' flag. |
void |
setMaxZ(double newMaxZ)
Sets the maximum Z value. |
void |
setMinZ(double newMinZ)
Sets the minimum Z value. |
void |
setPaletteName(java.lang.String paletteName)
Sets the palette name. |
void |
setStepped(boolean stepped)
Sets the stepped flag. |
void |
setTickValues(double[] newTickValues)
|
void |
setTickValues(java.util.List ticks)
Store ticks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected double minZ
protected double maxZ
protected int[] r
protected int[] g
protected int[] b
protected double[] tickValues
protected boolean logscale
protected boolean inverse
protected java.lang.String paletteName
protected boolean stepped
protected static final double log10
Constructor Detail |
public ColorPalette()
Method Detail |
public java.awt.Paint getColor(double value)
value
- the value.
public java.awt.Color getColor(int izV)
izV
- ??.
public java.awt.Color getColorLinear(double value)
value
- the value.
public java.awt.Color getColorLog(double value)
value
- the value.
public double getMaxZ()
public double getMinZ()
public java.awt.Paint getPaint(double value)
value
- the value.
public java.lang.String getPaletteName()
public double[] getTickValues()
public abstract void initialize()
public void invertPalette()
public boolean isInverse()
public boolean isLogscale()
public boolean isStepped()
public void setInverse(boolean inverse)
inverse
- the new value.public void setLogscale(boolean logscale)
logscale
- the new value.public void setMaxZ(double newMaxZ)
newMaxZ
- the new value.public void setMinZ(double newMinZ)
newMinZ
- the new value.public void setPaletteName(java.lang.String paletteName)
paletteName
- the name.public void setStepped(boolean stepped)
stepped
- the flag.public void setTickValues(double[] newTickValues)
public void setTickValues(java.util.List ticks)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |