Tk::PerlInheritanceTree - Display a graphical representation of the inheritance tree for a given class-name.


NAME

Tk::PerlInheritanceTree - Display a graphical representation of the inheritance tree for a given class-name.


SYNOPSIS

  require Tk::PerlInheritanceTree;
  ...
  my $inheritance_tree = $main_window->PerlInheritanceTree()->pack;
  $inheritance_tree->classname('Tk::MainWindow');


DESCRIPTION

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)


SEE ALSO

Documentation of Tk::PerlMethodList.


METHODS

Tk::PerlInheritanceTree supports the following methods:

classname('A::Classname')
Set the Classname-Entry to 'A::Classname' and show_classtree.

show_classtree()
Display a tree for the given classname


OPTIONS

Tk::PerlInheritanceTree supports the following options:

-classname
configure(-classname=>'A::Classname') same as method classname()

-gridsize
configure(-gridsize=>$size) Set the distance between nodes to $size pixels. Defaults to 120.

-multiple_methodlists
configure(-multiple_methodlists=>bool) Allows multiple instances of PerlMethodList to be opened if set to a true value. Defaults to 0.


EXAMPLES

  Run PerlInheritanceTree from the console:
  perl -MTk::PerlInheritanceTree -e'Tk::PerlInheritanceTree::_test_'
  or:
  perl -MTk::PerlInheritanceTree -e'Tk::PerlInheritanceTree::_test_(shift)' Tk::Menu


AUTHOR

Christoph Lamprecht, ch.l.ngre@online.de


COPYRIGHT AND LICENSE

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.

 Tk::PerlInheritanceTree - Display a graphical representation of the inheritance tree for a given class-name.