0
|
1 package Bio::Graphics::Glyph::segmented_keyglyph;
|
|
2
|
|
3 # $Id: segmented_keyglyph.pm,v 1.5 2002/07/10 01:25:00 lstein Exp $
|
|
4 # Don't use this package. It's just for inheriting the segmented glyph in the panel key.
|
|
5
|
|
6 use strict;
|
|
7 use Bio::Graphics::Glyph::generic;
|
|
8 use vars '@ISA';
|
|
9 @ISA = 'Bio::Graphics::Glyph::generic';
|
|
10
|
|
11 sub make_key_feature {
|
|
12 my $self = shift;
|
|
13 my $scale = 1/$self->scale; # base pairs/pixel
|
|
14 # two segments, at pixels 0->50, 60->80
|
|
15 my $offset = $self->panel->offset;
|
|
16 my $feature =
|
|
17 Bio::Graphics::Feature->new(
|
|
18 -segments=>[ [ 0*$scale +$offset,50*$scale+$offset],
|
|
19 [60*$scale+$offset, 80*$scale+$offset]
|
|
20 ],
|
|
21 -name => $self->option('key'),
|
|
22 -strand => '+1',
|
|
23 );
|
|
24 }
|
|
25
|
|
26 1;
|
|
27
|
|
28 __END__
|
|
29
|
|
30 =head1 NAME
|
|
31
|
|
32 Bio::Graphics::Glyph::segmented_keyglyph - The "segmented_keyglyph" glyph
|
|
33
|
|
34 =head1 SYNOPSIS
|
|
35
|
|
36 See L<Bio::Graphics::Panel> and L<Bio::Graphics::Glyph>.
|
|
37
|
|
38 =head1 DESCRIPTION
|
|
39
|
|
40 This glyph is used internally by Bio::Graphics::Panel as a base calss
|
|
41 for drawing the keys at the bottom of the panel. It should not be
|
|
42 used explicitly.
|
|
43
|
|
44 =head1 BUGS
|
|
45
|
|
46 Please report them.
|
|
47
|
|
48 =head1 SEE ALSO
|
|
49
|
|
50
|
|
51 L<Bio::Graphics::Panel>,
|
|
52 L<Bio::Graphics::Glyph>,
|
|
53 L<Bio::Graphics::Glyph::arrow>,
|
|
54 L<Bio::Graphics::Glyph::cds>,
|
|
55 L<Bio::Graphics::Glyph::crossbox>,
|
|
56 L<Bio::Graphics::Glyph::diamond>,
|
|
57 L<Bio::Graphics::Glyph::dna>,
|
|
58 L<Bio::Graphics::Glyph::dot>,
|
|
59 L<Bio::Graphics::Glyph::ellipse>,
|
|
60 L<Bio::Graphics::Glyph::extending_arrow>,
|
|
61 L<Bio::Graphics::Glyph::generic>,
|
|
62 L<Bio::Graphics::Glyph::graded_segments>,
|
|
63 L<Bio::Graphics::Glyph::heterogeneous_segments>,
|
|
64 L<Bio::Graphics::Glyph::line>,
|
|
65 L<Bio::Graphics::Glyph::pinsertion>,
|
|
66 L<Bio::Graphics::Glyph::primers>,
|
|
67 L<Bio::Graphics::Glyph::rndrect>,
|
|
68 L<Bio::Graphics::Glyph::segments>,
|
|
69 L<Bio::Graphics::Glyph::ruler_arrow>,
|
|
70 L<Bio::Graphics::Glyph::toomany>,
|
|
71 L<Bio::Graphics::Glyph::transcript>,
|
|
72 L<Bio::Graphics::Glyph::transcript2>,
|
|
73 L<Bio::Graphics::Glyph::translation>,
|
|
74 L<Bio::Graphics::Glyph::triangle>,
|
|
75 L<Bio::DB::GFF>,
|
|
76 L<Bio::SeqI>,
|
|
77 L<Bio::SeqFeatureI>,
|
|
78 L<Bio::Das>,
|
|
79 L<GD>
|
|
80
|
|
81 =head1 AUTHOR
|
|
82
|
|
83 Lincoln Stein E<lt>lstein@cshl.orgE<gt>
|
|
84
|
|
85 Copyright (c) 2001 Cold Spring Harbor Laboratory
|
|
86
|
|
87 This library is free software; you can redistribute it and/or modify
|
|
88 it under the same terms as Perl itself. See DISCLAIMER.txt for
|
|
89 disclaimers of warranty.
|
|
90
|
|
91 =cut
|