Chart::Clicker::Data::Marker.3pm

Langue: en

Version: 2010-05-04 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Chart::Clicker::Data::Marker - Highlight arbitrary value(s)

DESCRIPTION

Used to highlight a particular key, value or range of either.

SYNOPSIS

  use Chart::Clicker::Data::Marker;
  use Graphics::Color::RGB;
  use Graphics::Primitive::Brush;
 
  my $cc = Chart::Clicker->new(...);
 
  my $mark = Chart::Clicker::Data::Marker->new(
     color   => Graphics::Color::RGB->new,
     brush  => Graphics::Primitive::Brush->new,
     key     => 12,
     value   => 123,
     # Optionally
     key2    => 13,
     value   => 146
  );
 
  my $ctx = $cc->get_context('default');
  $ctx->add_marker($mark);
  
  $cc->write_output('foo.png');
 
 

ATTRIBUTES

brush

Set/Get the brush for this Marker.

color

Set/Get the color for this marker.

key

Set/Get the key for this marker. This represents a point on the domain.

key2

Set/Get the key2 for this marker. This represents a second point on the domain and is used to specify a range.

value

Set/Get the value for this marker. This represents a point on the range.

value2

Set/Get the value2 for this marker. This represents a second point on the range and is used to specify a range.

METHODS

new

Create a new Marker.

AUTHOR

Cory G Watson <gphat@cpan.org>

SEE ALSO

perl(1)

LICENSE

You can redistribute and/or modify this code under the same terms as Perl itself.