Text Methods

Text(anchorPoint, string)
Constructs a text object that displays the given string centered at anchorPoint. The text is displayed horizontally.
setText(string)
Sets the text of the object to string.
getText()
Returns the current string.
getAnchor()
Returns a clone of the anchor point.
setFace(family)
Changes the font face to the given family. Possible values are 'helvetica', 'courier', 'times roman', and 'arial'.

setSize(point)
Changes the font size to the given point size. Sizes from 5 to 36 points are legal.
setStyle(style)
Changes font to the given style. Possible values are: 'normal', 'bold', 'italic', and 'bold italic'.

setTextColor(color)
Sets the color of the text to color. Note: setFill has the same effect.



John Zelle 2010-08-29