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

Class: Image_Graph_Fill_Array

Source Location: /Graph/Fill/Array.php

Class Overview

Image_Graph_Common
   |
   --Image_Graph_Element
      |
      --Image_Graph_Fill
         |
         --Image_Graph_Fill_Array

A sequential array of fillstyles.


Methods


Child classes:

Image_Graph_Fill_StandardColors
Fillarray containing a set of standard fill colors

Inherited Variables

Inherited Methods

Class: Image_Graph_Element

Image_Graph_Element::height()
The height of the element on the canvas
Image_Graph_Element::setBackground()
Sets the background fill style of the element
Image_Graph_Element::setBackgroundColor()
Sets the background color of the element
Image_Graph_Element::setBorderColor()
Sets the border color of the element
Image_Graph_Element::setBorderStyle()
Sets the border line style of the element
Image_Graph_Element::setFillColor()
Sets the fill color of the element
Image_Graph_Element::setFillStyle()
Sets the fill style of the element
Image_Graph_Element::setFont()
Sets the font of the element
Image_Graph_Element::setLineColor()
Sets the line color of the element
Image_Graph_Element::setLineStyle()
Sets the line style of the element
Image_Graph_Element::setPadding()
Sets padding of the element
Image_Graph_Element::showShadow()
Shows shadow on the element
Image_Graph_Element::width()
The width of the element on the canvas

Class: Image_Graph_Common

Image_Graph_Common::Image_Graph_Common()
Creates an a instance of Image_Graph_Common.
Image_Graph_Common::add()
Adds an element to the objects element list, the new Image_Graph_elements parent is automatically set
Image_Graph_Common::addColor()
Add a color. Ultimately it should call addColor() from the Image_Graph object
Image_Graph_Common::newColor()
Create a new Image_Graph_color.
Image_Graph_Common::setName()
Sets the name

Class Details

[line 48]
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 {@see Image_Graph_Dataset}s and uses this name as ID tag when adding the dataset's associated fillstyle to the fillarray.




[ Top ]


Class Methods


method add [line 72]

void &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, the new Image_Graph_elements parent is automatically set)

Parameters:

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

[ Top ]

method addColor [line 92]

void addColor( int $red, [int $green = false], [int $blue = false], [string $id = false])

Add a color to the array



Overrides Image_Graph_Common::addColor() (Add a color. Ultimately it should call addColor() from the Image_Graph object)

Parameters:

int   $red   The red part or the whole part
int   $green   The green part (or nothing), or the alpha channel
int   $blue   The blue part (or nothing)
string   $id   The id or name of the style

[ Top ]


Documentation generated on Wed, 15 Sep 2004 10:30:14 +0200 by phpDocumentor 1.2.3