line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
############################################################################# |
2
|
|
|
|
|
|
|
# (c) by Tels 2004 - 2005. An empty filler cell. Part of Graph::Easy. |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
############################################################################# |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
package Graph::Easy::Node::Cell; |
7
|
|
|
|
|
|
|
|
8
|
48
|
|
|
48
|
|
14525
|
use Graph::Easy::Node; |
|
48
|
|
|
|
|
55
|
|
|
48
|
|
|
|
|
1221
|
|
9
|
|
|
|
|
|
|
|
10
|
48
|
|
|
48
|
|
150
|
use strict; |
|
48
|
|
|
|
|
53
|
|
|
48
|
|
|
|
|
810
|
|
11
|
48
|
|
|
48
|
|
163
|
use warnings; |
|
48
|
|
|
|
|
68
|
|
|
48
|
|
|
|
|
1168
|
|
12
|
|
|
|
|
|
|
|
13
|
48
|
|
|
48
|
|
148
|
use vars qw(@ISA $VERSION); |
|
48
|
|
|
|
|
49
|
|
|
48
|
|
|
|
|
11886
|
|
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
@ISA = qw/Graph::Easy::Node/; |
16
|
|
|
|
|
|
|
$VERSION = '0.76'; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
############################################################################# |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub _init |
21
|
|
|
|
|
|
|
{ |
22
|
|
|
|
|
|
|
# generic init, override in subclasses |
23
|
622
|
|
|
622
|
|
535
|
my ($self,$args) = @_; |
24
|
|
|
|
|
|
|
|
25
|
622
|
|
|
|
|
680
|
$self->{class} = ''; |
26
|
622
|
|
|
|
|
503
|
$self->{name} = ''; |
27
|
|
|
|
|
|
|
|
28
|
622
|
|
|
|
|
443
|
$self->{'x'} = 0; |
29
|
622
|
|
|
|
|
451
|
$self->{'y'} = 0; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
# default: belongs to no node |
32
|
622
|
|
|
|
|
471
|
$self->{node} = undef; |
33
|
|
|
|
|
|
|
|
34
|
622
|
|
|
|
|
1452
|
foreach my $k (sort keys %$args) |
35
|
|
|
|
|
|
|
{ |
36
|
1348
|
50
|
|
|
|
2785
|
if ($k !~ /^(node|graph|x|y)\z/) |
37
|
|
|
|
|
|
|
{ |
38
|
0
|
|
|
|
|
0
|
require Carp; |
39
|
0
|
|
|
|
|
0
|
Carp::confess ("Invalid argument '$k' passed to Graph::Easy::Node::Cell->new()"); |
40
|
|
|
|
|
|
|
} |
41
|
1348
|
|
|
|
|
1577
|
$self->{$k} = $args->{$k}; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
622
|
|
|
|
|
1531
|
$self; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
sub _correct_size |
48
|
|
|
|
|
|
|
{ |
49
|
619
|
|
|
619
|
|
507
|
my $self = shift; |
50
|
|
|
|
|
|
|
|
51
|
619
|
|
|
|
|
577
|
$self->{w} = 0; |
52
|
619
|
|
|
|
|
859
|
$self->{h} = 0; |
53
|
|
|
|
|
|
|
|
54
|
619
|
|
|
|
|
722
|
$self; |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub node |
58
|
|
|
|
|
|
|
{ |
59
|
|
|
|
|
|
|
# return the node this cell belongs to |
60
|
3
|
|
|
3
|
1
|
7
|
my $self = shift; |
61
|
|
|
|
|
|
|
|
62
|
3
|
|
|
|
|
9
|
$self->{node}; |
63
|
|
|
|
|
|
|
} |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
sub as_ascii |
66
|
|
|
|
|
|
|
{ |
67
|
1
|
|
|
1
|
1
|
3
|
''; |
68
|
|
|
|
|
|
|
} |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
sub as_html |
71
|
|
|
|
|
|
|
{ |
72
|
1
|
|
|
1
|
1
|
3
|
''; |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub group |
76
|
|
|
|
|
|
|
{ |
77
|
70
|
|
|
70
|
1
|
52
|
my $self = shift; |
78
|
|
|
|
|
|
|
|
79
|
70
|
|
|
|
|
106
|
$self->{node}->group(); |
80
|
|
|
|
|
|
|
} |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
1; |
83
|
|
|
|
|
|
|
__END__ |