Treemap::Input - Creates an input object with methods suitable for use with a Treemap object.
This base class is not meant to be directly instantiated. Subclasses of Treemap::Input which implement input from various formats shoud be instantiated instead. See the SEE ALSO section below.
package Treemap::Input::YourSubclass require Treemap::Input our @ISA = qw( Treemap::Input Exporter );
No special methods need be implemented at this time. This will be changed in the future, since it violates data incapsulation. When we think of a better way to implement this, we will.
For the time being, a hash within the instance of the class of name "DATA" must exist. It should be structured as follows:
{DATA}->{name} = string ->{size} = numeric ->{colour} = "#RRGGBB" ->{children} = array reference to refrences of this format
Treemap::Input::Dir, Treemap::Input::XML
Simon Ditner <simon@uc.org>, and Eric Maki <eric@uc.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Treemap, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Treemap
CPAN shell
perl -MCPAN -e shell install Treemap
For more information on module installation, please visit the detailed CPAN module installation guide.