blib/lib/Bio/Graphics/Glyph/toomany.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 27 CC 2 SCAR 12.8
CC
2
Cov
0%
draw
6.0
label
2.0
BEGIN
2.0
CRAP 3.6
1 package Bio::Graphics::Glyph::toomany;
2 # DAS-compatible package to use for drawing a box
3  
4 use strict;
5 use base qw(Bio::Graphics::Glyph::generic);
6  
7 # draw the thing onto a canvas
8 # this definitely gets overridden
9 sub draw {
10 my $self = shift;
11 my $gd = shift;
12 my ($left,$top) = @_;
13  
14 my ($x1,$y1,$x2,$y2) = $self->calculate_boundaries($left,$top);
15  
16 # $self->filled_oval($gd,$x1,$y1,$x2,$y2);
17 for (my $m = 3;$m > 0;$m--){
18 my $stack = $m * $self->height / 2;
19 $self->unfilled_box($gd,$x1-$stack,$y1-$stack,$x2-$stack,$y2-$stack);
20 }
21  
22 # add a label if requested
23 $self->draw_label($gd,$left,($top-($self->height*1.1))) if $self->option('label');
24 }
25  
26 sub label {
27 return "too many to display";
28 }
29  
30 1;
31  
32 __END__