Class Rotate
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
org.apache.tools.ant.types.optional.imageio.ImageOperation
org.apache.tools.ant.types.optional.imageio.TransformOperation
org.apache.tools.ant.types.optional.imageio.Rotate
- All Implemented Interfaces:
- Cloneable,- DrawOperation
ImageOperation to rotate an image by a certain degree
- See Also:
- 
Field SummaryFields inherited from class org.apache.tools.ant.types.optional.imageio.ImageOperationinstructionsFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionPerforms the image rotation when being handled as a DrawOperation.Performs the image rotation when being handled as a TransformOperation.performRotate(BufferedImage image) Rotate an image.voidSets the angle of rotation in degrees.Methods inherited from class org.apache.tools.ant.types.optional.imageio.ImageOperationaddDraw, addRotate, addScaleMethods 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, toStringMethods inherited from class org.apache.tools.ant.ProjectComponentgetDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
- 
Constructor Details- 
Rotatepublic Rotate()
 
- 
- 
Method Details- 
setAngleSets the angle of rotation in degrees.- Parameters:
- ang- The angle at which to rotate the image
 
- 
performRotateRotate an image.- Parameters:
- image- the image to rotate.
- Returns:
- the rotated image.
 
- 
executeTransformOperationPerforms 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.
 
- 
executeDrawOperationPerforms 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.
 
 
-