org.apache.tools.ant.types.optional.image
Class Rotate
- DrawOperation
ImageOperation to rotate an image by a certain degree
Image
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)
|
void | setAngle(String ang) - Sets the angle of rotation in degrees.
|
checkAttributesAllowed , checkChildrenAllowed , circularReference , dieOnCircularReference , getCheckedRef , getDescription , getRefid , isChecked , isReference , noChildrenAllowed , setChecked , setDescription , setRefid , 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)
setAngle
public void setAngle(String ang)
Sets the angle of rotation in degrees.
ang
- The angle at which to rotate the image
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.