Save This Page
Home » jcommon-1.0.13 » org.jfree » chart » ui » [javadoc | source]
org.jfree.chart.ui
abstract public class: ColorPalette [javadoc | source]
java.lang.Object
   org.jfree.chart.ui.ColorPalette

All Implemented Interfaces:
    Cloneable, Serializable

Direct Known Subclasses:
    GreyPalette, RainbowPalette

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