Edge/BezierEdge.pm

filter: Statementstmt 66.6% 10 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 100% 1 / 1 totaltotal 66.6% 14 / 21 SCAR 0.4
CC
1
Cov
67%
new
2.0
_addTypeNode
2.0
BEGIN
1.0
CRAP 1.0
« Edge/QuadCurveEdge.pm ↑ Summary Edge/SplineEdge.pm »
1 package yEd::Edge::BezierEdge;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use yEd::PropertyBasedObject;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶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 sub new {
43 0 ▶ my ($class, @args) = @_;
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
44 0 my $self = bless {}, $class;
45 0 return $self->_init(@args);
46 }
47  
48 sub _addTypeNode {
49 0 ▶ my ($self, $node) = @_;
Subroutine _addTypeNode: not called CC=1 SCAR=6.9
50 0 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 1 1;
« Edge/QuadCurveEdge.pm ↑ Summary Edge/SplineEdge.pm »