Barrie Slaymaker > Chart-Sequence-0.002 > Chart::Sequence::Renderer::Imager

Download:
Chart-Sequence-0.002.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.0001   Source  

NAME ^

Chart::Sequence::Renderer::Imager - Render a sequence diagram with Imager.pm

SYNOPSIS ^

DESCRIPTION ^

METHODS

lay_out
    $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.

render_to_file

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.

render
    $renderer->render( $s, "png" );

Given a layed out sequence, render it and return it.

Lays out image if not layed out.

Methods called by the layout engine

string_metrics

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.

LIMITATIONS ^

COPYRIGHT ^

    Copyright 2002, R. Barrie Slaymaker, Jr., All Rights Reserved

LICENSE ^

You may use this module under the terms of the BSD, Artistic, oir GPL licenses, any version.

AUTHOR ^

Barrie Slaymaker <barries@slaysys.com>

syntax highlighting: