Quiq/Gnuplot/Label.pm

filter: Statementstmt 76.4% 13 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 100% 1 / 1 totaltotal 78.2% 18 / 23 CC 1 SCAR 1.8
CC
1
Cov
76%
new
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Quiq/Gnuplot/Arrow.pm ↑ Summary Quiq/PlotlyJs/XY/Diagram.pm »
1 # -----------------------------------------------------------------------------
2  
3 =encoding utf8
4  
5 =head1 NAME
6  
7 Quiq::Gnuplot::Label - Gnuplot-Label
8  
9 =head1 BASE CLASS
10  
11 L<Quiq::Hash>
12  
13 =head1 DESCRIPTION
14  
15 Ein Objekt der Klasse repräsentiert ein Label, also einen frei
16 positionierbaren Text.
17  
18 =cut
19  
20 # -----------------------------------------------------------------------------
21  
22 package Quiq::Gnuplot::Label;
23 3 ▶use base qw/Quiq::Hash/;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 3 ▶use v5.10;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
28  
29 3 our $VERSION = '1.240';
30  
31 # -----------------------------------------------------------------------------
32  
33 =head1 METHODS
34  
35 =head2 Konstruktor
36  
37 =head3 new() - Instantiiere Label-Objekt
38  
39 =head4 Synopsis
40  
41 $lab = Quiq::Gnuplot::Label->new(@keyVal);
42  
43 =cut
44  
45 # -----------------------------------------------------------------------------
46  
47 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
48 0 my $class = shift;
49 # @_: @keyVal
50  
51 0 my $self = $class->SUPER::new(
52 at => [], # [$x,$y]
53 text => undef,
54 textColor => undef,
55 font => undef,
56 );
57 0 $self->set(@_);
58
59 0 return $self;
60 }
61  
62 # -----------------------------------------------------------------------------
63  
64 =head1 VERSION
65  
66 1.240
67  
68 =head1 AUTHOR
69  
70 Frank Seitz, L<http://fseitz.de/>
71  
72 =head1 COPYRIGHT
73  
74 Copyright (C) 2026 Frank Seitz
75  
76 =head1 LICENSE
77  
78 This code is free software; you can redistribute it and/or modify
79 it under the same terms as Perl itself.
80  
81 =cut
82  
83 # -----------------------------------------------------------------------------
84  
85 3 1;
86  
87 # eof
« Quiq/Gnuplot/Arrow.pm ↑ Summary Quiq/PlotlyJs/XY/Diagram.pm »