0
|
1 package Bio::Graphics::Glyph::track;
|
|
2
|
|
3 use strict;
|
|
4 use Bio::Graphics::Glyph;
|
|
5 use vars '@ISA';
|
|
6 @ISA = 'Bio::Graphics::Glyph';
|
|
7
|
|
8 # track sets connector to empty
|
|
9 sub connector {
|
|
10 my $self = shift;
|
|
11 return $self->SUPER::connector(@_) if $self->all_callbacks;
|
|
12 return 'none';
|
|
13 }
|
|
14
|
|
15 sub draw {
|
|
16 my $self = shift;
|
|
17 my ($gd,$left,$top,$partno,$total_parts) = @_;
|
|
18 my @parts = $self->parts;
|
|
19 for (my $i=0; $i<@parts; $i++) {
|
|
20 $parts[$i]->draw($gd,$left,$top,0,1);
|
|
21 }
|
|
22 }
|
|
23
|
|
24 # do nothing for components
|
|
25 # sub draw_component { }
|
|
26
|
|
27 1;
|
|
28
|
|
29
|
|
30 __END__
|
|
31
|
|
32 =head1 NAME
|
|
33
|
|
34 Bio::Graphics::Glyph::track - The "track" glyph
|
|
35
|
|
36 =head1 SYNOPSIS
|
|
37
|
|
38 See L<Bio::Graphics::Panel> and L<Bio::Graphics::Glyph>.
|
|
39
|
|
40 =head1 DESCRIPTION
|
|
41
|
|
42 This glyph is used internally by Bio::Graphics::Panel for laying out
|
|
43 tracks. It should not be used explicitly.
|
|
44
|
|
45 =head1 BUGS
|
|
46
|
|
47 Please report them.
|
|
48
|
|
49 =head1 SEE ALSO
|
|
50
|
|
51
|
|
52 L<Bio::Graphics::Panel>,
|
|
53 L<Bio::Graphics::Glyph>,
|
|
54 L<Bio::Graphics::Glyph::arrow>,
|
|
55 L<Bio::Graphics::Glyph::cds>,
|
|
56 L<Bio::Graphics::Glyph::crossbox>,
|
|
57 L<Bio::Graphics::Glyph::diamond>,
|
|
58 L<Bio::Graphics::Glyph::dna>,
|
|
59 L<Bio::Graphics::Glyph::dot>,
|
|
60 L<Bio::Graphics::Glyph::ellipse>,
|
|
61 L<Bio::Graphics::Glyph::extending_arrow>,
|
|
62 L<Bio::Graphics::Glyph::generic>,
|
|
63 L<Bio::Graphics::Glyph::graded_segments>,
|
|
64 L<Bio::Graphics::Glyph::heterogeneous_segments>,
|
|
65 L<Bio::Graphics::Glyph::line>,
|
|
66 L<Bio::Graphics::Glyph::pinsertion>,
|
|
67 L<Bio::Graphics::Glyph::primers>,
|
|
68 L<Bio::Graphics::Glyph::rndrect>,
|
|
69 L<Bio::Graphics::Glyph::segments>,
|
|
70 L<Bio::Graphics::Glyph::ruler_arrow>,
|
|
71 L<Bio::Graphics::Glyph::toomany>,
|
|
72 L<Bio::Graphics::Glyph::transcript>,
|
|
73 L<Bio::Graphics::Glyph::transcript2>,
|
|
74 L<Bio::Graphics::Glyph::translation>,
|
|
75 L<Bio::Graphics::Glyph::triangle>,
|
|
76 L<Bio::DB::GFF>,
|
|
77 L<Bio::SeqI>,
|
|
78 L<Bio::SeqFeatureI>,
|
|
79 L<Bio::Das>,
|
|
80 L<GD>
|
|
81
|
|
82 =head1 AUTHOR
|
|
83
|
|
84 Lincoln Stein E<lt>lstein@cshl.orgE<gt>
|
|
85
|
|
86 Copyright (c) 2001 Cold Spring Harbor Laboratory
|
|
87
|
|
88 This library is free software; you can redistribute it and/or modify
|
|
89 it under the same terms as Perl itself. See DISCLAIMER.txt for
|
|
90 disclaimers of warranty.
|
|
91
|
|
92 =cut
|