Chart::Clicker::Axis
Chart::Clicker::Axis represents the plot of the chart.
use Chart::Clicker::Axis; use Chart::Clicker::Drawing qw(:positions); use Chart::Clicker::Drawing::Color; use Chart::Clicker::Drawing::Font; use Chart::Clicker::Drawing::Stroke; my $axis = new Chart::Clicker::Axis({ color => new Chart::Clicker::Drawing::Color({ name => 'black' }), font => new Chart::Clicker::Drawing::Font(), orientation => $CC_VERTICAL, position => $CC_LEFT, show_ticks => 1, stroke = new Chart::Clicker::Drawing::Stroke(), tick_length => 2, tick_stroke => new Chart::Clicker::Drawing::Stroke(), visible => 1, });
Creates a new Chart::Clicker::Axis. If no arguments are given then sane defaults are chosen.
Set/Get the color of the axis.
Set/Get the font used for the axis' labels.
Set/Get the format to use for the axis values. The format is applied to each value 'tick' via sprintf(). See sprintf()s perldoc for details! This is useful for situations where the values end up with repeating decimals.
Set/Get the height of the axis.
Set/Get the label of the axis.
Set/Get the orientation of this axis.
Set/Get the 'per' value for the axis. This is how many physical pixels a unit on the axis represents. If the axis represents a range of 0-100 and the axis is 200 pixels high then the per value will be 2.
Set/Get the position of the axis on the chart.
Set/Get the Range for this axis.
Set/Get the show ticks flag.
Set/Get the stroke for this axis.
Set/Get the tick length
Set/Get the stroke for the tick markers.
Set/Get the arrayref of values show as ticks on this Axis.
Set/Get the number of 'ticks' to show. Setting this will divide the range on this axis by the specified value to establish tick values.
Given a value, returns it's position on this axis.
Given a value, returns it formatted using this Axis' formatter.
Gives the axis an opportunity to examine values.
Prepare this Axis by determining the size required. If the orientation is CC_HORIZONTAL this method sets the height. Otherwise sets the width.
Draw this axis.
Set/Get this axis visibility flag.
Set/Get this axis' width.
Cory 'G' Watson <gphat@cpan.org>
perl(1)
You can redistribute and/or modify this code under the same terms as Perl itself.
To install Chart::Clicker, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chart::Clicker
CPAN shell
perl -MCPAN -e shell install Chart::Clicker
For more information on module installation, please visit the detailed CPAN module installation guide.