Image_Graph
[ class tree: Image_Graph ] [ index: Image_Graph ] [ all elements ]

Class: Image_Graph_Fill_Array

Source Location: /Image_Graph-0.8.0/Graph/Fill/Array.php

Class Overview

Image_Graph_Common
   |
   --Image_Graph_Fill
      |
      --Image_Graph_Fill_Array

A sequential array of fillstyles.


Author(s):

Version:

  • Release: 0.8.0

Copyright:

  • 2003-2009 The PHP Group

Methods


Inherited Variables

Inherited Methods

Class: Image_Graph_Common

Image_Graph_Common::Image_Graph_Common()
Constructor [Image_Graph_Common]
Image_Graph_Common::add()
Adds an element to the objects element list.
Image_Graph_Common::addNew()
Creates an object from the class and adds it to the objects element list.
Image_Graph_Common::hide()
Hide the element

Class Details

[line 59]
A sequential array of fillstyles.

This is used for filling multiple objects within the same element with different styles. This is done by adding multiple fillstyles to a FillArrray structure. The fillarray will then when requested return the 'next' fillstyle in sequential order. It is possible to specify ID tags to each fillstyle, which is used to make sure some data uses a specific fillstyle (i.e. in a multiple-/stackedbarchart you name the Image_Graph_Datasets and uses this name as ID tag when adding the dataset's associated fillstyle to the fillarray.



[ Top ]


Method Detail

add   [line 88]

Image_Graph_Fill &add( Image_Graph_Fill &$style, [string $id = ''])

Add a fill style to the array

Overrides Image_Graph_Common::add() (Adds an element to the objects element list.)

Parameters:

Image_Graph_Fill   &$style   —  The style to add
string   $id   —  The id or name of the style

[ Top ]

addColor   [line 107]

void addColor( int $color, [string $id = false])

Add a color to the array

Parameters:

int   $color   —  The color
string   $id   —  The id or name of the color

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:39:33 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.