| 1 | package Chart::Clicker::Renderer; | ||
| 2 | 16 | $Chart::Clicker::Renderer::VERSION = '2.89'; | |
| 3 | 16 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 16 | extends 'Graphics::Primitive::Canvas'; | |
| 6 | |||
| 7 | # ABSTRACT: Base class for renderers | ||
| 8 | |||
| 9 | |||
| 10 | 16 | has 'additive' => ( is => 'rw', isa => 'Bool', default => 0 ); | |
| 11 | |||
| 12 | 16 | has 'clicker' => ( | |
| 13 | is => 'rw', | ||
| 14 | isa => 'Chart::Clicker', | ||
| 15 | weak_ref => 1 | ||
| 16 | ); | ||
| 17 | |||
| 18 | |||
| 19 | 16 | has 'context' => ( is => 'rw', isa => 'Str' ); | |
| 20 | |||
| 21 | override('prepare', sub { | ||
| 22 | 0 | ▶ | my ($self) = @_; |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 23 | |||
| 24 | 0 | return 1; | |
| 25 | 16 | }); | |
| 26 | |||
| 27 | 16 | __PACKAGE__->meta->make_immutable; | |
| 28 | |||
| 29 | 16 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 30 | |||
| 31 | 16 | 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 | ||