Class Rotation

    • Field Detail

      • CLOCKWISE

        public static final Rotation CLOCKWISE
        Clockwise.
      • ANTICLOCKWISE

        public static final Rotation ANTICLOCKWISE
        The reverse order renders the primary dataset first.
    • Method Detail

      • toString

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

        public double getFactor()
        Returns the rotation factor, which is -1.0 for CLOCKWISE and 1.0 for ANTICLOCKWISE.
        Returns:
        the rotation factor.
      • equals

        public boolean equals​(Object o)
        Compares this object for equality with an other object. Implementation note: This simply compares the factor instead of the name.
        Overrides:
        equals in class Object
        Parameters:
        o - the other object
        Returns:
        true or false
      • hashCode

        public int hashCode()
        Returns a hash code value for the object.
        Overrides:
        hashCode in class Object
        Returns:
        the hashcode