Class Rotate

    • Field Detail

      • angle

        protected float angle
    • Constructor Detail

      • Rotate

        public Rotate()
    • Method Detail

      • setAngle

        public void setAngle​(java.lang.String ang)
        Sets the angle of rotation in degrees.
        ang - The angle at which to rotate the image
      • performRotate

        public performRotate​( image)
        Rotate an image.
        image - the image to rotate.
        the rotated image.
      • executeTransformOperation

        public executeTransformOperation​( image)
        Performs the image rotation when being handled as a TransformOperation.
        Specified by:
        executeTransformOperation in class TransformOperation
        image - The image to perform the transformation on.
        the transformed image.
      • executeDrawOperation

        public executeDrawOperation()
        Performs the image rotation when being handled as a DrawOperation. It absolutely requires that there be a DrawOperation nested beneath it, but only the FIRST DrawOperation will be handled since it can only return ONE image.
        Specified by:
        executeDrawOperation in interface DrawOperation
        the image.