org.jfree.chart.renderer

## Class LookupPaintScale.PaintItem

- java.lang.Object
- - org.jfree.chart.renderer.LookupPaintScale.PaintItem

- All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable
  Enclosing class:
    LookupPaintScale

      static class LookupPaintScale.PaintItem
      extends java.lang.Object
      implements java.lang.Comparable, java.io.Serializable

  Stores the paint for a value.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `(package private) java.awt.Paint` | `paint` The paint.
    `(package private) static long` | `serialVersionUID` For serialization.
    `(package private) double` | `value` The value.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PaintItem(double value, java.awt.Paint paint)` Creates a new instance.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(java.lang.Object obj)` Compares this item to an arbitrary object.
    `boolean` | `equals(java.lang.Object obj)` Tests this item for equality with an arbitrary object.

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### serialVersionUID

          static final long serialVersionUID

      For serialization.
      See Also:
        Constant Field Values

    - #### value

          double value

      The value.

    - #### paint

          transient java.awt.Paint paint

      The paint.

  - ### Constructor Detail

    - #### PaintItem

          public PaintItem(double value,
                           java.awt.Paint paint)

      Creates a new instance.
      Parameters:
        `value` - the value.
        `paint` - the paint.

  - ### Method Detail

    - #### compareTo

          public int compareTo(java.lang.Object obj)

      Compares this item to an arbitrary object.
      Specified by:
        `compareTo` in interface `java.lang.Comparable`
      Parameters:
        `obj` - the object.
      Returns:
        An int defining the relative order of the objects.

    - #### equals

          public boolean equals(java.lang.Object obj)

      Tests this item for equality with an arbitrary object.
      Overrides:
        `equals` in class `java.lang.Object`
      Parameters:
        `obj` - the object (`null` permitted).
      Returns:
        A boolean.