Trees | Index | Help |
---|
Package Bio :: Package Graphics :: Module BasicChromosome :: Class ChromosomeSegment |
|
PropHolder
--+ |_DrawTimeResizeable
--+ | | |UserNode
--+ |Widget
--+ |_ChromosomeComponent
--+ | ChromosomeSegment
TelomereSegment
Draw a segment of a chromosome.
This class provides the important configurable functionality of drawing a Chromosome. Each segment has some customization available here, or can be subclassed to define additional functionality. Most of the interesting drawing stuff is likely to happen at the ChromosomeSegment level.Method Summary | |
---|---|
Initialize a ChromosomeSegment. | |
Draw a chromosome segment. | |
Add a label to the chromosome segment. | |
Draw the current chromosome segment. | |
Draw any subcomponents of the chromosome segment. | |
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 | |
---|---|
Inherited from PropHolder | |
NoneType |
_attrMap = None |
Method Details |
---|
__init__(self)
|
draw(self, cur_drawing)Draw a chromosome segment. Before drawing, the range we are drawing in needs to be set. |
_draw_label(self, cur_drawing)Add a label to the chromosome segment. |
_draw_segment(self, cur_drawing)Draw the current chromosome segment. |
_draw_subcomponents(self, cur_drawing)Draw any subcomponents of the chromosome segment. This should be overridden in derived classes if there are subcomponents to be drawn. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Mon Aug 27 16:43:46 2007 | http://epydoc.sf.net |