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

Class: Image_Graph_Line_Array

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

Class Overview

Image_Graph_Common
   |
   --Image_Graph_Line_Array

A sequential array of linestyles.


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 linestyles.

This is used for multiple objects within the same element with different line styles. This is done by adding multiple line styles to a LineArrray structure. The linearray will then when requested return the 'next' linestyle in sequential order. It is possible to specify ID tags to each linestyle, which is used to make sure some data uses a specific linestyle (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 linestyle to the linearray.



[ Top ]


Method Detail

add   [line 77]

void add( Image_Graph_Line &$style, [??? $id = false])

Add a line style to the array

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

Parameters:

Image_Graph_Line   &$style   —  The style to add
???   $id   —  ???

[ Top ]

addColor   [line 99]

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.