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


Treemap documentation  | view source Contained in the Treemap distribution.

Index


NAME

Top

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

DESCRIPTION

Top

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

Top

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

Top

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

AUTHORS

Top

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

LICENSE

Top

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


Treemap documentation  | view source Contained in the Treemap distribution.