Back to index

python-biopython  1.60
Public Member Functions | Public Attributes
Bio.Graphics.BasicChromosome.SpacerSegment Class Reference
Inheritance diagram for Bio.Graphics.BasicChromosome.SpacerSegment:
Inheritance graph
[legend]
Collaboration diagram for Bio.Graphics.BasicChromosome.SpacerSegment:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def draw
def draw
def add
def remove

Public Attributes

 start_x_position
 end_x_position
 start_y_position
 end_y_position
 scale
 fill_color
 label
 label_size
 chr_percent

Detailed Description

A segment that is located at the end of a linear chromosome.

Doesn't draw anything, just empty space which can be helpful
for layout purposes (e.g. making room for feature labels).

Definition at line 736 of file BasicChromosome.py.


Member Function Documentation

def Bio.Graphics.BasicChromosome._ChromosomeComponent.add (   self,
  component 
) [inherited]
Add a sub_component to the list of components under this item.

Definition at line 63 of file BasicChromosome.py.

00063 
00064     def add(self, component):
00065         """Add a sub_component to the list of components under this item.
00066         """
00067         assert isinstance(component, _ChromosomeComponent), \
00068                "Expected a _ChromosomeComponent object, got %s" % component
00069         
00070         self._sub_components.append(component)

Here is the caller graph for this function:

Draw the specified component.

Definition at line 83 of file BasicChromosome.py.

00083 
00084     def draw(self):
00085         """Draw the specified component.
00086         """
        raise AssertionError("Subclasses must implement.")
def Bio.Graphics.BasicChromosome.SpacerSegment.draw (   self,
  cur_drawing 
)
Draw a chromosome segment.

Before drawing, the range we are drawing in needs to be set.

Reimplemented from Bio.Graphics.BasicChromosome.ChromosomeSegment.

Definition at line 743 of file BasicChromosome.py.

00743 
00744     def draw(self, cur_diagram):
00745         pass
def Bio.Graphics.BasicChromosome._ChromosomeComponent.remove (   self,
  component 
) [inherited]
Remove the specified component from the subcomponents.

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

Definition at line 71 of file BasicChromosome.py.

00071 
00072     def remove(self, component):
00073         """Remove the specified component from the subcomponents.
00074 
00075         Raises a ValueError if the component is not registered as a
00076         sub_component.
00077         """
00078         try:
00079             self._sub_components.remove(component)
00080         except ValueError:
00081             raise ValueError("Component %s not found in sub_components." %
00082                              component)


Member Data Documentation

Definition at line 397 of file BasicChromosome.py.

Definition at line 388 of file BasicChromosome.py.

Definition at line 390 of file BasicChromosome.py.

Definition at line 394 of file BasicChromosome.py.

Definition at line 395 of file BasicChromosome.py.

Definition at line 396 of file BasicChromosome.py.

Definition at line 393 of file BasicChromosome.py.

Definition at line 387 of file BasicChromosome.py.

Definition at line 389 of file BasicChromosome.py.


The documentation for this class was generated from the following file: