Chart::Clicker::Data::Range(3pm)

Chart::Clicker::Data::Range3pm

A range of data

Usage

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

Version

version 2.90

Overview

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

Attributes

lower

Set/Get the lower bound for this Range

max

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

min

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

upper

Set/Get the upper bound for this Range

ticks

The number of ticks to be displayed for this range.

Methods

add

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

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.

contains ($value)

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

span

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

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0
  2. 7
  3. 8
  4. 9–11
  5. 12–13

Author

Cory G Watson <[email protected]>

From libchart-clicker-perl 2.90-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.