DrawOperationpublic class Rotate extends TransformOperation implements DrawOperation
Image| Modifier and Type | Field | Description |
|---|---|---|
protected float |
angle |
instructionsdescription, location, project| Constructor | Description |
|---|---|
Rotate() |
| Modifier and Type | Method | Description |
|---|---|---|
PlanarImage |
executeDrawOperation() |
Performs the image rotation when being handled as a DrawOperation.
|
PlanarImage |
executeTransformOperation(PlanarImage image) |
Performs the image rotation when being handled as a TransformOperation.
|
PlanarImage |
performRotate(PlanarImage image) |
Rotate an image.
|
void |
setAngle(java.lang.String ang) |
Sets the angle of rotation in degrees.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toStringaddDraw, addRotate, addScale, addTextequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProjectaddRectanglepublic void setAngle(java.lang.String ang)
ang - The angle at which to rotate the imagepublic PlanarImage performRotate(PlanarImage image)
image - the image to rotate.public PlanarImage executeTransformOperation(PlanarImage image)
executeTransformOperation in class TransformOperationimage - The image to perform the transformation on.public PlanarImage executeDrawOperation()
executeDrawOperation in interface DrawOperation