Trees | Index | Help |
---|
Package Bio :: Package Graphics :: Module BasicChromosome :: Class Organism |
|
PropHolder
--+ |_DrawTimeResizeable
--+ | | |UserNode
--+ |Widget
--+ |_ChromosomeComponent
--+ | Organism
Top level class for drawing chromosomes.
This class holds information about an organism and all of it's chromosomes, and provides the top level object which could be used for drawing a chromosome representation of an organism.
Chromosomes should be added and removed from the Organism via the add and remove functions.Method Summary | |
---|---|
Initialize a chromosome component. | |
Draw out the information for the Organism. | |
Draw a legend for the figure. | |
Write out the title of the organism figure. | |
Inherited from _ChromosomeComponent | |
Add a sub_component to the list of components under this item. | |
Remove the specified component from the subcomponents. | |
Inherited from Widget | |
| |
Return outer boundary as x1,y1,x2,y2. | |
Override this to create your own node. | |
Inherited from PropHolder | |
By default we verify. | |
Convenience. | |
Returns a list of all properties which can be edited and which are not marked as private. | |
Permits bulk setting of properties. | |
If the _attrMap attribute is not None, this checks all expected attributes are present; no unwanted attributes are present; and (if a checking function is found) checks each attribute has a valid value. | |
Inherited from _DrawTimeResizeable | |
|
Class Variable Summary | |
---|---|
list |
VALID_FORMATS = ['pdf', 'eps']
|
Inherited from PropHolder | |
NoneType |
_attrMap = None |
Method Details |
---|
__init__(self,
output_format='pdf')
|
draw(self, output_file, title)Draw out the information for the Organism. Arguments: o output_file -- The name of a file specifying where the pdf document drawn should be saved. o title -- The output title of the produced document. |
_draw_legend(self, cur_drawing, start_y, width)Draw a legend for the figure. Subclasses should implement this to provide specialized legends. |
_draw_title(self, cur_drawing, title, width, height)Write out the title of the organism figure. |
Class Variable Details |
---|
VALID_FORMATS
|
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Aug 27 16:43:45 2007 | http://epydoc.sf.net |