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

Class Text

public class Text extends ImageOperation implements DrawOperation

See Also: Image

Method Summary
PlanarImageexecuteDrawOperation()
Draw the text.
voidsetBold(boolean state)
voidsetColor(String c)
Set the color of the text.
voidsetFont(String f)
Set the font to be used to draw the text.
voidsetItalic(boolean state)
voidsetPoint(String p)
Set the number of points to be used.
voidsetString(String str)
Set the string to be used as text.

Method Detail

executeDrawOperation

public PlanarImage executeDrawOperation()
Draw the text.

Returns: the resultant image.

setBold

public void setBold(boolean state)

Parameters: state not used at the moment.

UNKNOWN: 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.

UNKNOWN: 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.