Class Draw
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.Draw
- All Implemented Interfaces:
java.lang.Cloneable
public class Draw extends TransformOperation
- See Also:
Image
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Draw() -
Method Summary
Modifier and Type Method Description voidaddArc(Arc arc)Add an arc.voidaddEllipse(Ellipse elip)Add an ellipse.voidaddRectangle(Rectangle rect)Add a rectangle to the operation.voidaddText(Text text)Add text to the operation.javax.media.jai.PlanarImageexecuteTransformOperation(javax.media.jai.PlanarImage image)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.image.ImageOperation
addDraw, addRotate, addScaleMethods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, 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.ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
-
Field Details
-
Constructor Details
-
Draw
public Draw()
-
-
Method Details
-
setXloc
public void setXloc(int x)Set the X location.- Parameters:
x- the value to use.
-
setYloc
public void setYloc(int y)Set the Y location.- Parameters:
y- the value to use.
-
addRectangle
Add a rectangle to the operation...- Overrides:
addRectanglein classTransformOperation- Parameters:
rect- the rectangle to add.
-
addText
Add text to the operation..- Overrides:
addTextin classImageOperation- Parameters:
text- the text to add.
-
addEllipse
Add an ellipse.- Parameters:
elip- the ellipse to add.
-
addArc
Add an arc.- Parameters:
arc- the arc to add.
-
executeTransformOperation
public javax.media.jai.PlanarImage executeTransformOperation(javax.media.jai.PlanarImage image)Performs the transformations..- Specified by:
executeTransformOperationin classTransformOperation- Parameters:
image- The image to perform the transformation on.- Returns:
- the transformed image.
-