Class ColorPalette
java.lang.Object
org.jfree.chart.plot.ColorPalette
- All Implemented Interfaces:
Serializable, Cloneable
- Direct Known Subclasses:
GreyPalette, RainbowPalette
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int[]Deprecated.Blue components.protected int[]Deprecated.Green components.protected booleanDeprecated.Inverse palette (ie, min and max colors are reversed).protected static final doubleDeprecated.Constant for converting loge to log10.protected booleanDeprecated.Logscale?protected doubleDeprecated.The max z-axis value.protected doubleDeprecated.The min z-axis value.protected StringDeprecated.The palette name.protected int[]Deprecated.Red components.protected booleanDeprecated.Controls whether palette colors are stepped (not continuous).protected double[]Deprecated.Tick values are stored for use with stepped palette. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Deprecated.Returns a clone of the palette.booleanDeprecated.Tests an object for equality with this instance.getColor(double value) Deprecated.Returns the color associated with a value.getColor(int izV) Deprecated.Returns a color.getColorLinear(double value) Deprecated.Returns Color by mapping a given value to a linear palette.getColorLog(double value) Deprecated.Returns Color by mapping a given value to a common log palette.doublegetMaxZ()Deprecated.Returns the maximum Z value.doublegetMinZ()Deprecated.Returns the minimum Z value.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.Deprecated.Returns the palette name.double[]Deprecated.Returns the tick values.inthashCode()Deprecated.Returns a hash code.abstract voidDeprecated.Called to initialize the palette's color indexesvoidDeprecated.Inverts PalettebooleanDeprecated.Returns the inverse flag.booleanDeprecated.Returns the log-scale flag.booleanDeprecated.Returns the 'is-stepped' flag.voidsetInverse(boolean inverse) Deprecated.Sets the inverse flag.voidsetLogscale(boolean logscale) Deprecated.Sets the 'log-scale' flag.voidsetMaxZ(double newMaxZ) Deprecated.Sets the maximum Z value.voidsetMinZ(double newMinZ) Deprecated.Sets the minimum Z value.voidsetPaletteName(String paletteName) Deprecated.Sets the palette name.voidsetStepped(boolean stepped) Deprecated.Sets the stepped flag.voidsetTickValues(double[] newTickValues) Deprecated.Sets the tick values.voidsetTickValues(List ticks) Deprecated.Store ticks.
-
Field Details
-
minZ
-
maxZ
-
r
-
g
-
b
-
tickValues
-
logscale
-
inverse
-
paletteName
-
stepped
-
log10
-
-
Constructor Details
-
ColorPalette
-
-
Method Details
-
getColor
-
getColor
-
getColorLinear
Deprecated.Returns Color by mapping a given value to a linear palette.- Parameters:
value- the value.- Returns:
- The color.
-
getColorLog
Deprecated.Returns Color by mapping a given value to a common log palette.- Parameters:
value- the value.- Returns:
- The color.
-
getMaxZ
-
getMinZ
-
getPaint
-
getPaletteName
-
getTickValues
-
initialize
-
invertPalette
-
isInverse
-
isLogscale
-
isStepped
-
setInverse
Deprecated.Sets the inverse flag.- Parameters:
inverse- the new value.
-
setLogscale
Deprecated.Sets the 'log-scale' flag.- Parameters:
logscale- the new value.
-
setMaxZ
Deprecated.Sets the maximum Z value.- Parameters:
newMaxZ- the new value.
-
setMinZ
Deprecated.Sets the minimum Z value.- Parameters:
newMinZ- the new value.
-
setPaletteName
Deprecated.Sets the palette name.- Parameters:
paletteName- the name.
-
setStepped
Deprecated.Sets the stepped flag.- Parameters:
stepped- the flag.
-
setTickValues
Deprecated.Sets the tick values.- Parameters:
newTickValues- the tick values.
-
setTickValues
Deprecated.Store ticks. Required when doing stepped axis- Parameters:
ticks- the ticks.
-
equals
-
hashCode
-
clone
Deprecated.Returns a clone of the palette.- Overrides:
clonein classObject- Returns:
- A clone.
- Throws:
CloneNotSupportedException- never.
-
XYPlotandXYBlockRenderer.