line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id$ |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Google::Chart::Grid; |
4
|
1
|
|
|
1
|
|
6
|
use Moose; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
8
|
|
5
|
1
|
|
|
1
|
|
7413
|
use Moose::Util::TypeConstraints; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
9
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
2456
|
use constant parameter_name => 'chg'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
233
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
with 'Google::Chart::QueryComponent::Simple'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
coerce 'Google::Chart::Grid' |
12
|
|
|
|
|
|
|
=> from 'HashRef' |
13
|
|
|
|
|
|
|
=> via { |
14
|
|
|
|
|
|
|
Google::Chart::Grid->new(%{$_}); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
has 'x_step_size' => ( |
20
|
|
|
|
|
|
|
is => 'rw', |
21
|
|
|
|
|
|
|
isa => 'Num', |
22
|
|
|
|
|
|
|
required => 1, |
23
|
|
|
|
|
|
|
default => 20, |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
has 'y_step_size' => ( |
27
|
|
|
|
|
|
|
is => 'rw', |
28
|
|
|
|
|
|
|
isa => 'Num', |
29
|
|
|
|
|
|
|
required => 1, |
30
|
|
|
|
|
|
|
default => 20, |
31
|
|
|
|
|
|
|
); |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
has 'line_length' => ( |
34
|
|
|
|
|
|
|
is => 'rw', |
35
|
|
|
|
|
|
|
isa => 'Num', |
36
|
|
|
|
|
|
|
required => 1, |
37
|
|
|
|
|
|
|
default => 1, |
38
|
|
|
|
|
|
|
); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
has 'blank_length' => ( |
41
|
|
|
|
|
|
|
is => 'rw', |
42
|
|
|
|
|
|
|
isa => 'Num', |
43
|
|
|
|
|
|
|
required => 1, |
44
|
|
|
|
|
|
|
default => 1, |
45
|
|
|
|
|
|
|
); |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
48
|
|
|
|
|
|
|
|
49
|
1
|
|
|
1
|
|
7
|
no Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
50
|
1
|
|
|
1
|
|
225
|
no Moose::Util::TypeConstraints; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub parameter_value { |
53
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
54
|
0
|
|
|
|
|
|
return join(',', map { $self->$_ } qw(x_step_size y_step_size line_length blank_length)); |
|
0
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
1; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
__END__ |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 NAME |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Google::Chart::Grid - Google::Chart Grid Specification |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 METHODS |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head2 as_query |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=cut |