Class LookupPaintScale.PaintItem

java.lang.Object
org.jfree.chart.renderer.LookupPaintScale.PaintItem
All Implemented Interfaces:
Serializable, Comparable
Enclosing class:
LookupPaintScale

static class LookupPaintScale.PaintItem extends Object implements Comparable, Serializable
Stores the paint for a value.
  • Field Details

    • serialVersionUID

      static final long serialVersionUID
      For serialization.
      See Also:
    • value

      double value
      The value.
    • paint

      transient Paint paint
      The paint.
  • Constructor Details

    • PaintItem

      public PaintItem(double value, Paint paint)
      Creates a new instance.
      Parameters:
      value - the value.
      paint - the paint.
  • Method Details

    • compareTo

      public int compareTo(Object obj)
      Compares this item to an arbitrary object.
      Specified by:
      compareTo in interface Comparable
      Parameters:
      obj - the object.
      Returns:
      An int defining the relative order of the objects.
    • equals

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

      private void writeObject(ObjectOutputStream stream) throws IOException
      Provides serialization support.
      Parameters:
      stream - the output stream.
      Throws:
      IOException - if there is an I/O error.
    • readObject

      private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
      Provides serialization support.
      Parameters:
      stream - the input stream.
      Throws:
      IOException - if there is an I/O error.
      ClassNotFoundException - if there is a classpath problem.