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

Class: Image_Graph_Element

Source Location: /Image_Graph-0.3.0dev1/Graph/Element.php

Class Overview

Image_Graph_Common
   |
   --Image_Graph_Element

Representation of a element.


Author(s):

Methods


Child classes:

Image_Graph_Plotarea_Element
Representation of a element on a plotarea.
Image_Graph_Figure_Polygon
Polygon to draw on the canvas
Image_Graph_Figure_Ellipse
Ellipse to draw on the canvas
Image_Graph_Figure_Rectangle
Rectangle to draw on the canvas
Image_Graph_Fill
Style used for filling elements.
Image_Graph_Logo
Displays a logo on the canvas.
Image_Graph
Main class for the graph creation.

Inherited Variables

Inherited Methods

Class: Image_Graph_Common

Image_Graph_Common::Image_Graph_Common()
Constructor
Image_Graph_Common::add()
Adds an element to the objects element list, the new Image_Graph_elements parent is automatically set
Image_Graph_Common::addNew()
Creates an object from the class specified and adds it to the objects element list.

Class Details

[line 47]
Representation of a element.

The Image_Graph_Element can be drawn on the canvas, ie it has coordinates, {@see Image_Graph_Line}, {@see Image_Graph_Fill}, border and background - although not all of these may apply to all children.

  • Abstract:


[ Top ]


Method Detail

height   [line 385]

int height( )

The height of the element on the canvas
  • Return: Number of pixels representing the height of the element

Overridden in child classes as:

Image_Graph::height()
The height of the graph

[ Top ]

setBackground   [line 122]

void setBackground( &$background, Image_Graph_Fill $background)

Sets the background fill style of the element
  • See: Image_Graph_Fill

Overridden in child classes as:

Image_Graph_Marker_Value::setBackground()
Sets the background fill style of the element

Parameters:

Image_Graph_Fill   $background   —  The background
   &$background   — 

[ Top ]

setBackgroundColor   [line 144]

void setBackgroundColor( mixed $color)

Sets the background color of the element

Overridden in child classes as:

Image_Graph_Marker_Value::setBackgroundColor()
Sets the background color of the element

Parameters:

mixed   $color   —  The color

[ Top ]

setBorderColor   [line 185]

void setBorderColor( mixed $color)

Sets the border color of the element

Parameters:

mixed   $color   —  The color

[ Top ]

setBorderStyle   [line 171]

void setBorderStyle( &$borderStyle, Image_Graph_Line $borderStyle)

Sets the border line style of the element
  • See: Image_Graph_Line

Parameters:

Image_Graph_Line   $borderStyle   —  The line style of the border
   &$borderStyle   — 

[ Top ]

setFillColor   [line 279]

void setFillColor( mixed $color)

Sets the fill color of the element

Parameters:

mixed   $color   —  The color

[ Top ]

setFillStyle   [line 265]

void setFillStyle( &$fillStyle, Image_Graph_Fill $fillStyle)

Sets the fill style of the element
  • See: Image_Graph_Fill

Parameters:

Image_Graph_Fill   $fillStyle   —  The fill style of the element
   &$fillStyle   — 

[ Top ]

setFont   [line 307]

void setFont( &$font, Font $font)

Sets the font of the element
  • See: Image_Graph_Font

Parameters:

Font   $font   —  The font of the element
   &$font   — 

[ Top ]

setLineColor   [line 232]

void setLineColor( mixed $color)

Sets the line color of the element

Parameters:

mixed   $color   —  The color

[ Top ]

setLineStyle   [line 218]

void setLineStyle( &$lineStyle, Image_Graph_Line $lineStyle)

Sets the line style of the element
  • See: Image_Graph_Line

Parameters:

Image_Graph_Line   $lineStyle   —  The line style of the element
   &$lineStyle   — 

[ Top ]

setPadding   [line 367]

void setPadding( int $padding)

Sets padding of the element

Parameters:

int   $padding   —  Number of pixels the element should be padded with

[ Top ]

showShadow   [line 135]

void showShadow( )

Shows shadow on the element

[ Top ]

width   [line 376]

int width( )

The width of the element on the canvas
  • Return: Number of pixels representing the width of the element

Overridden in child classes as:

Image_Graph::width()
The width of the graph

[ Top ]

write   [line 518]

void write( int $x, int $y, string $text, [ $alignment = false], int $alignmen)

Writes text to the canvas.

Parameters:

int   $x   —  The x position relative to alignment
int   $y   —  The y position relative to alignment
string   $text   —  The text
int   $alignmen   —  The text alignment (both vertically and horizontally)
   $alignment   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 13:57:45 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.