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) PaintThe paint.(package private) static final longFor serialization.(package private) doubleThe value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompares this item to an arbitrary object.booleanTests this item for equality with an arbitrary object.private voidreadObject(ObjectInputStream stream) Provides serialization support.private voidwriteObject(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:
compareToin 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.
-