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

Class _ChromosomeComponent

             PropHolder --+    
                          |    
_DrawTimeResizeable --+   |    
                      |   |    
               UserNode --+    
                          |    
                     Widget --+
                              |
                             _ChromosomeComponent

Known Subclasses:
Chromosome, ChromosomeSegment, Organism

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.
Method Summary
  __init__(self)
Initialize a chromosome component.
  add(self, component)
Add a sub_component to the list of components under this item.
  draw(self)
Draw the specified component.
  remove(self, component)
Remove the specified component from the subcomponents.
    Inherited from Widget
  demo(self)
  getBounds(self)
Return outer boundary as x1,y1,x2,y2.
  provideNode(self)
Override this to create your own node.
    Inherited from PropHolder
  __setattr__(self, name, value)
By default we verify.
  dumpProperties(self, prefix)
Convenience.
  getProperties(self, recur)
Returns a list of all properties which can be edited and which are not marked as private.
  setProperties(self, propDict)
Permits bulk setting of properties.
  verify(self)
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
  _drawTimeResize(self, w, h)

Class Variable Summary
    Inherited from PropHolder
NoneType _attrMap = None                                                                  

Method Details

__init__(self)
(Constructor)

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.

add(self, component)

Add a sub_component to the list of components under this item.

draw(self)

Draw the specified component.
Overrides:
reportlab.graphics.widgetbase.Widget.draw

remove(self, component)

Remove the specified component from the subcomponents.

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

Generated by Epydoc 2.1 on Mon Aug 27 16:12:12 2007 http://epydoc.sf.net