| 1 | package Bio::Gonzales::Graphics::Glyph::colorfulBox; | ||
| 2 | # DAS-compatible package to use for drawing a box | ||
| 3 | |||
| 4 | use strict; | ||
| 5 | use base qw(Bio::Graphics::Glyph::generic); | ||
| 6 | |||
| 7 | our $VERSION = '0.062'; # VERSION | ||
| 8 | |||
| 9 | sub my_description { | ||
| 10 | return <<END; | ||
| 11 | This glyph draws genomic features as rectangles. If the feature | ||
| 12 | contains subfeatures, then the glyph will draw a single solid box that | ||
| 13 | spans all the subfeatures. Features can be named with a label at the | ||
| 14 | top, and annotated with a descriptive string at the bottom. | ||
| 15 | END | ||
| 16 | } | ||
| 17 | |||
| 18 | sub fgcolor { | ||
| 19 | my $self = shift; | ||
| 20 | |||
| 21 | my $fgcolor = $self->option('color') || $self->option('fgcolor'); | ||
| 22 | |||
| 23 | $fgcolor = $fgcolor->() if(ref $fgcolor eq 'CODE'); | ||
| 24 | |||
| 25 | } |