Class Draw
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.Draw
- All Implemented Interfaces:
- Cloneable
- 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 TypeMethodDescriptionvoidAdd an arc.voidaddEllipse(Ellipse elip) Add an ellipse.voidaddRectangle(Rectangle rect) Add a rectangle to the operation.voidAdd text to the operation.Performs the transformations.voidsetXloc(int x) Set the X location.voidsetYloc(int y) Set the Y location.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- 
Drawpublic Draw()
 
- 
- 
Method Details- 
setXlocpublic void setXloc(int x) Set the X location.- Parameters:
- x- the value to use.
 
- 
setYlocpublic void setYloc(int y) Set the Y location.- Parameters:
- y- the value to use.
 
- 
addTextAdd text to the operation.- Parameters:
- text- the text to add.
 
- 
addRectangleAdd a rectangle to the operation.- Parameters:
- rect- the rectangle to add.
 
- 
addEllipseAdd an ellipse.- Parameters:
- elip- the ellipse to add.
 
- 
addArcAdd an arc.- Parameters:
- arc- the arc to add.
 
- 
executeTransformOperationPerforms the transformations..- Specified by:
- executeTransformOperationin class- TransformOperation
- Parameters:
- bi- The image to perform the transformation on.
- Returns:
- the transformed image.
 
 
-