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

Class: Image_Graph_Driver_XMLSVG

Source Location: /Image_Graph-0.3.0dev2/Graph/Driver/XMLSVG.php

Class Overview

Image_Graph_Driver
   |
   --Image_Graph_Driver_XMLSVG

SVG Driver class.


Author(s):

Methods


Inherited Variables

Inherited Methods

Class: Image_Graph_Driver

Image_Graph_Driver::Image_Graph_Driver()
Create the driver.
Image_Graph_Driver::done()
Output the result of the driver
Image_Graph_Driver::ellipse()
Draw an ellipse
Image_Graph_Driver::factory()
Driver factory method.
Image_Graph_Driver::getHeight()
Get the height of the canvas
Image_Graph_Driver::getWidth()
Get the width of the canvas
Image_Graph_Driver::line()
Draw a line
Image_Graph_Driver::overlayImage()
Overlay image
Image_Graph_Driver::pieSlice()
Draw a pie slice
Image_Graph_Driver::polygonAdd()
Adds vertex to a polygon
Image_Graph_Driver::polygonEnd()
Draws a polygon
Image_Graph_Driver::rectangle()
Draw a rectangle
Image_Graph_Driver::setDefaultFont()
Sets the default font options.
Image_Graph_Driver::setFill()
Sets the style of the filling of drawn objects.
Image_Graph_Driver::setFillColor()
Sets the color of the filling of drawn objects
Image_Graph_Driver::setFillImage()
Sets an image that should be used for filling
Image_Graph_Driver::setFont()
Sets the font options.
Image_Graph_Driver::setGradientFill()
Sets a gradient fill
Image_Graph_Driver::setLineColor()
Sets the color of the line(s) to be drawn
Image_Graph_Driver::setLineThickness()
Sets the thickness of the line(s) to be drawn
Image_Graph_Driver::splineAdd()
Adds vertex to a polygon
Image_Graph_Driver::splineEnd()
Draws a polygon
Image_Graph_Driver::textHeight()
Get the height of a text,
Image_Graph_Driver::textWidth()
Get the width of a text,
Image_Graph_Driver::write()
Writes text

Class Details

[line 71]
SVG Driver class.


[ Top ]


Method Detail

Image_Graph_Driver_XMLSVG (Constructor)   [line 100]

Image_Graph_Driver_XMLSVG &Image_Graph_Driver_XMLSVG( array $param)

Create the SVG driver

Parameters:

array   $param   —  Parameter array

[ Top ]

done   [line 324]

void done( [array $param = false])

Output the result of the driver
  • Abstract:

Overrides Image_Graph_Driver::done() (Output the result of the driver)

Parameters:

array   $param   —  Parameter array

[ Top ]

ellipse   [line 303]

void ellipse( int $x, int $y, int $rx, int $ry, [mixed $fillColor = false], [mixed $lineColor = false])

Draw an ellipse

Overrides Image_Graph_Driver::ellipse() (Draw an ellipse)

Parameters:

int   $x   —  Center point x-value
int   $y   —  Center point y-value
int   $rx   —  X-radius of ellipse
int   $ry   —  Y-radius of ellipse
mixed   $fillColor   —  The fill color, can be omitted
mixed   $lineColor   —  The line color, can be omitted

[ Top ]

getHeight   [line 230]

int getHeight( )

Get the height of the canvas
  • Return: The height

Overrides Image_Graph_Driver::getHeight() (Get the height of the canvas)
[ Top ]

getWidth   [line 220]

int getWidth( )

Get the width of the canvas
  • Return: The width

Overrides Image_Graph_Driver::getWidth() (Get the width of the canvas)
[ Top ]

line   [line 253]

void line( int $x0, int $y0, int $x1, int $y1, [mixed $color = false])

Draw a line

Overrides Image_Graph_Driver::line() (Draw a line)

Parameters:

int   $x0   —  X start point
int   $y0   —  X start point
int   $x1   —  X end point
int   $y1   —  Y end point
mixed   $color   —  The line color, can be omitted

[ Top ]

rectangle   [line 278]

void rectangle( int $x0, int $y0, int $x1, int $y1, [mixed $fillColor = false], [mixed $lineColor = false])

Draw a rectangle

Overrides Image_Graph_Driver::rectangle() (Draw a rectangle)

Parameters:

int   $x0   —  X start point
int   $y0   —  X start point
int   $x1   —  X end point
int   $y1   —  Y end point
mixed   $fillColor   —  The fill color, can be omitted
mixed   $lineColor   —  The line color, can be omitted

[ Top ]

setFillImage   [line 240]

void setFillImage( string $filename)

Sets an image that should be used for filling

Overrides Image_Graph_Driver::setFillImage() (Sets an image that should be used for filling)

Parameters:

string   $filename   —  The filename of the image to fill with

[ Top ]


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