TextDrawer Class Reference
[CAPTCHA's implementation]

Inheritance diagram for TextDrawer:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 draw ($text)
 __construct ($size)
 drawCraracter ($angle, $x, $y, $character)
 
Returns:
TextDrawer


Public Attributes

const SPACE_RATIO = 10

Protected Member Functions

 getSize ()
 showError ()
 
Returns:
TextDrawer

 getTextWidth ($string)
 getStringWidth ($string)
 getStringHeight ($string)
 getMaxCharacterHeight ()
 getSpace ()

Private Member Functions

 getFont ()

Private Attributes

 $size = null


Detailed Description

Definition at line 16 of file TextDrawer.class.php.


Constructor & Destructor Documentation

TextDrawer::__construct ( size  ) 

Definition at line 24 of file TextDrawer.class.php.

References $size.


Member Function Documentation

TextDrawer::draw ( text  )  [abstract]

Reimplemented in CurvedStringDrawer, InclinedStringDrawer, and LinearStringDrawer.

TextDrawer::drawCraracter ( angle,
x,
y,
character 
)

Returns:
TextDrawer

Definition at line 32 of file TextDrawer.class.php.

References getFont(), and Drawer::getTuringImage().

Referenced by LinearStringDrawer::draw(), InclinedStringDrawer::draw(), and CurvedStringDrawer::draw().

Here is the call graph for this function:

TextDrawer::getSize (  )  [protected]

Definition at line 50 of file TextDrawer.class.php.

Referenced by CurvedStringDrawer::draw(), and getSpace().

TextDrawer::showError (  )  [protected]

Returns:
TextDrawer

Definition at line 58 of file TextDrawer.class.php.

References Drawer::getTuringImage().

Referenced by LinearStringDrawer::draw(), InclinedStringDrawer::draw(), and CurvedStringDrawer::draw().

Here is the call graph for this function:

TextDrawer::getTextWidth ( string  )  [protected]

Definition at line 66 of file TextDrawer.class.php.

References getSpace(), and getStringWidth().

Referenced by LinearStringDrawer::draw(), InclinedStringDrawer::draw(), and CurvedStringDrawer::draw().

Here is the call graph for this function:

TextDrawer::getStringWidth ( string  )  [protected]

Definition at line 78 of file TextDrawer.class.php.

References getFont().

Referenced by LinearStringDrawer::draw(), InclinedStringDrawer::draw(), CurvedStringDrawer::draw(), and getTextWidth().

Here is the call graph for this function:

TextDrawer::getStringHeight ( string  )  [protected]

Definition at line 85 of file TextDrawer.class.php.

References getFont().

Referenced by getMaxCharacterHeight().

Here is the call graph for this function:

TextDrawer::getMaxCharacterHeight (  )  [protected]

Definition at line 92 of file TextDrawer.class.php.

References getStringHeight().

Referenced by LinearStringDrawer::draw(), InclinedStringDrawer::draw(), and CurvedStringDrawer::draw().

Here is the call graph for this function:

TextDrawer::getSpace (  )  [protected]

Definition at line 97 of file TextDrawer.class.php.

References getSize(), and SPACE_RATIO.

Referenced by LinearStringDrawer::draw(), InclinedStringDrawer::draw(), and getTextWidth().

Here is the call graph for this function:

TextDrawer::getFont (  )  [private]

Definition at line 102 of file TextDrawer.class.php.

References Drawer::getTuringImage().

Referenced by drawCraracter(), getStringHeight(), and getStringWidth().

Here is the call graph for this function:


Member Data Documentation

const TextDrawer::SPACE_RATIO = 10

Definition at line 18 of file TextDrawer.class.php.

Referenced by getSpace().

TextDrawer::$size = null [private]

Definition at line 20 of file TextDrawer.class.php.

Referenced by __construct(), and CurvedStringDrawer::draw().


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:58:35 2007 for onPHP by  doxygen 1.5.4