org.jfree.chart.plot
Class ColorPalette
- java.lang.Object
-
- org.jfree.chart.plot.ColorPalette
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- GreyPalette, RainbowPalette
Deprecated.This class is no longer supported (as of version 1.0.4). If you are creating contour plots, please try to useXYPlotandXYBlockRenderer.
public abstract class ColorPalette extends java.lang.Object implements java.lang.Cloneable, java.io.SerializableDefines palette used byContourPlot.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ColorPalette()Deprecated.Default contructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description java.lang.Objectclone()Deprecated.Returns a clone of the palette.booleanequals(java.lang.Object o)Deprecated.Tests an object for equality with this instance.java.awt.PaintgetColor(double value)Deprecated.Returns the color associated with a value.java.awt.ColorgetColor(int izV)Deprecated.Returns a color.java.awt.ColorgetColorLinear(double value)Deprecated.Returns Color by mapping a given value to a linear palette.java.awt.ColorgetColorLog(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.java.awt.PaintgetPaint(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.StringgetPaletteName()Deprecated.Returns the palette name.double[]getTickValues()Deprecated.Returns the tick values.inthashCode()Deprecated.Returns a hash code.abstract voidinitialize()Deprecated.Called to initialize the palette's color indexesvoidinvertPalette()Deprecated.Inverts PalettebooleanisInverse()Deprecated.Returns the inverse flag.booleanisLogscale()Deprecated.Returns the log-scale flag.booleanisStepped()Deprecated.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(java.lang.String paletteName)Deprecated.Sets the palette name.voidsetStepped(boolean stepped)Deprecated.Sets the stepped flag.voidsetTickValues(double[] newTickValues)Deprecated.Sets the tick values.voidsetTickValues(java.util.List ticks)Deprecated.Store ticks.
-
-
-
Method Detail
-
getColor
public java.awt.Paint getColor(double value)
Deprecated.Returns the color associated with a value.- Parameters:
value- the value.- Returns:
- The color.
-
getColor
public java.awt.Color getColor(int izV)
Deprecated.Returns a color.- Parameters:
izV- the index into the palette (zero based).- Returns:
- The color.
-
getColorLinear
public java.awt.Color getColorLinear(double value)
Deprecated.Returns Color by mapping a given value to a linear palette.- Parameters:
value- the value.- Returns:
- The color.
-
getColorLog
public java.awt.Color getColorLog(double value)
Deprecated.Returns Color by mapping a given value to a common log palette.- Parameters:
value- the value.- Returns:
- The color.
-
getMaxZ
public double getMaxZ()
Deprecated.Returns the maximum Z value.- Returns:
- The value.
-
getMinZ
public double getMinZ()
Deprecated.Returns the minimum Z value.- Returns:
- The value.
-
getPaint
public 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.- Parameters:
value- the value.- Returns:
- The paint.
-
getPaletteName
public java.lang.String getPaletteName()
Deprecated.Returns the palette name.- Returns:
- The palette name.
-
getTickValues
public double[] getTickValues()
Deprecated.Returns the tick values.- Returns:
- The tick values.
-
initialize
public abstract void initialize()
Deprecated.Called to initialize the palette's color indexes
-
invertPalette
public void invertPalette()
Deprecated.Inverts Palette
-
isInverse
public boolean isInverse()
Deprecated.Returns the inverse flag.- Returns:
- The flag.
-
isLogscale
public boolean isLogscale()
Deprecated.Returns the log-scale flag.- Returns:
- The flag.
-
isStepped
public boolean isStepped()
Deprecated.Returns the 'is-stepped' flag.- Returns:
- The flag.
-
setInverse
public void setInverse(boolean inverse)
Deprecated.Sets the inverse flag.- Parameters:
inverse- the new value.
-
setLogscale
public void setLogscale(boolean logscale)
Deprecated.Sets the 'log-scale' flag.- Parameters:
logscale- the new value.
-
setMaxZ
public void setMaxZ(double newMaxZ)
Deprecated.Sets the maximum Z value.- Parameters:
newMaxZ- the new value.
-
setMinZ
public void setMinZ(double newMinZ)
Deprecated.Sets the minimum Z value.- Parameters:
newMinZ- the new value.
-
setPaletteName
public void setPaletteName(java.lang.String paletteName)
Deprecated.Sets the palette name.- Parameters:
paletteName- the name.
-
setStepped
public void setStepped(boolean stepped)
Deprecated.Sets the stepped flag.- Parameters:
stepped- the flag.
-
setTickValues
public void setTickValues(double[] newTickValues)
Deprecated.Sets the tick values.- Parameters:
newTickValues- the tick values.
-
setTickValues
public void setTickValues(java.util.List ticks)
Deprecated.Store ticks. Required when doing stepped axis- Parameters:
ticks- the ticks.
-
equals
public boolean equals(java.lang.Object o)
Deprecated.Tests an object for equality with this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
o- the object to test.- Returns:
- A boolean.
-
hashCode
public int hashCode()
Deprecated.Returns a hash code.- Overrides:
hashCodein classjava.lang.Object- Returns:
- A hash code.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionDeprecated.Returns a clone of the palette.- Overrides:
clonein classjava.lang.Object- Returns:
- A clone.
- Throws:
java.lang.CloneNotSupportedException- never.
-
-
DMelt 3.0 © DataMelt by jWork.ORG