public class Rotate extends TransformOperation implements DrawOperation
Image
Modifier and Type | Field and Description |
---|---|
protected float |
angle |
instructions
description, location, project
Constructor and Description |
---|
Rotate() |
Modifier and Type | Method and Description |
---|---|
javax.media.jai.PlanarImage |
executeDrawOperation()
Performs the image rotation when being handled as a DrawOperation.
|
javax.media.jai.PlanarImage |
executeTransformOperation(javax.media.jai.PlanarImage image)
Performs the image rotation when being handled as a TransformOperation.
|
javax.media.jai.PlanarImage |
performRotate(javax.media.jai.PlanarImage image)
Rotate an image.
|
void |
setAngle(java.lang.String ang)
Sets the angle of rotation in degrees.
|
addRectangle
addDraw, addRotate, addScale, addText
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, 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 javax.media.jai.PlanarImage performRotate(javax.media.jai.PlanarImage image)
image
- the image to rotate.public javax.media.jai.PlanarImage executeTransformOperation(javax.media.jai.PlanarImage image)
executeTransformOperation
in class TransformOperation
image
- The image to perform the transformation on.public javax.media.jai.PlanarImage executeDrawOperation()
executeDrawOperation
in interface DrawOperation