Class Rotate
- java.lang.Object
- 
- org.apache.tools.ant.ProjectComponent
- 
- org.apache.tools.ant.types.DataType
- 
- org.apache.tools.ant.types.optional.image.ImageOperation
- 
- org.apache.tools.ant.types.optional.image.TransformOperation
- 
- org.apache.tools.ant.types.optional.image.Rotate
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Cloneable,- DrawOperation
 
 public class Rotate extends TransformOperation implements DrawOperation ImageOperation to rotate an image by a certain degree- See Also:
- Image
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected floatangle- 
Fields inherited from class org.apache.tools.ant.types.optional.image.ImageOperationinstructions
 - 
Fields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
 
- 
 - 
Constructor SummaryConstructors Constructor Description Rotate()
 - 
Method SummaryModifier and Type Method Description javax.media.jai.PlanarImageexecuteDrawOperation()Performs the image rotation when being handled as a DrawOperation.javax.media.jai.PlanarImageexecuteTransformOperation(javax.media.jai.PlanarImage image)Performs the image rotation when being handled as a TransformOperation.javax.media.jai.PlanarImageperformRotate(javax.media.jai.PlanarImage image)Rotate an image.voidsetAngle(java.lang.String ang)Sets the angle of rotation in degrees.- 
Methods inherited from class org.apache.tools.ant.types.optional.image.TransformOperationaddRectangle
 - 
Methods inherited from class org.apache.tools.ant.types.optional.image.ImageOperationaddDraw, addRotate, addScale, addText
 - 
Methods inherited from class org.apache.tools.ant.types.DataTypecheckAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
 - 
Methods inherited from class org.apache.tools.ant.ProjectComponentgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
- 
 
- 
- 
- 
Method Detail- 
setAnglepublic void setAngle(java.lang.String ang) Sets the angle of rotation in degrees.- Parameters:
- ang- The angle at which to rotate the image
 
 - 
performRotatepublic javax.media.jai.PlanarImage performRotate(javax.media.jai.PlanarImage image) Rotate an image.- Parameters:
- image- the image to rotate.
- Returns:
- the rotated image.
 
 - 
executeTransformOperationpublic javax.media.jai.PlanarImage executeTransformOperation(javax.media.jai.PlanarImage image) Performs the image rotation when being handled as a TransformOperation.- Specified by:
- executeTransformOperationin class- TransformOperation
- Parameters:
- image- The image to perform the transformation on.
- Returns:
- the transformed image.
 
 - 
executeDrawOperationpublic javax.media.jai.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:
- executeDrawOperationin interface- DrawOperation
- Returns:
- the image.
 
 
- 
 
-