Class 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 a CategoryPlot or an XYPlot.
    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)
      Returns true if this object is equal to the specified object, and false 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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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.
    • Constructor Detail

      • DatasetRenderingOrder

        private DatasetRenderingOrder​(java.lang.String name)
        Private constructor.
        Parameters:
        name - the name.
    • Method Detail

      • toString

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

        public boolean equals​(java.lang.Object obj)
        Returns true if this object is equal to the specified object, and false otherwise.
        Overrides:
        equals in class java.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 class java.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.