AnewtSparklineImage class

Base sparkline image class.

Class Overview

Base sparkline image class.

Public Methods

__construct()

Create a new Sparkline instance.

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)

Protected Methods

get_scaled_values() [protected]

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

Return value

Scaled and rounced values

Inheritance

Base Classes

Inherited members