XYPlot
and
XYBlockRenderer
.public abstract class ColorPalette extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable
ContourPlot
.Modifier and Type | Field and Description |
---|---|
protected int[] |
b
Deprecated.
Blue components.
|
protected int[] |
g
Deprecated.
Green components.
|
protected boolean |
inverse
Deprecated.
Inverse palette (ie, min and max colors are reversed).
|
protected static double |
log10
Deprecated.
Constant for converting loge to log10.
|
protected boolean |
logscale
Deprecated.
Logscale?
|
protected double |
maxZ
Deprecated.
The max z-axis value.
|
protected double |
minZ
Deprecated.
The min z-axis value.
|
protected java.lang.String |
paletteName
Deprecated.
The palette name.
|
protected int[] |
r
Deprecated.
Red components.
|
protected boolean |
stepped
Deprecated.
Controls whether palette colors are stepped (not continuous).
|
protected double[] |
tickValues
Deprecated.
Tick values are stored for use with stepped palette.
|
Constructor and Description |
---|
ColorPalette()
Deprecated.
Default contructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Deprecated.
Returns a clone of the palette.
|
boolean |
equals(java.lang.Object o)
Deprecated.
Tests an object for equality with this instance.
|
java.awt.Paint |
getColor(double value)
Deprecated.
Returns the color associated with a value.
|
java.awt.Color |
getColor(int izV)
Deprecated.
Returns a color.
|
java.awt.Color |
getColorLinear(double value)
Deprecated.
Returns Color by mapping a given value to a linear palette.
|
java.awt.Color |
getColorLog(double value)
Deprecated.
Returns Color by mapping a given value to a common log palette.
|
double |
getMaxZ()
Deprecated.
Returns the maximum Z value.
|
double |
getMinZ()
Deprecated.
Returns the minimum Z value.
|
java.awt.Paint |
getPaint(double value)
Deprecated.
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()
Deprecated.
Returns the palette name.
|
double[] |
getTickValues()
Deprecated.
Returns the tick values.
|
int |
hashCode()
Deprecated.
Returns a hash code.
|
abstract void |
initialize()
Deprecated.
Called to initialize the palette's color indexes
|
void |
invertPalette()
Deprecated.
Inverts Palette
|
boolean |
isInverse()
Deprecated.
Returns the inverse flag.
|
boolean |
isLogscale()
Deprecated.
Returns the log-scale flag.
|
boolean |
isStepped()
Deprecated.
Returns the 'is-stepped' flag.
|
void |
setInverse(boolean inverse)
Deprecated.
Sets the inverse flag.
|
void |
setLogscale(boolean logscale)
Deprecated.
Sets the 'log-scale' flag.
|
void |
setMaxZ(double newMaxZ)
Deprecated.
Sets the maximum Z value.
|
void |
setMinZ(double newMinZ)
Deprecated.
Sets the minimum Z value.
|
void |
setPaletteName(java.lang.String paletteName)
Deprecated.
Sets the palette name.
|
void |
setStepped(boolean stepped)
Deprecated.
Sets the stepped flag.
|
void |
setTickValues(double[] newTickValues)
Deprecated.
Sets the tick values.
|
void |
setTickValues(java.util.List ticks)
Deprecated.
Store ticks.
|
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
public ColorPalette()
public java.awt.Paint getColor(double value)
value
- the value.public java.awt.Color getColor(int izV)
izV
- the index into the palette (zero based).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)
newTickValues
- the tick values.public void setTickValues(java.util.List ticks)
ticks
- the ticks.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the object to test.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- never.