Package Bio :: Package Graphics :: Module BasicChromosome :: Class _ChromosomeComponent
[hide private]
[frames] | no frames]

Class _ChromosomeComponent

source code

         reportlab.graphics.widgetbase.PropHolder --+    
                                                    |    
reportlab.graphics.shapes._DrawTimeResizeable --+   |    
                                                |   |    
               reportlab.graphics.shapes.UserNode --+    
                                                    |    
                 reportlab.graphics.widgetbase.Widget --+
                                                        |
                                                       _ChromosomeComponent
Known Subclasses:

Base class specifying the interface for a component of the system.

This class should not be instantiated directly, but should be used
from derived classes.

Instance Methods [hide private]
 
__init__(self)
Initialize a chromosome component.
source code
 
add(self, component)
Add a sub_component to the list of components under this item.
source code
 
remove(self, component)
Remove the specified component from the subcomponents.
source code
 
draw(self)
Draw the specified component.
source code

Inherited from reportlab.graphics.widgetbase.Widget: demo, getBounds, provideNode

Inherited from reportlab.graphics.widgetbase.Widget (private): _setKeywords

Inherited from reportlab.graphics.widgetbase.PropHolder: __setattr__, dumpProperties, getProperties, setProperties, verify

Inherited from reportlab.graphics.shapes._DrawTimeResizeable (private): _drawTimeResize

Class Variables [hide private]

Inherited from reportlab.graphics.widgetbase.PropHolder (private): _attrMap

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Initialize a chromosome component.

Attributes:

o _sub_components -- Any components which are contained under
this parent component. This attribute should be accessed through
the add() and remove() functions.

remove(self, component)

source code 
Remove the specified component from the subcomponents.

Raises a ValueError if the component is not registered as a
sub_component.

draw(self)

source code 
Draw the specified component.
        

Overrides: reportlab.graphics.widgetbase.Widget.draw