java.lang.Cloneable
public class Draw extends TransformOperation
Image
Modifier and Type | Field | Description |
---|---|---|
protected int |
xloc |
|
protected int |
yloc |
instructions
description, location, project
Constructor | Description |
---|---|
Draw() |
Modifier and Type | Method | 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.
|
javax.media.jai.PlanarImage |
executeTransformOperation(javax.media.jai.PlanarImage image) |
Performs the transformations.
|
void |
setXloc(int x) |
Set the X location.
|
void |
setYloc(int y) |
Set the Y location.
|
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, setRefid, tooManyAttributes, toString
addDraw, addRotate, addScale
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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 addRectangle(Rectangle rect)
addRectangle
in class TransformOperation
rect
- the rectangle to add.public void addText(Text text)
addText
in class ImageOperation
text
- the text to add.public void addEllipse(Ellipse elip)
elip
- the ellipse to add.public void addArc(Arc arc)
arc
- the arc to add.public javax.media.jai.PlanarImage executeTransformOperation(javax.media.jai.PlanarImage image)
executeTransformOperation
in class TransformOperation
image
- The image to perform the transformation on.