James Muir > Gtk2-Ex-MindMapView-0.000001 > Gtk2::Ex::MindMapView::Connection

Download:
Gtk2-Ex-MindMapView-0.000001.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.000001   Source  

NAME ^

Gtk2::Ex::MindMapView::Connection - Draw connections between view items.

VERSION ^

This document describes Gtk2::Ex::MindMapView::Connection version 0.0.1

HEIRARCHY ^

 Glib::Object
 +----Gtk2::Object
      +----Gnome2::Canvas::Item
           +----Gnome2::Canvas::Shape
                +----Gnome2::Canvas::Bpath
                     +----Gtk2::Ex::MindMapView::Connection

SYNOPSIS ^

use Gtk2::Ex::MindMapView::Connection;

DESCRIPTION ^

This module is internal to Gtk2::Ex::MindMapView. Connections are instantiated by Gtk2::Ex::MindMapView. This module is responsible for drawing the connecting lines between Gtk2::Ex::MindMapView::Items onto the canvas.

The Gtk2::Ex::MindMapView::Connection is an observer. It registers with the view items so that it may be notified when a view item's state changes.

INTERFACE ^

Properties

'arrows' (string : readable / writable)

Indicates whether arrows should be drawn. Possible values are: none, one-way, and two-way.

'predecessor_item' (Gtk2::Ex::MindMapView::Item : readable / writable)

The item at which this connection starts.

'item' (Gtk2::Ex::MindMapView::Item : readable / writable)

The item at which this connection ends.

Methods

INIT_INSTANCE

This subroutine is called by Glib::Object::Subclass as the object is being instantiated. You should not call this subroutine directly. Leave it alone.

SET_PROPERTY

This subroutine is called by Glib::Object::Subclass when a property is being set. You should not call this subroutine directly. Leave it alone. Instead call the set method to assign values to properties.

connect

Connect the Gtk2::Ex::MindMapView::Connection to the items it observes.

disconnect

Disconnect the Gtk2::Ex::MindMapView::Connection from the items it observes.

DIAGNOSTICS ^

None.

DEPENDENCIES ^

None.

BUGS and LIMITATIONS ^

Error message from libart "*** attempt to put segment in horiz list twice" occurs when drawing 'two-way' arrows.

With 'two-way' arrows the arrow pointing back to the predecessor item is partially covered by the toggle.

AUTHOR ^

James Muir <hemlock@vtlink.net>

LICENCE AND COPYRIGHT ^

Copyright (c) 2006, James Muir <hemlock@vtlink.net>. All rights reserved.

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

DISCLAIMER OF WARRANTY ^

BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.

IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

syntax highlighting: