
Public Member Functions | |
| draw ($text) | |
| __construct ($size) | |
| drawCraracter ($angle, $x, $y, $character) | |
| |
Public Attributes | |
| const | SPACE_RATIO = 10 |
Protected Member Functions | |
| getSize () | |
| showError () | |
| |
| getTextWidth ($string) | |
| getStringWidth ($string) | |
| getStringHeight ($string) | |
| getMaxCharacterHeight () | |
| getSpace () | |
Private Member Functions | |
| getFont () | |
Private Attributes | |
| $size = null | |
Definition at line 16 of file TextDrawer.class.php.
| TextDrawer::__construct | ( | $ | size | ) |
| TextDrawer::draw | ( | $ | text | ) | [abstract] |
Reimplemented in CurvedStringDrawer, InclinedStringDrawer, and LinearStringDrawer.
| TextDrawer::drawCraracter | ( | $ | angle, | |
| $ | x, | |||
| $ | y, | |||
| $ | character | |||
| ) |
Definition at line 32 of file TextDrawer.class.php.
References getFont(), and Drawer::getTuringImage().
Referenced by LinearStringDrawer::draw(), InclinedStringDrawer::draw(), and CurvedStringDrawer::draw().

| TextDrawer::getSize | ( | ) | [protected] |
Definition at line 50 of file TextDrawer.class.php.
Referenced by CurvedStringDrawer::draw(), and getSpace().
| TextDrawer::showError | ( | ) | [protected] |
Definition at line 58 of file TextDrawer.class.php.
References Drawer::getTuringImage().
Referenced by LinearStringDrawer::draw(), InclinedStringDrawer::draw(), and CurvedStringDrawer::draw().

| 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().

| 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().

| TextDrawer::getStringHeight | ( | $ | string | ) | [protected] |
Definition at line 85 of file TextDrawer.class.php.
References getFont().
Referenced by getMaxCharacterHeight().

| TextDrawer::getMaxCharacterHeight | ( | ) | [protected] |
Definition at line 92 of file TextDrawer.class.php.
References getStringHeight().
Referenced by LinearStringDrawer::draw(), InclinedStringDrawer::draw(), and CurvedStringDrawer::draw().

| 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().

| TextDrawer::getFont | ( | ) | [private] |
Definition at line 102 of file TextDrawer.class.php.
References Drawer::getTuringImage().
Referenced by drawCraracter(), getStringHeight(), and getStringWidth().

| const TextDrawer::SPACE_RATIO = 10 |
TextDrawer::$size = null [private] |
Definition at line 20 of file TextDrawer.class.php.
Referenced by __construct(), and CurvedStringDrawer::draw().
1.5.4