PHP Class PMA\libraries\plugins\schema\eps\Eps

See also: https://secure.php.net/manual/en/book.xmlwriter.php
Show file Open project: phpmyadmin/phpmyadmin

Public Properties

Property Type Description
$font
$fontSize
$stringCommands

Public Methods

Method Description
__construct ( ) The "Eps" constructor
endEpsDoc ( ) : void Ends EPS Document
getFont ( ) : string Get the font
getFontSize ( ) : string Get the font Size
line ( integer $x_from, integer $y_from, integer $x_to, integer $y_to, integer $lineWidth ) : void Draw the line
moveTo ( integer $x, integer $y ) : void Set the current point
rect ( integer $x_from, integer $y_from, integer $x_to, integer $y_to, integer $lineWidth ) : void Draw the rectangle
setAuthor ( string $value ) : void Set document author
setDate ( string $value ) : void Set document creation date
setFont ( string $value, integer $size ) : void Set the font and size
setOrientation ( string $orientation ) : void Set document orientation
setTitle ( string $value ) : void Set document title
show ( string $text ) : void Output/Display the text
showOutput ( string $fileName ) : void Output EPS Document for download
showXY ( string $text, integer $x, integer $y ) : void Output the text at specified co-ordinates

Method Details

__construct() public method

Upon instantiation This starts writing the EPS Document. %!PS-Adobe-3.0 EPSF-3.0 This is the MUST first comment to include it shows/tells that the Post Script document is purely under Document Structuring Convention [DSC] and is Compliant Encapsulated Post Script Document
public __construct ( )

endEpsDoc() public method

Ends EPS Document
public endEpsDoc ( ) : void
return void

getFont() public method

Get the font
public getFont ( ) : string
return string return the font name e.g Arial

getFontSize() public method

Get the font Size
public getFontSize ( ) : string
return string return the size of the font e.g 10

line() public method

drawing the lines from x,y source to x,y destination and set the width of the line. lines helps in showing relationships of tables
public line ( integer $x_from, integer $y_from, integer $x_to, integer $y_to, integer $lineWidth ) : void
$x_from integer The x_from attribute defines the start left position of the element
$y_from integer The y_from attribute defines the start right position of the element
$x_to integer The x_to attribute defines the end left position of the element
$y_to integer The y_to attribute defines the end right position of the element
$lineWidth integer Sets the width of the line e.g 2
return void

moveTo() public method

The moveto operator takes two numbers off the stack and treats them as x and y coordinates to which to move. The coordinates specified become the current point.
public moveTo ( integer $x, integer $y ) : void
$x integer The x attribute defines the left position of the element
$y integer The y attribute defines the right position of the element
return void

rect() public method

drawing the rectangle from x,y source to x,y destination and set the width of the line. rectangles drawn around the text shown of fields
public rect ( integer $x_from, integer $y_from, integer $x_to, integer $y_to, integer $lineWidth ) : void
$x_from integer The x_from attribute defines the start left position of the element
$y_from integer The y_from attribute defines the start right position of the element
$x_to integer The x_to attribute defines the end left position of the element
$y_to integer The y_to attribute defines the end right position of the element
$lineWidth integer Sets the width of the line e.g 2
return void

setAuthor() public method

Set document author
public setAuthor ( string $value ) : void
$value string sets the author
return void

setDate() public method

Set document creation date
public setDate ( string $value ) : void
$value string sets the date
return void

setFont() public method

font can be set whenever needed in EPS
public setFont ( string $value, integer $size ) : void
$value string sets the font name e.g Arial
$size integer sets the size of the font e.g 10
return void

setOrientation() public method

Set document orientation
public setOrientation ( string $orientation ) : void
$orientation string sets the orientation
return void

setTitle() public method

Set document title
public setTitle ( string $value ) : void
$value string sets the title text
return void

show() public method

Output/Display the text
public show ( string $text ) : void
$text string The string to be displayed
return void

showOutput() public method

Output EPS Document for download
public showOutput ( string $fileName ) : void
$fileName string name of the eps document
return void

showXY() public method

Output the text at specified co-ordinates
public showXY ( string $text, integer $x, integer $y ) : void
$text string String to be displayed
$x integer X attribute defines the left position of the element
$y integer Y attribute defines the right position of the element
return void

Property Details

$font public property

public $font

$fontSize public property

public $fontSize

$stringCommands public property

public $stringCommands