Chart::Sequence::Renderer::Imager - Render a sequence diagram with Imager.pm
$renderer->lay_out( $sequence ); $renderer->lay_out( $sequence, { Layout => $layout, } );
Uses Chart::Sequence::Layout if no $layout module reference is provided.
Prepares a sequence for rendering with this renderer.
Given a layed out sequence, generate an image file.
$renderer->render_to_file( $s, "foo.png" );
Lays out the image if it's not layed out.
$renderer->render( $s, "png" );
Given a layed out sequence, render it and return it.
Lays out image if not layed out.
Returns the bounding box for a string:
{ w => $width, h => $height, xoffs => $x_offset, yoffs => $y_offset, font => $font_handle, }
The height is normalized for the entire font so that the strings will always line up.
Copyright 2002, R. Barrie Slaymaker, Jr., All Rights Reserved
You may use this module under the terms of the BSD, Artistic, oir GPL licenses, any version.
Barrie Slaymaker <barries@slaysys.com>
To install Chart::Sequence, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chart::Sequence
CPAN shell
perl -MCPAN -e shell install Chart::Sequence
For more information on module installation, please visit the detailed CPAN module installation guide.