Libchart

Simple PHP chart drawing library
  • Introduction
  • Download
  • Sample Code
  • Reference API
  • Links
  • Main Page
  • Classes
  • Directories
  • Class List
  • Class Members

ColorSet Class Reference

List of all members.

Public Member Functions

 ColorSet ($colorList, $shadowFactor)
 reset ()
 next ()
 currentColor ()
 currentShadowColor ()

Public Attributes

 $colorList
 $shadowColorList

Detailed Description

A set of colors, used for drawing series of data.

Author:
Jean-Marc Trémeaux (jm.tremeaux at gmail.com) Created on 26 july 2007


Member Function Documentation

ColorSet::ColorSet ( $  colorList,
$  shadowFactor 
)

ColorSet constructor.

Parameters:
$shadowFactor Shadow factor
$colorArray Colors as an array

ColorSet::reset (  ) 

Reset the iterator over the collections of colors.

ColorSet::next (  ) 

Iterate over the colors and shadow colors. When we go after the last one, loop over (TODO).

ColorSet::currentColor (  ) 

Returns the current color.

Returns:
Current color

ColorSet::currentShadowColor (  ) 

Returns the current shadow color.

Returns:
Current shadow color


The documentation for this class was generated from the following file:
  • ColorSet.php

Site last modified August 13th, 2007 by Jean-Marc Trémeaux