NAME

Gtk2::Ex::TreeMap - Implementation of TreeMap.

SYNOPSIS

use Gtk2::Ex::TreeMap;
my $treemap = Gtk2::Ex::TreeMap->new;
my $imagesize = [600, 400];
my $values = [6,6,4,3,2,2,1];
$treemap->draw($imagesize, $values);
my $window = Gtk2::Window->new;
$window->add($treemap->get_image);
pring Dumper $treemap->get_rectangles;
$window->show_all;
Gtk2->main;

DESCRIPTION

Treemap is a space-constrained visualization of hierarchical structures. It is very effective in showing attributes of leaf nodes using size and color coding. http://www.cs.umd.edu/hcil/treemap/

METHODS

Gtk2::Ex::TreeMap->new

Just a plain old constructor.

Gtk2::Ex::TreeMap->draw($size, $values)

Draws the TreeMap internally. Currently uses the Squarified TreeMap algorithm. http://www.win.tue.nl/~vanwijk/stm.pdf

Gtk2::Ex::TreeMap->get_image

Returns the TreeMap image as a Gtk2::Image wrapped in a Gtk2::EventBox

Gtk2::Ex::TreeMap->get_rectangles

Returns and array of rectangles used in the treemap.

AUTHOR

Ofey Aikon, <ofey_aikon at gmail dot com>

ACKNOWLEDGEMENTS

To the wonderful gtk-perl list.

COPYRIGHT & LICENSE

Copyright 2004 Ofey Aikon, All Rights Reserved.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.

You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA.