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

filter: Statementstmt 0.0% 0 / 15 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 3 MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 24 CC 2 SCAR 13.9
CC
2
Cov
0%
box
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 4.0
1 package Bio::Graphics::Glyph::point_glyph;
2  
3 use strict;
4 use base qw(Bio::Graphics::Glyph::generic);
5  
6 sub box {
7 my $self = shift;
8 my @result = $self->SUPER::box();
9 return @result unless $self->option('point') && $result[2]-$result[0] < 3;
10 my $h = $self->option('height')/2;
11 my $mid = int(($result[2]+$result[0])/2);
12 $result[0] = $mid-$h-1; # fudge a little to make it easier to click on
13 $result[2] = $mid+$h+1;
14 return @result;
15 }
16  
17 1;