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.SerializableStores the paint for a value.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.awt.PaintpaintThe paint.(package private) static longserialVersionUIDFor serialization.(package private) doublevalueThe 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 intcompareTo(java.lang.Object obj)Compares this item to an arbitrary object.booleanequals(java.lang.Object obj)Tests this item for equality with an arbitrary object.private voidreadObject(java.io.ObjectInputStream stream)Provides serialization support.private voidwriteObject(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:
compareToin 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:
equalsin classjava.lang.Object- Parameters:
obj- the object (nullpermitted).- Returns:
- A boolean.
-
writeObject
private void writeObject(java.io.ObjectOutputStream stream) throws java.io.IOExceptionProvides 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.ClassNotFoundExceptionProvides 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.
-
-