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

Class: Line

Source Location: /Line.php

Class Overview

Shape
   |
   --Line

Wrapper around gd's ImageLine function


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 21]
Wrapper around gd's ImageLine function



Tags:

license:  GNU Public License
author:  Tsiavos Chris <jaames@freemail.gr>


[ Top ]


Class Variables

$Breadth =

[line 34]

The line breadth



Tags:

access:  private

Type:   mixed


[ Top ]

$Points = array()

[line 27]



Tags:

access:  private

Type:   string[]


[ Top ]



Class Methods


constructor __construct [line 43]

Line __construct( mixed &$Canvas, ColorAllocator &$ColorAllocator, string $UseAntialias, [integer $Breadth = NULL])

Constructor



Tags:

access:  public


Overrides Shape::__construct() (parent method not documented)

Parameters:

mixed   &$Canvas   reference to the image handler the line will be drawn in
ColorAllocator   &$ColorAllocator   reference to the ColorAllocator the class will use for allocating the line color
integer   $Breadth  
string   $UseAntialias   ("Yes","No") $UseAntialias specifies if antialias functions should be used or not when drawing the line

[ Top ]

method add_Point [line 53]

void add_Point( mixed $point)

Adds a point to the line



Tags:

access:  public


[ Top ]

method draw [line 99]

void draw( string $BorderColor, integer $Alpha)

Draws the border of a line



Tags:

access:  public


Parameters:

string   $BorderColor  
integer   $Alpha   0-127 $Alpha

[ Top ]

method draw_Dashed [line 73]

void draw_Dashed( string $BorderColor, integer $Alpha)

Draws a dashed line



Tags:

access:  public


Parameters:

string   $BorderColor  
integer   $Alpha   0-127 $Alpha

[ Top ]

method draw_Filled [line 135]

void draw_Filled( string $StartColor, string $FinishColor, integer $Alpha)

Draws a filled with color line



Tags:

access:  public


Parameters:

string   $StartColor  
string   $FinishColor  
integer   $Alpha   0-127 $Alpha

[ Top ]

method draw_GradientLine [line 151]

void draw_GradientLine( mixed $ColorHandler)

Draws a gradient color line with breadth=$this->Breadth



Tags:

access:  private


Parameters:

mixed   $ColorHandler  

[ Top ]

method draw_NormalLine [line 177]

void draw_NormalLine( mixed $ColorHandler)

Draws a uniform color line with breadth=$this->Breadth



Tags:

access:  private


Parameters:

mixed   $ColorHandler  

[ Top ]

method get_Points [line 62]

string[] get_Points( )

Returns the line's points



Tags:

access:  public


[ Top ]


Documentation generated on Sun, 3 Oct 2004 14:59:18 +0300 by phpDocumentor 1.3.0RC3