Mail::Thread::Arc - Generates a Thread Arc reperesentation of a thread
my $threader = Mail::Thread->new( @messages ); my $arc = Mail::Thread::Arc->new; $threader->thread; my $i; for my $thread ($threader->rootset) { ++$i; my $svg = $arc->render( $thread ); write_file( "thread_$i.svg", $svg->xmlify ); }
Mail::Thread::Arc takes a Mail::Thread::Container and generates an image of the Thread Arc. Thread Arcs are described in the documentation for IBM's remail project.
http://www.research.ibm.com/remail/
Generic constructor, inherited from Class::Accessor::Chained::Fast
The main method.
Renders the thread tree as a thread arc. Returns an SVG object.
Draw the message on the SVG canvas.
Return an URI based on the message. By default returns undef meaning that that the message is not a link.
However if this module is subclassed then a meaningful URI can be returned where appropriate.
draws an arc between two messages
The radius of the message circles. The most magic of all the magic numbers.
Returns the style hash for the message circle.
the maximum height of an arc. default is 17 message radii
Returns the style hash for the connecting arc,
returns the X co-ordinate for a message
returns the Y co-ordinate for a message (expected to be constant for all messages)
returns the thread generation of the container.
The date the message was sent, in epoch seconds
Richard Clamp <richardc@unixbeard.net>
Copyright (C) 2003 Richard Clamp. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
ReMail, the IBM Research project that implements Thread Arcs.
http://unixbeard.net/~richardc/mta/ - some sample output, alongside .pngs created with batik-rasteriser.
Mail::Thread, Mail::Thread::Chronological, SVG
To install Mail::Thread::Arc, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mail::Thread::Arc
CPAN shell
perl -MCPAN -e shell install Mail::Thread::Arc
For more information on module installation, please visit the detailed CPAN module installation guide.