Package org.jfree.chart.plot
Class DatasetRenderingOrder
- java.lang.Object
-
- org.jfree.chart.plot.DatasetRenderingOrder
-
- All Implemented Interfaces:
java.io.Serializable
public final class DatasetRenderingOrder extends java.lang.Object implements java.io.Serializable
Defines the tokens that indicate the rendering order for datasets in aCategoryPlot
or anXYPlot
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DatasetRenderingOrder
FORWARD
Render datasets in the order 0, 1, 2, ..., N-1, where N is the number of datasets.private java.lang.String
name
The name.static DatasetRenderingOrder
REVERSE
Render datasets in the order N-1, N-2, ..., 2, 1, 0, where N is the number of datasets.private static long
serialVersionUID
For serialization.
-
Constructor Summary
Constructors Modifier Constructor Description private
DatasetRenderingOrder(java.lang.String name)
Private constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Returnstrue
if this object is equal to the specified object, andfalse
otherwise.int
hashCode()
Returns a hash code for this instance.private java.lang.Object
readResolve()
Ensures that serialization returns the unique instances.java.lang.String
toString()
Returns a string representing the object.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
For serialization.- See Also:
- Constant Field Values
-
FORWARD
public static final DatasetRenderingOrder FORWARD
Render datasets in the order 0, 1, 2, ..., N-1, where N is the number of datasets.
-
REVERSE
public static final DatasetRenderingOrder REVERSE
Render datasets in the order N-1, N-2, ..., 2, 1, 0, where N is the number of datasets.
-
name
private final java.lang.String name
The name.
-
-
Method Detail
-
toString
public java.lang.String toString()
Returns a string representing the object.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string (never
null
).
-
equals
public boolean equals(java.lang.Object obj)
Returnstrue
if this object is equal to the specified object, andfalse
otherwise.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- the object (null
permitted).- Returns:
- A boolean.
-
hashCode
public int hashCode()
Returns a hash code for this instance.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- A hash code.
-
readResolve
private java.lang.Object readResolve() throws java.io.ObjectStreamException
Ensures that serialization returns the unique instances.- Returns:
- The object.
- Throws:
java.io.ObjectStreamException
- if there is a problem.
-
-