org.apache.tools.ant.types.optional.image
Class Rotate
- Cloneable, DrawOperation
ImageOperation to rotate an image by a certain degree
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(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, setChecked, setRefid, toString, tooManyAttributes |
angle
protected float angle
executeDrawOperation
public PlanarImage 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.
- executeDrawOperation in interface DrawOperation
executeTransformOperation
public PlanarImage executeTransformOperation(PlanarImage image)
Performs the image rotation when being handled as a TransformOperation.
- executeTransformOperation in interface TransformOperation
image - The image to perform the transformation on.
performRotate
public PlanarImage performRotate(PlanarImage image)
Rotate an image.
image - the image to rotate.
setAngle
public void setAngle(String ang)
Sets the angle of rotation in degrees.
ang - The angle at which to rotate the image