Package 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 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 Description PaintItem(double value, java.awt.Paint paint)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.private void
readObject(java.io.ObjectInputStream stream)
Provides serialization support.private void
writeObject(java.io.ObjectOutputStream stream)
Provides serialization support.
-
-
-
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.
-
-
Method Detail
-
compareTo
public int compareTo(java.lang.Object obj)
Compares this item to an arbitrary object.- Specified by:
compareTo
in interfacejava.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 classjava.lang.Object
- Parameters:
obj
- the object (null
permitted).- Returns:
- A boolean.
-
writeObject
private void writeObject(java.io.ObjectOutputStream stream) throws java.io.IOException
Provides serialization support.- Parameters:
stream
- the output stream.- Throws:
java.io.IOException
- if there is an I/O error.
-
readObject
private void readObject(java.io.ObjectInputStream stream) throws java.io.IOException, java.lang.ClassNotFoundException
Provides serialization support.- Parameters:
stream
- the input stream.- Throws:
java.io.IOException
- if there is an I/O error.java.lang.ClassNotFoundException
- if there is a classpath problem.
-
-