Tk::PerlInheritanceTree - Display a graphical representation of the inheritance tree for a given class-name.
require Tk::PerlInheritanceTree; ... my $inheritance_tree = $main_window->PerlInheritanceTree()->pack; $inheritance_tree->classname('Tk::MainWindow');
Tk::PerlInheritanceTree displays a graphical representation of the inheritance tree for a given class(package)-name. The nodes representing classnames have mouseclick bindings to open a Tk::PerlMethodList - widget. Tk::PerlInheritanceTree is a Tk::Frame-derived widget.
PerlInheritanceTree.pm can be run as stand-alone application (see Examples section)
Documentation of Tk::PerlMethodList.
Tk::PerlInheritanceTree supports the following methods:
Set the Classname-Entry to 'A::Classname' and show_classtree.
Display a tree for the given classname
Tk::PerlInheritanceTree supports the following options:
configure(-classname=>'A::Classname') same as method classname()
configure(-gridsize=>$size) Set the distance between nodes to $size pixels. Defaults to 120.
configure(-multiple_methodlists=>bool) Allows multiple instances of PerlMethodList to be opened if set to a true value. Defaults to 0.
Run PerlInheritanceTree from the console: perl -MTk::PerlInheritanceTree -e'Tk::PerlInheritanceTree::_test_' or: perl -MTk::PerlInheritanceTree -e'Tk::PerlInheritanceTree::_test_(shift)' Tk::Menu
Christoph Lamprecht, ch.l.ngre@online.de
Copyright (C) 2006-2008 by Christoph Lamprecht
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
To install Tk::PerlInheritanceTree, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tk::PerlInheritanceTree
CPAN shell
perl -MCPAN -e shell install Tk::PerlInheritanceTree
For more information on module installation, please visit the detailed CPAN module installation guide.