org.apache.tools.ant.types.optional.image

Class Text

Implemented Interfaces:
Cloneable, DrawOperation

public class Text
extends ImageOperation
implements DrawOperation

See Also:
Image

Field Summary

Fields inherited from class org.apache.tools.ant.types.optional.image.ImageOperation

instructions

Fields inherited from class org.apache.tools.ant.types.DataType

checked, ref

Fields inherited from class org.apache.tools.ant.ProjectComponent

description, location, project

Method Summary

PlanarImage
executeDrawOperation()
Draw the text.
void
setBold(boolean state)
void
setColor(String c)
Set the color of the text.
void
setFont(String f)
Set the font to be used to draw the text.
void
setItalic(boolean state)
void
setPoint(String p)
Set the number of points to be used.
void
setString(String str)
Set the string to be used as text.

Methods inherited from class org.apache.tools.ant.types.optional.image.ImageOperation

addDraw, addRectangle, addRotate, addScale, addText

Methods inherited from class org.apache.tools.ant.types.DataType

checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, setRefid, toString, tooManyAttributes

Methods inherited from class org.apache.tools.ant.ProjectComponent

clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject

Method Details

executeDrawOperation

public PlanarImage executeDrawOperation()
Draw the text.
Specified by:
executeDrawOperation in interface DrawOperation
Returns:
the resultant image.

setBold

public void setBold(boolean state)
Parameters:
state - not used at the moment.
To do:
is this used?

setColor

public void setColor(String c)
Set the color of the text.
Parameters:
c - the color name.

setFont

public void setFont(String f)
Set the font to be used to draw the text.
Parameters:
f - the font to be used.

setItalic

public void setItalic(boolean state)
Parameters:
state - not used at the moment.
To do:
is this used?

setPoint

public void setPoint(String p)
Set the number of points to be used.
Parameters:
p - an integer value as a string.

setString

public void setString(String str)
Set the string to be used as text.
Parameters:
str - the string to be used.