Class RotateQuadrantOp


  • public class RotateQuadrantOp
    extends Operation
    Author:
    Fabrizio Giudici
    • Constructor Summary

      Constructors 
      Constructor Description
      RotateQuadrantOp​(int degrees)
      Rotates the image by a quadrant.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getDegrees()  
      java.lang.String toString()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RotateQuadrantOp

        public RotateQuadrantOp​(int degrees)
        Rotates the image by a quadrant. The angle is expressed in degress and can only be a multiple of 90. Rotation is counterclockwise.
        Parameters:
        degree - the rotation angle in degrees
        Throws:
        java.lang.IllegalArgumentException - if degrees is not a multiple of 90
    • Method Detail

      • getDegrees

        public int getDegrees()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object