public class Rotate extends TransformOperation implements DrawOperation
ImageIOTaskinstructionsdescription, 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, addScalecheckAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toStringgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectpublic 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 TransformOperationimage - The image to perform the transformation on.public java.awt.image.BufferedImage executeDrawOperation()
executeDrawOperation in interface DrawOperation