| 1 | package Chart::OFC::Dataset::SketchBar; | ||||||||||
| 2 | 20 | $Chart::OFC::Dataset::SketchBar::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::OutlinedBar'; | |||||||||
| 11 | |||||||||||
| 12 | 20 | has randomness => | |||||||||
| 13 | ( is => 'ro', | ||||||||||
| 14 | isa => 'Chart::OFC::Type::PosOrZeroInt', | ||||||||||
| 15 | default => '3', | ||||||||||
| 16 | ); | ||||||||||
| 17 | |||||||||||
| 18 | sub type | ||||||||||
| 19 | 3 | ▶ | { | ||||||||
|
Subroutine
type: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 20 | 3 | return 'bar_sketch'; | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | sub _parameters_for_type | ||||||||||
| 24 | 3 | ▶ | { | ||||||||
|
Subroutine
_parameters_for_type: called CC=2 SCAR=6.9
| |||||||||||
| 25 | 3 | my $self = shift; | |||||||||
| 26 | |||||||||||
| 27 | 3 | my @p = ( $self->opacity(), $self->randomness(), | |||||||||
| 28 | $self->fill_color(), $self->outline_color() ); | ||||||||||
| 29 | 3 | ▶ | push @p, ( $self->label(), $self->text_size() ) | ||||||||
|
Branch: 1 branch
| |||||||||||
| 30 | if $self->_has_label(); | ||||||||||
| 31 | |||||||||||
| 32 | 3 | return @p; | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | 20 | ▶ | no Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 36 | |||||||||||
| 37 | 20 | __PACKAGE__->meta()->make_immutable(); | |||||||||
| 38 | |||||||||||
| 39 | 20 | 1; | |||||||||
| 40 | |||||||||||
| 41 | # ABSTRACT: A dataset represented as "sketch" bars | ||||||||||
| 42 | |||||||||||
| 43 | __END__ | ||||||||||