Raw content of Bio::Graphics::Glyph::track
package Bio::Graphics::Glyph::track;
use strict;
use Bio::Graphics::Glyph;
use vars '@ISA';
@ISA = 'Bio::Graphics::Glyph';
# track sets connector to empty
sub connector {
my $self = shift;
return $self->SUPER::connector(@_) if $self->all_callbacks;
return 'none';
}
sub draw {
my $self = shift;
my ($gd,$left,$top,$partno,$total_parts) = @_;
my @parts = $self->parts;
for (my $i=0; $i<@parts; $i++) {
$parts[$i]->draw($gd,$left,$top,0,1);
}
}
# do nothing for components
# sub draw_component { }
1;
__END__
=head1 NAME
Bio::Graphics::Glyph::track - The "track" glyph
=head1 SYNOPSIS
See L and L.
=head1 DESCRIPTION
This glyph is used internally by Bio::Graphics::Panel for laying out
tracks. It should not be used explicitly.
=head1 BUGS
Please report them.
=head1 SEE ALSO
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L,
L
=head1 AUTHOR
Lincoln Stein Elstein@cshl.orgE
Copyright (c) 2001 Cold Spring Harbor Laboratory
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself. See DISCLAIMER.txt for
disclaimers of warranty.
=cut