Simon P. Ditner > Treemap > Treemap::Output

Download:
Treemap-0.2.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Treemap::Output - Creates an output object with methods suitable for use with a Treemap object.

DESCRIPTION ^

This base class is not meant to be directly instantiated. Subclasses of Treemap::Output which implement output to various formats shoud be instantiated instead. See the SEE ALSO section below for existing output methods.

CREATING OUTPUT SUBCLASSES ^

The following methods must be implemented, accepting the following parameters:

rect(x1,y1,x2,y2,colour)

Co-ordinates are absolute and floating point, and colour is specified with HTML-esque strings (#RRGGBB)

text(x1,y1,x2,y2,text,children)

Co-ordinates are absolute and floating point, text is the string you will be printing, and children is a flag that will be set true, or false depending on whether there will be any items contained within this rectangle that you're labeling. This is primarily used for positining the text.

SEE ALSO ^

Treemap::Output::Imager, Treemap::Output::PrintedText

AUTHORS ^

Simon Ditner <simon@uc.org>, and Eric Maki <eric@uc.org>

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: