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