Bio::Graphics::Glyph rndrect
SummaryIncluded librariesPackage variablesSynopsisDescriptionGeneral documentationMethods
Summary
Bio::Graphics::Glyph::rndrect - The "round rect" glyph
Package variables
No package variables defined.
Inherit
Bio::Graphics::Glyph::generic
Synopsis
  See Bio::Graphics::Panel and Bio::Graphics::Glyph.
Description
This glyph was designed to show seq features in round edge rectangles.
The glyph will be a rectangle if its width is < 4 pixels
Methods
draw_component
No description
Code
connector
No description
Code
bump
No description
Code
Methods description
None available.
Methods code
draw_componentdescriptionprevnextTop
sub draw_component {
  my $self = shift;
  my $gd = shift;
  my ($left,$top) = @_;
  my($x1,$y1,$x2,$y2) = $self->calculate_boundaries(@_);#$self->bounds(@_);
require GD; my $poly = GD::Polygon->new; my $boxheight = $y2 - $y1; if (($x2-$x1) > 3) { $poly->addPt($x1+1, $y1+1); $poly->addPt($x1+2, $y1); $poly->addPt($x2-2, $y1); $poly->addPt($x2-1, $y1+1); $poly->addPt($x2, $y1 + $boxheight / 2)
if ((
$y2 - $y1) > 6);
$poly->addPt($x2-1, $y2-1); $poly->addPt($x2-2, $y2); $poly->addPt($x1+2, $y2); $poly->addPt($x1+1, $y2-1); $poly->addPt($x1, $y1 + $boxheight / 2)
if ((
$y2 - $y1) > 6);
} else { $poly->addPt($x1, $y1); $poly->addPt($x2, $y1); $poly->addPt($x2, $y2); $poly->addPt($x1, $y2); } $gd->filledPolygon($poly, $self->fillcolor); $gd->polygon($poly, $self->fgcolor);
}
connectordescriptionprevnextTop
sub connector {
  my $self = shift;
  return $self->SUPER::connector(@_) if $self->all_callbacks;
  return 'solid';
}
bumpdescriptionprevnextTop
sub bump {
  my $self = shift;
  return $self->SUPER::bump(@_) if $self->all_callbacks;
  return 0;
}
General documentation
BUGSTop
Please report them.
SEE ALSOTop
Ace::Sequence, Ace::Sequence::Feature, Bio::Graphics::Panel,
Bio::Graphics::Track, Bio::Graphics::Glyph::anchored_arrow,
Bio::Graphics::Glyph::arrow,
Bio::Graphics::Glyph::box,
Bio::Graphics::Glyph::primers,
Bio::Graphics::Glyph::segments,
Bio::Graphics::Glyph::toomany,
Bio::Graphics::Glyph::transcript,
AUTHORTop
Shengqiang Shu <sshu@bdgp.lbl.gov>
Copyright (c) 2001 BDGP
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself. See DISCLAIMER.txt for
disclaimers of warranty.