public class Rotate extends TransformOperation implements DrawOperation
ImageIOTask
instructions
description, location, project
Constructor and Description |
---|
Rotate() |
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
executeDrawOperation()
Performs the image rotation when being handled as a DrawOperation.
|
java.awt.image.BufferedImage |
executeTransformOperation(java.awt.image.BufferedImage image)
Performs the image rotation when being handled as a TransformOperation.
|
java.awt.image.BufferedImage |
performRotate(java.awt.image.BufferedImage image)
Rotate an image.
|
void |
setAngle(java.lang.String ang)
Sets the angle of rotation in degrees.
|
addDraw, addRotate, addScale
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public void setAngle(java.lang.String ang)
ang
- The angle at which to rotate the imagepublic java.awt.image.BufferedImage performRotate(java.awt.image.BufferedImage image)
image
- the image to rotate.public java.awt.image.BufferedImage executeTransformOperation(java.awt.image.BufferedImage image)
executeTransformOperation
in class TransformOperation
image
- The image to perform the transformation on.public java.awt.image.BufferedImage executeDrawOperation()
executeDrawOperation
in interface DrawOperation