Table of Contents

Class: Organism Bio/Graphics/BasicChromosome.py

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.

Base Classes   
_ChromosomeComponent
    Widget
Methods   
__init__
_draw_legend
_draw_title
draw
  __init__ 
__init__ ( self,  output_format='pdf' )

  _draw_legend 
_draw_legend (
        self,
        cur_drawing,
        start_y,
        width,
        )

Draw a legend for the figure.

Subclasses should implement this to provide specialized legends.

  _draw_title 
_draw_title (
        self,
        cur_drawing,
        title,
        width,
        height,
        )

Write out the title of the organism figure.

  draw 
draw (
        self,
        output_file,
        title,
        )

Draw out the information for the Organism.

Arguments:

  • output_file -- The name of a file specifying where the pdf document drawn should be saved.

  • title -- The output title of the produced document.

Exceptions   
ValueError( "Invalid output format %s" % self.output_format )

Table of Contents

This document was automatically generated on Mon Jul 1 12:03:12 2002 by HappyDoc version 2.0.1