John Goulah > Chart-OFC2-0.05 > Chart::OFC2::ToolTip

Download:
Chart-OFC2-0.05.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.05   Source   Latest Release: Chart-OFC2-0.08_02

NAME ^

Chart::OFC2::ToolTip - OFC2 tool tip settings object

SYNOPSIS ^

    use Chart::OFC2;
    use Chart::OFC2::Tooltip;
    
    my $tooltip = Chart::OFC2::ToolTip->new(
        'mouse'      => 2,
        'shadow'     => 0,
        'stroke'     => 5,
        'colour'     => '#6E604F',
        'background' => '#BDB396',
        'title'      => '{font-size: 14px; color: #CC2A43;}',
        'body'       => '{font-size: 10px; font-weight: bold; color: #000000;}',
    );

DESCRIPTION ^

OFC2 tooltip settings.

PROPERTIES ^

    has 'mouse'      => (is => 'rw', isa => 'Int',);
    has 'shadow'     => (is => 'rw', isa => 'Bool', );
    has 'stroke'     => (is => 'rw', isa => 'Int',);
    has 'colour'     => (is => 'rw', isa => 'Str',);
    has 'background' => (is => 'rw', isa => 'Str',);
    has 'title'      => (is => 'rw', isa => 'Str',);
    has 'body'       => (is => 'rw', isa => 'Str',);

METHODS ^

new()

Object constructor.

TO_JSON()

Returns HashRef that is possible to give to encode_json() function.

AUTHOR ^

Jozef Kutej

syntax highlighting: