Class Text
- 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.Text
-
- All Implemented Interfaces:
java.lang.Cloneable,DrawOperation
public class Text extends ImageOperation implements DrawOperation
- See Also:
ImageIOTask
-
-
Field Summary
-
Fields inherited from class org.apache.tools.ant.types.optional.imageio.ImageOperation
instructions
-
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
-
Constructor Summary
Constructors Constructor Description Text()
-
Method Summary
Modifier and Type Method Description java.awt.image.BufferedImageexecuteDrawOperation()Draw the text.voidsetBold(boolean state)voidsetColor(java.lang.String c)Set the color of the text.voidsetFont(java.lang.String f)Set the font to be used to draw the text.voidsetItalic(boolean state)voidsetPoint(java.lang.String p)Set the number of points to be used.voidsetString(java.lang.String str)Set the string to be used as text.-
Methods inherited from class org.apache.tools.ant.types.optional.imageio.ImageOperation
addDraw, addRotate, addScale
-
Methods 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, toString
-
Methods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
-
-
-
-
Method Detail
-
setString
public void setString(java.lang.String str)
Set the string to be used as text.- Parameters:
str- the string to be used.
-
setFont
public void setFont(java.lang.String f)
Set the font to be used to draw the text.- Parameters:
f- the font to be used.
-
setPoint
public void setPoint(java.lang.String p)
Set the number of points to be used.- Parameters:
p- an integer value as a string.
-
setColor
public void setColor(java.lang.String c)
Set the color of the text.- Parameters:
c- the color name.
-
setBold
public void setBold(boolean state)
- Parameters:
state- not used at the moment.- To do:
- is this used?
-
setItalic
public void setItalic(boolean state)
- Parameters:
state- not used at the moment.- To do:
- is this used?
-
executeDrawOperation
public java.awt.image.BufferedImage executeDrawOperation()
Draw the text.- Specified by:
executeDrawOperationin interfaceDrawOperation- Returns:
- the resultant image.
-
-