Package org.jfree.chart.plot
Class ColorPalette
java.lang.Object
org.jfree.chart.plot.ColorPalette
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
GreyPalette,RainbowPalette
Deprecated.
Defines palette used by
ContourPlot.- See Also:
-
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
Deprecated.The min z-axis value. -
maxZ
Deprecated.The max z-axis value. -
r
Deprecated.Red components. -
g
Deprecated.Green components. -
b
Deprecated.Blue components. -
tickValues
Deprecated.Tick values are stored for use with stepped palette. -
logscale
Deprecated.Logscale? -
inverse
Deprecated.Inverse palette (ie, min and max colors are reversed). -
paletteName
Deprecated.The palette name. -
stepped
Deprecated.Controls whether palette colors are stepped (not continuous). -
log10
Deprecated.Constant for converting loge to log10.
-
-
Constructor Details
-
ColorPalette
public ColorPalette()Deprecated.Default contructor.
-
-
Method Details
-
getColor
Deprecated.Returns the color associated with a value.- Parameters:
value- the value.- Returns:
- The color.
-
getColor
Deprecated.Returns a color.- Parameters:
izV- the index into the palette (zero based).- Returns:
- The color.
-
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
Deprecated.Returns the maximum Z value.- Returns:
- The value.
-
getMinZ
Deprecated.Returns the minimum Z value.- Returns:
- The value.
-
getPaint
Deprecated.Returns Paint by mapping a given value to a either a linear or common log palette as controlled by the value logscale.- Parameters:
value- the value.- Returns:
- The paint.
-
getPaletteName
Deprecated.Returns the palette name.- Returns:
- The palette name.
-
getTickValues
Deprecated.Returns the tick values.- Returns:
- The tick values.
-
initialize
Deprecated.Called to initialize the palette's color indexes -
invertPalette
Deprecated.Inverts Palette -
isInverse
Deprecated.Returns the inverse flag.- Returns:
- The flag.
-
isLogscale
Deprecated.Returns the log-scale flag.- Returns:
- The flag.
-
isStepped
Deprecated.Returns the 'is-stepped' flag.- Returns:
- The flag.
-
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
Deprecated.Tests an object for equality with this instance. -
hashCode
Deprecated.Returns a hash code. -
clone
Deprecated.Returns a clone of the palette.- Overrides:
clonein classObject- Returns:
- A clone.
- Throws:
CloneNotSupportedException- never.
-
XYPlotandXYBlockRenderer.