NAME

Treex::Core::TredView::TreeLayout - Layout of trees in Tred

VERSION

version 0.06441

DESCRIPTION

This package supports the main Tred visualisation package Treex::Core::TredView. It's purpose is to allow an user friendly configuration of the placement of the trees stored in a bundle.

The mechanism works only with bundles. Each bundle gets a label that describes it's content (conbination of layers, languages and selectors). When there is a bundle to be displayed, the package constructs its label and tries to find its layout. If the label is unknown (no layout found), default is provided.

Therefore it's perfectly legal to have different sets of trees in each bundle in a single file. Also, when a layout is configured for some set of trees, it will be used each time the same set is displayed even if these sets occur in completely different and unrelated files.

The configuration is persistent - it is saved along with the tred extension in a special file.

METHODS

Public methods

get_tree_label
get_layout_label
get_layout
load_layouts
save_layouts
conf_dialog

Private methods

_move_layout
_wrap_layout
_normalize_layout
_get_layout_coords
_get_pos
_mouse_move
_mouse_drag
_mouse_drop
_draw_layout

AUTHOR

Josef Toman <toman@ufal.mff.cuni.cz>

COPYRIGHT AND LICENSE

Copyright © 2011 by Institute of Formal and Applied Linguistics, Charles University in Prague

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

3 POD Errors

The following errors were encountered while parsing the POD:

Around line 455:

'=item' outside of any '=over'

Around line 475:

You forgot a '=back' before '=head1'

You forgot a '=back' before '=head1'

Around line 481:

Non-ASCII character seen before =encoding in '©'. Assuming UTF-8