Class DatasetRenderingOrder

java.lang.Object
org.jfree.chart.plot.DatasetRenderingOrder
All Implemented Interfaces:
Serializable

public final class DatasetRenderingOrder extends Object implements Serializable
Defines the tokens that indicate the rendering order for datasets in a CategoryPlot or an XYPlot.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For serialization.
      See Also:
    • 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 String name
      The name.
  • Constructor Details

    • DatasetRenderingOrder

      private DatasetRenderingOrder(String name)
      Private constructor.
      Parameters:
      name - the name.
  • Method Details

    • toString

      public String toString()
      Returns a string representing the object.
      Overrides:
      toString in class Object
      Returns:
      The string (never null).
    • equals

      public boolean equals(Object obj)
      Returns true if this object is equal to the specified object, and false otherwise.
      Overrides:
      equals in class Object
      Parameters:
      obj - the object (null permitted).
      Returns:
      A boolean.
    • hashCode

      public int hashCode()
      Returns a hash code for this instance.
      Overrides:
      hashCode in class Object
      Returns:
      A hash code.
    • readResolve

      private Object readResolve() throws ObjectStreamException
      Ensures that serialization returns the unique instances.
      Returns:
      The object.
      Throws:
      ObjectStreamException - if there is a problem.