class documentation
Undocumented
| Method | __init__ |
No summary |
| Method | draw |
Draw the DRS |
| Constant | BUFFER |
Undocumented |
| Constant | OUTERSPACE |
Undocumented |
| Constant | TOPSPACE |
Undocumented |
| Instance Variable | canvas |
Undocumented |
| Instance Variable | drs |
Undocumented |
| Instance Variable | master |
Undocumented |
| Method | _draw |
Draw the given item at the given location |
| Method | _get |
Get the y-coordinate of the point that a figure should start at if its height is 'item_height' and it needs to be centered in an area that starts at 'top' and is 'full_height' tall. |
| Method | _get |
Get the height of a line of text |
| Method | _handle |
No summary |
| Method | _handle_ |
Undocumented |
| Method | _handle_ |
Undocumented |
| Method | _handle_ |
Undocumented |
| Method | _handle_ |
Undocumented |
| Method | _handle_ |
Undocumented |
| Method | _handle_ |
Undocumented |
| Method | _handle_ |
Undocumented |
| Method | _visit |
Return the bottom-rightmost point without actually drawing the item |
| Method | _visit |
Return the bottom-rightmost point without actually drawing the item |
| Parameters | |
| drs | DrtExpression, The DRS to be drawn |
| size | bool, True if the canvas size should be the exact size of the DRS |
| canvas | Canvas The canvas on which to draw the DRS. If none is given, create a new canvas. |
Draw the given item at the given location
| Parameters | |
| item | the item to draw |
| x | the top of the current drawing area |
| y | the left side of the current drawing area |
| Returns | |
| the bottom-rightmost point | |
Get the y-coordinate of the point that a figure should start at if its height is 'item_height' and it needs to be centered in an area that starts at 'top' and is 'full_height' tall.
| Parameters | |
| expression | the expression to handle |
| command | the function to apply, either _draw_command or _visit_command |
| x | the top of the current drawing area |
| y | the left side of the current drawing area |
| Returns | |
| the bottom-rightmost point | |