line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Chart::Clicker::Renderer; |
2
|
|
|
|
|
|
|
$Chart::Clicker::Renderer::VERSION = '2.89'; |
3
|
16
|
|
|
16
|
|
80825
|
use Moose; |
|
16
|
|
|
|
|
384268
|
|
|
16
|
|
|
|
|
134
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
extends 'Graphics::Primitive::Canvas'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: Base class for renderers |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has 'additive' => ( is => 'rw', isa => 'Bool', default => 0 ); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has 'clicker' => ( |
13
|
|
|
|
|
|
|
is => 'rw', |
14
|
|
|
|
|
|
|
isa => 'Chart::Clicker', |
15
|
|
|
|
|
|
|
weak_ref => 1 |
16
|
|
|
|
|
|
|
); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
has 'context' => ( is => 'rw', isa => 'Str' ); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
override('prepare', sub { |
22
|
|
|
|
|
|
|
my ($self) = @_; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
return 1; |
25
|
|
|
|
|
|
|
}); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
28
|
|
|
|
|
|
|
|
29
|
16
|
|
|
16
|
|
94429
|
no Moose; |
|
16
|
|
|
|
|
55
|
|
|
16
|
|
|
|
|
86
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=pod |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 NAME |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Chart::Clicker::Renderer - Base class for renderers |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 VERSION |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
version 2.89 |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 SYNOPSIS |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
my $renderer = Chart::Clicker::Renderer::Foo->new; |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 DESCRIPTION |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Chart::Clicker::Renderer represents the plot of the chart. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head2 additive |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Read-only value that informs Clicker that this renderer uses the combined ranges |
58
|
|
|
|
|
|
|
of all the series it charts in total. Used for 'stacked' renderers like |
59
|
|
|
|
|
|
|
StackedBar, StackedArea and Line (which will stack if told to). Note: If you |
60
|
|
|
|
|
|
|
set a renderer to additive that B<isn't> additive, this will produce wonky |
61
|
|
|
|
|
|
|
results. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head2 context |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
The context to which this Renderer is attached. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 AUTHOR |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Cory G Watson <gphat@cpan.org> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
This software is copyright (c) 2016 by Cory G Watson. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
76
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=cut |