| 1 | package Chart::OFC::Axis; | ||
| 2 | 24 | $Chart::OFC::Axis::VERSION = '0.12'; | |
| 3 | 24 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 24 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 24 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 24 | ▶ | use MooseX::StrictConstructor; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 24 | ▶ | use Chart::OFC::Types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 24 | with 'Chart::OFC::Role::OFCDataLines'; | |
| 11 | |||
| 12 | 24 | has text_size => | |
| 13 | ( is => 'ro', | ||
| 14 | isa => 'Int', | ||
| 15 | default => 10, | ||
| 16 | ); | ||
| 17 | |||
| 18 | 24 | has text_color => | |
| 19 | ( is => 'ro', | ||
| 20 | isa => 'Chart::OFC::Type::Color', | ||
| 21 | coerce => 1, | ||
| 22 | default => '#784016' | ||
| 23 | ); | ||
| 24 | |||
| 25 | 24 | has axis_color => | |
| 26 | ( is => 'ro', | ||
| 27 | isa => 'Chart::OFC::Type::Color', | ||
| 28 | coerce => 1, | ||
| 29 | predicate => '_has_axis_color', | ||
| 30 | ); | ||
| 31 | |||
| 32 | 24 | has grid_color => | |
| 33 | ( is => 'ro', | ||
| 34 | isa => 'Chart::OFC::Type::Color', | ||
| 35 | coerce => 1, | ||
| 36 | predicate => '_has_grid_color', | ||
| 37 | ); | ||
| 38 | |||
| 39 | 24 | has axis_label => | |
| 40 | ( is => 'ro', | ||
| 41 | isa => 'Chart::OFC::AxisLabel', | ||
| 42 | coerce => 1, | ||
| 43 | required => 1, | ||
| 44 | ); | ||
| 45 | |||
| 46 | 0 | ▶ | sub _ofc_data_lines { die 'This is a virtual method' } |
|
Subroutine
_ofc_data_lines: not called CC=1 SCAR=6.9
| |||
| 47 | |||
| 48 | 24 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 49 | |||
| 50 | 24 | __PACKAGE__->meta()->make_immutable(); | |
| 51 | |||
| 52 | 24 | 1; | |
| 53 | |||
| 54 | # ABSTRACT: Base class for axis classes | ||
| 55 | |||
| 56 | __END__ | ||