line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Google::Chart::Margin; |
2
|
1
|
|
|
1
|
|
5
|
use Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
18
|
|
3
|
1
|
|
|
1
|
|
7571
|
use Moose::Util::TypeConstraints; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
12
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
2327
|
use constant parameter_name => 'chma'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
259
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
with 'Google::Chart::QueryComponent::Simple'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
coerce 'Google::Chart::Margin' |
10
|
|
|
|
|
|
|
=> from 'ArrayRef' |
11
|
|
|
|
|
|
|
=> via { |
12
|
|
|
|
|
|
|
my $aref = $_; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
return Google::Chart::Margin->new( |
15
|
|
|
|
|
|
|
left => $aref->[0], |
16
|
|
|
|
|
|
|
right => $aref->[1], |
17
|
|
|
|
|
|
|
top => $aref->[2], |
18
|
|
|
|
|
|
|
bottom => $aref->[3], |
19
|
|
|
|
|
|
|
legend_x => $aref->[4], |
20
|
|
|
|
|
|
|
legend_y => $aref->[5], |
21
|
|
|
|
|
|
|
); |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
has 'left' => ( |
26
|
|
|
|
|
|
|
is => 'rw', |
27
|
|
|
|
|
|
|
isa => 'Int', |
28
|
|
|
|
|
|
|
required => 1 |
29
|
|
|
|
|
|
|
); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
has 'right' => ( |
32
|
|
|
|
|
|
|
is => 'rw', |
33
|
|
|
|
|
|
|
isa => 'Int', |
34
|
|
|
|
|
|
|
required => 1 |
35
|
|
|
|
|
|
|
); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
has 'top' => ( |
38
|
|
|
|
|
|
|
is => 'rw', |
39
|
|
|
|
|
|
|
isa => 'Int', |
40
|
|
|
|
|
|
|
required => 1 |
41
|
|
|
|
|
|
|
); |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
has 'bottom' => ( |
44
|
|
|
|
|
|
|
is => 'rw', |
45
|
|
|
|
|
|
|
isa => 'Int', |
46
|
|
|
|
|
|
|
required => 1 |
47
|
|
|
|
|
|
|
); |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
has 'legend_x' => ( |
50
|
|
|
|
|
|
|
is => 'rw', |
51
|
|
|
|
|
|
|
#isa => 'Int', |
52
|
|
|
|
|
|
|
required => 0 |
53
|
|
|
|
|
|
|
); |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
has 'legend_y' => ( |
56
|
|
|
|
|
|
|
is => 'rw', |
57
|
|
|
|
|
|
|
#isa => 'Int', |
58
|
|
|
|
|
|
|
required => 0 |
59
|
|
|
|
|
|
|
); |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
62
|
|
|
|
|
|
|
|
63
|
1
|
|
|
1
|
|
6
|
no Moose; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
64
|
1
|
|
|
1
|
|
256
|
no Moose::Util::TypeConstraints; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
sub parameter_value { |
67
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
68
|
|
|
|
|
|
|
|
69
|
0
|
|
|
|
|
|
my $str = |
70
|
|
|
|
|
|
|
join(',', $self->left, $self->right, $self->top, $self->bottom ); |
71
|
|
|
|
|
|
|
|
72
|
0
|
0
|
|
|
|
|
if($self->legend_x) { |
73
|
0
|
|
|
|
|
|
$str .= "|" . $self->legend_x . "," . $self->legend_y; |
74
|
|
|
|
|
|
|
} |
75
|
|
|
|
|
|
|
|
76
|
0
|
|
|
|
|
|
return $str; |
77
|
|
|
|
|
|
|
} |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
1; |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
__END__ |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head1 NAME |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Google::Chart::Margin - Google::Chart Margin |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=cut |