0
|
1 package Bio::Graphics::Glyph::toomany;
|
|
2 # DAS-compatible package to use for drawing a box
|
|
3
|
|
4 use strict;
|
|
5 use vars '@ISA';
|
|
6 @ISA = 'Bio::Graphics::Glyph::generic';
|
|
7 use Bio::Graphics::Glyph::generic;
|
|
8
|
|
9 # draw the thing onto a canvas
|
|
10 # this definitely gets overridden
|
|
11 sub draw {
|
|
12 my $self = shift;
|
|
13 my $gd = shift;
|
|
14 my ($left,$top) = @_;
|
|
15 my ($x1,$y1,$x2,$y2) = $self->calculate_boundaries($left,$top);
|
|
16
|
|
17 # $self->filled_oval($gd,$x1,$y1,$x2,$y2);
|
|
18 for (my $m = 3;$m > 0;$m--){
|
|
19 my $stack = $m * $self->height / 2;
|
|
20 $self->unfilled_box($gd,$x1-$stack,$y1-$stack,$x2-$stack,$y2-$stack);
|
|
21 }
|
|
22
|
|
23 # add a label if requested
|
|
24 $self->draw_label($gd,$left,($top-($self->height*1.1))) if $self->option('label');
|
|
25 }
|
|
26
|
|
27 sub label {
|
|
28 return "too many to display";
|
|
29 }
|
|
30
|
|
31 1;
|
|
32
|
|
33 __END__
|
|
34
|
|
35 =head1 NAME
|
|
36
|
|
37 Bio::Graphics::Glyph::toomany - The "too many to show" glyph
|
|
38
|
|
39 =head1 SYNOPSIS
|
|
40
|
|
41 See L<Bio::Graphics::Panel> and L<Bio::Graphics::Glyph>.
|
|
42
|
|
43 =head1 DESCRIPTION
|
|
44
|
|
45 This glyph is intended for features that are too dense to show
|
|
46 properly. Mostly a placeholder, it currently shows a filled oval. If
|
|
47 you choose a bump of 0, the ovals will overlap, to give a cloud
|
|
48 effect.
|
|
49
|
|
50 =head2 OPTIONS
|
|
51
|
|
52 There are no glyph-specific options.
|
|
53
|
|
54 =head1 BUGS
|
|
55
|
|
56 Please report them.
|
|
57
|
|
58 =head1 SEE ALSO
|
|
59
|
|
60
|
|
61 L<Bio::Graphics::Panel>,
|
|
62 L<Bio::Graphics::Glyph>,
|
|
63 L<Bio::Graphics::Glyph::arrow>,
|
|
64 L<Bio::Graphics::Glyph::cds>,
|
|
65 L<Bio::Graphics::Glyph::crossbox>,
|
|
66 L<Bio::Graphics::Glyph::diamond>,
|
|
67 L<Bio::Graphics::Glyph::dna>,
|
|
68 L<Bio::Graphics::Glyph::dot>,
|
|
69 L<Bio::Graphics::Glyph::ellipse>,
|
|
70 L<Bio::Graphics::Glyph::extending_arrow>,
|
|
71 L<Bio::Graphics::Glyph::generic>,
|
|
72 L<Bio::Graphics::Glyph::graded_segments>,
|
|
73 L<Bio::Graphics::Glyph::heterogeneous_segments>,
|
|
74 L<Bio::Graphics::Glyph::line>,
|
|
75 L<Bio::Graphics::Glyph::pinsertion>,
|
|
76 L<Bio::Graphics::Glyph::primers>,
|
|
77 L<Bio::Graphics::Glyph::rndrect>,
|
|
78 L<Bio::Graphics::Glyph::segments>,
|
|
79 L<Bio::Graphics::Glyph::ruler_arrow>,
|
|
80 L<Bio::Graphics::Glyph::toomany>,
|
|
81 L<Bio::Graphics::Glyph::transcript>,
|
|
82 L<Bio::Graphics::Glyph::transcript2>,
|
|
83 L<Bio::Graphics::Glyph::translation>,
|
|
84 L<Bio::Graphics::Glyph::triangle>,
|
|
85 L<Bio::DB::GFF>,
|
|
86 L<Bio::SeqI>,
|
|
87 L<Bio::SeqFeatureI>,
|
|
88 L<Bio::Das>,
|
|
89 L<GD>
|
|
90
|
|
91 =head1 AUTHOR
|
|
92
|
|
93 Allen Day E<lt>day@cshl.orgE<gt>.
|
|
94
|
|
95 Copyright (c) 2001 Cold Spring Harbor Laboratory
|
|
96
|
|
97 This library is free software; you can redistribute it and/or modify
|
|
98 it under the same terms as Perl itself. See DISCLAIMER.txt for
|
|
99 disclaimers of warranty.
|
|
100
|
|
101 =cut
|