AnewtSparklineImage Class Reference

Base sparkline image class. More...

List of all members.

Public Member Functions

 __construct ()
 Create a new Sparkline instance.
 set_image_border ($top, $right=null, $bottom=null, $left=null)
 Set the border of the image.

Protected Member Functions

 get_scaled_values ()
 Return a list of all values, scaled to the current scale factor and rounded to integers.


Detailed Description

Base sparkline image class.

Definition at line 17 of file sparkline.lib.php.


Member Function Documentation

AnewtSparklineImage::get_scaled_values (  )  [protected]

Return a list of all values, scaled to the current scale factor and rounded to integers.

Returns:
Scaled and rounced values

Definition at line 63 of file sparkline.lib.php.

AnewtSparklineImage::set_image_border ( top,
right = null,
bottom = null,
left = null 
)

Set the border of the image.

Omission of values works just like CSS. Note that something like $image->set('image-border', 3, null, 4, 2) doesn't work. This is intentional, since it makes no sense for a shorthand method. Single values can be specified using the image-border-top, image-border-right, image-border-bottom, and image-border-left properties.

Parameters:
$top Top image border
$right Right image border (optional)
$bottom Bottom image border (optional)
$left Left image border (optional)

Definition at line 89 of file sparkline.lib.php.


The documentation for this class was generated from the following file:

Generated on Sun Aug 2 22:54:38 2009 for Anewt by  doxygen 1.5.9