org.apache.tools.ant.types.optional.image

Class Rotate

Implemented Interfaces:
DrawOperation

public class Rotate
extends TransformOperation
implements DrawOperation

ImageOperation to rotate an image by a certain degree
See Also:
Image

Field Summary

protected float
angle

Fields inherited from class org.apache.tools.ant.types.optional.image.ImageOperation

instructions

Fields inherited from class org.apache.tools.ant.types.DataType

checked, description, ref

Fields inherited from class org.apache.tools.ant.ProjectComponent

project

Method Summary

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.

Methods inherited from class org.apache.tools.ant.types.optional.image.TransformOperation

addRectangle, executeTransformOperation

Methods inherited from class org.apache.tools.ant.types.optional.image.ImageOperation

addDraw, addRectangle, addRotate, addScale, addText

Methods inherited from class org.apache.tools.ant.types.DataType

checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, getCheckedRef, getDescription, getRefid, isChecked, isReference, noChildrenAllowed, setChecked, setDescription, setRefid, tooManyAttributes

Methods inherited from class org.apache.tools.ant.ProjectComponent

getProject, log, log, setProject

Field Details

angle

protected float angle

Method Details

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.
Specified by:
executeDrawOperation in interface DrawOperation

executeTransformOperation

public PlanarImage executeTransformOperation(PlanarImage image)
Performs the image rotation when being handled as a TransformOperation.
Overrides:
executeTransformOperation in interface TransformOperation
Parameters:
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.
Parameters:
ang - The angle at which to rotate the image

Copyright B) 2000-2007 Apache Software Foundation. All Rights Reserved.