| 1 | package yEd::Edge::BezierEdge; | ||
| 2 | |||
| 3 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use yEd::PropertyBasedObject; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 3 | ▶ | use base qw(yEd::Edge); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | yEd::Edge::BezierEdge - creates a bezier curve between source and target | ||
| 11 | |||
| 12 | =head1 DESCRIPTION | ||
| 13 | |||
| 14 | Creates a bezier curve between source and target. | ||
| 15 | |||
| 16 | To achieve this you may add up to 2 waypoints in yEd which act as the reference points for the bezier. | ||
| 17 | |||
| 18 | Since yEd handles it correctly if you add more than 2 waypoints (although it doesn't look like the intended curve anymore), this class is not restricted to a maximum of 2 waypoints. | ||
| 19 | |||
| 20 | Make sure to have a look at L<yEd::Edge>, the properties and functions described there will not be repeated here. | ||
| 21 | |||
| 22 | =head1 SUPPORTED FEATURES | ||
| 23 | |||
| 24 | The type specific features are fully supported. | ||
| 25 | |||
| 26 | For basic Edge type feature support and which Edge types are supported see L<yEd::Edge>. | ||
| 27 | |||
| 28 | =head1 PROPERTIES | ||
| 29 | |||
| 30 | =head2 all properties from base class | ||
| 31 | |||
| 32 | L<yEd::Edge> | ||
| 33 | |||
| 34 | =head1 SUBROUTINES/METHODS | ||
| 35 | |||
| 36 | =head2 all functions from base class | ||
| 37 | |||
| 38 | L<yEd::Edge> | ||
| 39 | |||
| 40 | =cut | ||
| 41 | |||
| 42 | 1 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 43 | 1 | my ($class, @args) = @_; | |
| 44 | 1 | my $self = bless {}, $class; | |
| 45 | 1 | return $self->_init(@args); | |
| 46 | } | ||
| 47 | |||
| 48 | 1 | ▶ | sub _addTypeNode { |
|
Subroutine
_addTypeNode: called CC=1 SCAR=0.0
| |||
| 49 | 1 | my ($self, $node) = @_; | |
| 50 | 1 | return $node->addNewChild('', 'y:BezierEdge'); | |
| 51 | } | ||
| 52 | |||
| 53 | =head1 SEE ALSO | ||
| 54 | |||
| 55 | L<yEd::Document> for further informations about the whole package | ||
| 56 | |||
| 57 | L<yEd::PropertyBasedObject> for further basic information about properties and their additional functions | ||
| 58 | |||
| 59 | L<yEd::Edge> for information about the Edge base class and which other Edge types are currently supported | ||
| 60 | |||
| 61 | =cut | ||
| 62 | |||
| 63 | 3 | 1; | |