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

Class: Circle

Source Location: /Circle.php

Class Overview

Shape
   |
   --Circle

Wrapper around gd's Image(Filled)Arc functions


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 166]
Wrapper around gd's Image(Filled)Arc functions

This class is utilized by the PieChart class for generating the pie chart type




Tags:

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


[ Top ]


Class Variables

$Center_XPos =

[line 173]

x value of the pie's center position



Tags:

access:  private

Type:   integer


[ Top ]

$Center_YPos =

[line 180]

y value of the pie's center position



Tags:

access:  private

Type:   integer


[ Top ]

$Chunk = array()

[line 201]

Array holding the chunks composing the pie



Tags:

access:  private

Type:   mixed


[ Top ]

$Current_Degree =

[line 207]



Tags:

access:  private

Type:   integer


[ Top ]

$Height =

[line 194]

pie's height



Tags:

access:  private

Type:   mixed


[ Top ]

$Width =

[line 187]

pie's width



Tags:

access:  private

Type:   mixed


[ Top ]



Class Methods


constructor __construct [line 218]

Circle __construct( mixed &$Canvas, ColorAllocator &$ColorAllocator, mixed $UseAntialias, integer $Center_XPos, integer $Center_YPos, integer $Width, integer $Height)

Constructor



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

Parameters:

mixed   $Canvas   Reference to the image handler the pie will be drawn in
ColorAllocator   $ColorAllocator   Reference to the ColorAllocator the class will use for allocating chunks' colors
integer   $Center_XPos   x value of the pie's center position
integer   $Center_YPos   y value of the pie's center position
integer   $Width   Pie's width
integer   $Height   Pie's height

[ Top ]

method addChunk [line 234]

void addChunk( Chunk $chunk, Chunk &$chunk)

Adds a chunk to the pie



Tags:

access:  public


Parameters:

Chunk   &$chunk  

[ Top ]

method draw [line 267]

void draw( string $BorderColor)

Draws the border of the pie



Tags:

access:  public


Parameters:

string   $BorderColor  

[ Top ]

method draw_Caption [line 329]

void draw_Caption( )

Draws the caption of each chunk



Tags:

access:  private


[ Top ]

method draw_Chunk [line 315]

void draw_Chunk( mixed $chunk, mixed $ColorHandler)

This function is called by Circle::draw() to draw a uniform color chunk if Chunk::$StartColor and Chunk::$FinishColor are the same colors



Tags:

access:  private


[ Top ]

method draw_Filled [line 243]

void draw_Filled( )

Draws a filled with color pie



Tags:

access:  public


[ Top ]

method draw_GradientChunk [line 301]

void draw_GradientChunk( mixed $chunk, mixed $ColorHandler)

This function is called by Circle::draw() to draw a gradient color chunk if Chunk::$StartColor is different from Chunk::$FinishColor



Tags:

access:  private


[ Top ]


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