DOKK / manpages / debian 10 / libchart-clicker-perl / Chart::Clicker::Data::Range.3pm.en
Chart::Clicker::Data::Range(3pm) User Contributed Perl Documentation Chart::Clicker::Data::Range(3pm)

Chart::Clicker::Data::Range - A range of Data

version 2.90

  use Chart::Clicker::Data::Range;
  my $range = Chart::Clicker::Data::Range->new({
    lower => 1,
    upper => 10
  });

Chart::Clicker::Data::Range implements a range of values.

Set/Get the lower bound for this Range

Set/Get the maximum value allowed for this Range. This value should only be set if you want to EXPLICITLY set the upper value.

Set/Get the minimum value allowed for this Range. This value should only be set if you want to EXPLICITLY set the lower value.

Set/Get the upper bound for this Range

The number of ticks to be displayed for this range.

Adds the specified range to this one. The lower is reduced to that of the provided one if it is lower, and the upper is ADDED to this range's upper.

Combine this range with the specified so that this range encompasses the values specified. For example, adding a range with an upper-lower of 1-10 with one of 5-20 will result in a combined range of 1-20.

Returns true if supplied value falls within this range (inclusive). Otherwise returns false.

Returns the span of this range, or UPPER - LOWER.

Cory G Watson <gphat@cpan.org>

This software is copyright (c) 2016 by Cory G Watson.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

2016-12-28 perl v5.24.1