Module BaseDoc :: Class DrawDoc
[frames] | no frames]

Class DrawDoc

source code

Abstract Interface for graphical document generators. Output formats for graphical reports must implment this interface to be used by the report system.

Instance Methods
 
start_page(self) source code
 
end_page(self) source code
 
get_usable_width(self)
Return the width of the text area in centimeters.
source code
 
get_usable_height(self)
Return the height of the text area in centimeters.
source code
 
string_width(self, fontstyle, text)
Determine the width need for text in given font
source code
 
draw_path(self, style, path) source code
 
draw_box(self, style, text, x, y, w, h) source code
 
draw_text(self, style, text, x1, y1) source code
 
center_text(self, style, text, x1, y1) source code
 
rotate_text(self, style, text, x, y, angle) source code
 
draw_line(self, style, x1, y1, x2, y2) source code
Method Details

get_usable_width(self)

source code 

Return the width of the text area in centimeters. The value is the page width less the margins.

get_usable_height(self)

source code 

Return the height of the text area in centimeters. The value is the page height less the margins.