Class GrayPaintScale

java.lang.Object
org.jfree.chart.renderer.GrayPaintScale
All Implemented Interfaces:
Serializable, Cloneable, PaintScale, PublicCloneable

public class GrayPaintScale
extends Object
implements PaintScale, PublicCloneable, Serializable
A paint scale that returns shades of gray.
Since:
1.0.4
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    GrayPaintScale()
    Creates a new GrayPaintScale instance with default values.
    GrayPaintScale​(double lowerBound, double upperBound)
    Creates a new paint scale for values in the specified range.
    GrayPaintScale​(double lowerBound, double upperBound, int alpha)
    Creates a new paint scale for values in the specified range.
  • Method Summary

    Modifier and Type Method Description
    Object clone()
    Returns a clone of this GrayPaintScale instance.
    boolean equals​(Object obj)
    Tests this GrayPaintScale instance for equality with an arbitrary object.
    int getAlpha()
    Returns the alpha transparency that was specified in the constructor.
    double getLowerBound()
    Returns the lower bound.
    Paint getPaint​(double value)
    Returns a paint for the specified value.
    double getUpperBound()
    Returns the upper bound.
    int hashCode()
    Returns a hash code for this instance.

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GrayPaintScale

      public GrayPaintScale()
      Creates a new GrayPaintScale instance with default values.
    • GrayPaintScale

      public GrayPaintScale​(double lowerBound, double upperBound)
      Creates a new paint scale for values in the specified range.
      Parameters:
      lowerBound - the lower bound.
      upperBound - the upper bound.
      Throws:
      IllegalArgumentException - if lowerBound is not less than upperBound.
    • GrayPaintScale

      public GrayPaintScale​(double lowerBound, double upperBound, int alpha)
      Creates a new paint scale for values in the specified range.
      Parameters:
      lowerBound - the lower bound.
      upperBound - the upper bound.
      alpha - the alpha transparency (0-255).
      Throws:
      IllegalArgumentException - if lowerBound is not less than upperBound, or alpha is not in the range 0 to 255.
      Since:
      1.0.13
  • Method Details