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 boolean
Deprecated.Inverse palette (ie, min and max colors are reversed).protected static final double
Deprecated.Constant for converting loge to log10.protected boolean
Deprecated.Logscale?protected double
Deprecated.The max z-axis value.protected double
Deprecated.The min z-axis value.protected String
Deprecated.The palette name.protected int[]
Deprecated.Red components.protected boolean
Deprecated.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.boolean
Deprecated.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.double
getMaxZ()
Deprecated.Returns the maximum Z value.double
getMinZ()
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.int
hashCode()
Deprecated.Returns a hash code.abstract void
Deprecated.Called to initialize the palette's color indexesvoid
Deprecated.Inverts Paletteboolean
Deprecated.Returns the inverse flag.boolean
Deprecated.Returns the log-scale flag.boolean
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
(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
(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:
clone
in classObject
- Returns:
- A clone.
- Throws:
CloneNotSupportedException
- never.
-
XYPlot
andXYBlockRenderer
.