Adding the first part of the graphing POD and changed the drawLabel function to have a saner api

This commit is contained in:
Martin Kamerbeek 2006-05-02 14:48:42 +00:00
parent c7e5d5ee24
commit a4254f51b4
6 changed files with 916 additions and 46 deletions

View file

@ -466,14 +466,13 @@ sub drawLabel {
my $maxWidth = $anchorX;
$maxWidth = $self->getImageWidth - $anchorX if ($slice->{avgAngle} > 1.5 * pi || $slice->{avgAngle} < 0.5 * pi);
$self->SUPER::drawLabel(
text => $self->wrapLabelToWidth($text, $maxWidth),
$self->SUPER::drawLabel($self->wrapLabelToWidth($text, $maxWidth), (
alignHorizontal => $horizontalAlign,
align => $align,
alignVertical => $verticalAlign,
x => $anchorX,
y => $endPointY,
);
));
}
#-------------------------------------------------------------------