Logo Search packages:      
Sourcecode: python-biopython version File versions

def Bio::Graphics::BasicChromosome::ChromosomeSegment::__init__ (   self  )  [inherited]

Initialize a ChromosomeSegment.

Attributes:
o start_x_position, end_x_position - Defines the x range we have
to draw things in.

o start_y_position, end_y_position - Defines the y range we have
to draw things in.

Configuration Attributes:

o scale - A scaling value for the component. By default this is
set at 1 (ie -- has the same scale as everything else). Higher
values give more size to the component, smaller values give less.

o fill_color - A color to fill in the segment with. Colors are
available in reportlab.lib.colors

o label - A label to place on the chromosome segment. This should
be a text string specifying what is to be included in the label.

o label_size - The size of the label.

o chr_percent - The percentage of area that the chromosome
segment takes up.

Reimplemented from Bio::Graphics::BasicChromosome::_ChromosomeComponent.

Definition at line 289 of file BasicChromosome.py.

00289                       :
        """Initialize a ChromosomeSegment.

        Attributes:
        o start_x_position, end_x_position - Defines the x range we have
        to draw things in.

        o start_y_position, end_y_position - Defines the y range we have
        to draw things in.

        Configuration Attributes:

        o scale - A scaling value for the component. By default this is
        set at 1 (ie -- has the same scale as everything else). Higher
        values give more size to the component, smaller values give less.

        o fill_color - A color to fill in the segment with. Colors are
        available in reportlab.lib.colors

        o label - A label to place on the chromosome segment. This should
        be a text string specifying what is to be included in the label.

        o label_size - The size of the label.

        o chr_percent - The percentage of area that the chromosome
        segment takes up.
        """
        _ChromosomeComponent.__init__(self)

        self.start_x_position = -1
        self.end_x_position = -1
        self.start_y_position = -1
        self.end_y_position = -1

        # --- attributes for configuration
        self.scale = 1
        self.fill_color = None
        self.label = None
        self.label_size = 6
        self.chr_percent = .25

    def draw(self, cur_drawing):


Generated by  Doxygen 1.6.0   Back to index