public class Draw extends TransformOperation
ImageIOTask
instructions
description, location, project
Constructor and Description |
---|
Draw() |
Modifier and Type | Method and Description |
---|---|
void |
addArc(Arc arc)
Add an arc.
|
void |
addEllipse(Ellipse elip)
Add an ellipse.
|
void |
addRectangle(Rectangle rect)
Add a rectangle to the operation.
|
void |
addText(Text text)
Add text to the operation.
|
java.awt.image.BufferedImage |
executeTransformOperation(java.awt.image.BufferedImage bi)
Performs the transformations.
|
void |
setXloc(int x)
Set the X location.
|
void |
setYloc(int y)
Set the Y location.
|
addDraw, addRotate, addScale
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
public void setXloc(int x)
x
- the value to use.public void setYloc(int y)
y
- the value to use.public void addText(Text text)
text
- the text to add.public void addRectangle(Rectangle rect)
rect
- the rectangle to add.public void addEllipse(Ellipse elip)
elip
- the ellipse to add.public void addArc(Arc arc)
arc
- the arc to add.public java.awt.image.BufferedImage executeTransformOperation(java.awt.image.BufferedImage bi)
executeTransformOperation
in class TransformOperation
bi
- The image to perform the transformation on.