| Tk-GraphItems documentation | view source | Contained in the Tk-GraphItems distribution. |
Tk::GraphItems::LabeledConnector - Display edges of relation-graphs on a Tk::Canvas
require Tk::GraphItems::TextBox;
require Tk::GraphItems::LabeledConnector;
my $conn = Tk::GraphItems::LabeledConnector->new(
source => $a_TextBox,
target => $another_TextBox,
label => 'labeltext'
);
$conn->colour( 'red' );
$conn->arrow( 'both' );
$conn->width( 2 );
$conn->detach;
$conn = undef;
Tk::GraphItems::LabeledConnector extends Tk::GraphItems::Connector with a 'label' option.
Tk::GraphItems::LabeledConnector supports the following additional methods:
Create a new LabeledConnector instance and display it on the Canvas of 'source' and 'target'. See Tk::GraphItems::Connector for details.
Sets the labels text to $labeltext, if the argument is given. Returns the current label, if called without an argument.
Documentation of Tk::GraphItems::Connector Documentation of Tk::GraphItems::TextBox Examples in Tk/GraphItems/Examples
Christoph Lamprecht, ch.l.ngre@online.de
Copyright (C) 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-GraphItems documentation | view source | Contained in the Tk-GraphItems distribution. |