Package org.jfree.chart.renderer
Class LookupPaintScale.PaintItem
java.lang.Object
org.jfree.chart.renderer.LookupPaintScale.PaintItem
- All Implemented Interfaces:
Serializable
,Comparable
- Enclosing class:
LookupPaintScale
Stores the paint for a value.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Paint
The paint.(package private) static final long
For serialization.(package private) double
The value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Compares this item to an arbitrary object.boolean
Tests this item for equality with an arbitrary object.private void
readObject
(ObjectInputStream stream) Provides serialization support.private void
writeObject
(ObjectOutputStream stream) Provides serialization support.
-
Field Details
-
serialVersionUID
static final long serialVersionUIDFor serialization.- See Also:
-
value
double valueThe value. -
paint
The paint.
-
-
Constructor Details
-
PaintItem
Creates a new instance.- Parameters:
value
- the value.paint
- the paint.
-
-
Method Details
-
compareTo
Compares this item to an arbitrary object.- Specified by:
compareTo
in interfaceComparable
- Parameters:
obj
- the object.- Returns:
- An int defining the relative order of the objects.
-
equals
Tests this item for equality with an arbitrary object. -
writeObject
Provides serialization support.- Parameters:
stream
- the output stream.- Throws:
IOException
- if there is an I/O error.
-
readObject
Provides serialization support.- Parameters:
stream
- the input stream.- Throws:
IOException
- if there is an I/O error.ClassNotFoundException
- if there is a classpath problem.
-