| 1 | package Chart::OFC::Dataset::Area; | ||||||||||
| 2 | 20 | $Chart::OFC::Dataset::Area::VERSION = '0.12'; | |||||||||
| 3 | 20 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 20 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 20 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 20 | ▶ | use MooseX::StrictConstructor; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 20 | ▶ | use Chart::OFC::Types; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 20 | extends 'Chart::OFC::Dataset::Line'; | |||||||||
| 11 | |||||||||||
| 12 | 20 | has dot_size => | |||||||||
| 13 | ( is => 'ro', | ||||||||||
| 14 | isa => 'Chart::OFC::Type::PosInt', | ||||||||||
| 15 | default => 5, | ||||||||||
| 16 | ); | ||||||||||
| 17 | |||||||||||
| 18 | 20 | has opacity => | |||||||||
| 19 | ( is => 'ro', | ||||||||||
| 20 | isa => 'Chart::OFC::Type::Opacity', | ||||||||||
| 21 | default => '80', | ||||||||||
| 22 | ); | ||||||||||
| 23 | |||||||||||
| 24 | 20 | has fill_color => | |||||||||
| 25 | ( is => 'ro', | ||||||||||
| 26 | isa => 'Chart::OFC::Type::Color', | ||||||||||
| 27 | coerce => 1, | ||||||||||
| 28 | predicate => '_has_fill_color', | ||||||||||
| 29 | ); | ||||||||||
| 30 | |||||||||||
| 31 | sub type | ||||||||||
| 32 | 3 | ▶ | { | ||||||||
|
Subroutine
type: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 33 | 3 | return 'area_hollow'; | |||||||||
| 34 | } | ||||||||||
| 35 | |||||||||||
| 36 | sub _parameters_for_type | ||||||||||
| 37 | 3 | ▶ | { | ||||||||
|
Subroutine
_parameters_for_type: called CC=3 SCAR=11.0
| |||||||||||
| 38 | 3 | my $self = shift; | |||||||||
| 39 | |||||||||||
| 40 | 3 | my @p = ( $self->width(), $self->dot_size(), $self->opacity(), $self->color() ); | |||||||||
| 41 | |||||||||||
| 42 | 3 | ▶ | push @p, ( $self->label(), $self->text_size() ) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 43 | if $self->_has_label(); | ||||||||||
| 44 | |||||||||||
| 45 | 3 | ▶ | push @p, $self->fill_color() | ||||||||
|
Branch: 1 branch
| |||||||||||
| 46 | if $self->_has_fill_color(); | ||||||||||
| 47 | |||||||||||
| 48 | 3 | return @p; | |||||||||
| 49 | } | ||||||||||
| 50 | |||||||||||
| 51 | 20 | ▶ | no Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 52 | |||||||||||
| 53 | 20 | __PACKAGE__->meta()->make_immutable(); | |||||||||
| 54 | |||||||||||
| 55 | 20 | 1; | |||||||||
| 56 | |||||||||||
| 57 | |||||||||||
| 58 | # ABSTRACT: A dataset represented as a line with a filled area | ||||||||||
| 59 | |||||||||||
| 60 | __END__ | ||||||||||