NAME
LaTeX::TikZ::Set::Chain - A set object representing a connected path between several objects.
VERSION
Version 0.03
RELATIONSHIPS
This class consumes the LaTeX::TikZ::Set::Path and LaTeX::TikZ::Set::Container roles, and as such implements the "path", "kids" and "add" methods.
ATTRIBUTES
kids
The LaTeX::TikZ::Set::Path objects that form the chain.
connector
A code reference that describes how two successive elements of the chain are linked. When the "path" method is called, the connector is run repeatedly with these arguments :
The current LaTeX::TikZ::Set::Chain object.
The index
$i
of the current position in the chain, starting at0
for the link between the two first elements.The
$i
-th LaTeX::TikZ::Set object in the chain.The
$i+1
-th LaTeX::TikZ::Set object in the chain.The LaTeX::TikZ::Formatter object.
You can also pass a string, which will be upgraded to a code reference constantly returning that string ; or an array reference, which will be turned into a code reference returning the $i
-th element of the array when asked for the $i
-th link.
cycle
A boolean that indicates whether the path is a cycle or not.
METHODS
add
path
begin
end
SEE ALSO
LaTeX::TikZ, LaTeX::TikZ::Set::Path.
AUTHOR
Vincent Pit, <perl at profvince.com>
, http://www.profvince.com.
You can contact me by mail or on irc.perl.org
(vincent).
BUGS
Please report any bugs or feature requests to bug-latex-tikz at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LaTeX-TikZ. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc LaTeX::TikZ
COPYRIGHT & LICENSE
Copyright 2010,2011,2012,2013,2014,2015 Vincent Pit, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.