PHP Класс PMA\libraries\plugins\schema\eps\Eps

См. также: https://secure.php.net/manual/en/book.xmlwriter.php
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$font
$fontSize
$stringCommands

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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() публичный Метод

Ends EPS Document
public endEpsDoc ( ) : void
Результат void

getFont() публичный Метод

Get the font
public getFont ( ) : string
Результат string return the font name e.g Arial

getFontSize() публичный Метод

Get the font Size
public getFontSize ( ) : string
Результат string return the size of the font e.g 10

line() публичный Метод

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
Результат void

moveTo() публичный Метод

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
Результат void

rect() публичный Метод

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
Результат void

setAuthor() публичный Метод

Set document author
public setAuthor ( string $value ) : void
$value string sets the author
Результат void

setDate() публичный Метод

Set document creation date
public setDate ( string $value ) : void
$value string sets the date
Результат void

setFont() публичный Метод

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
Результат void

setOrientation() публичный Метод

Set document orientation
public setOrientation ( string $orientation ) : void
$orientation string sets the orientation
Результат void

setTitle() публичный Метод

Set document title
public setTitle ( string $value ) : void
$value string sets the title text
Результат void

show() публичный Метод

Output/Display the text
public show ( string $text ) : void
$text string The string to be displayed
Результат void

showOutput() публичный Метод

Output EPS Document for download
public showOutput ( string $fileName ) : void
$fileName string name of the eps document
Результат void

showXY() публичный Метод

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
Результат void

Описание свойств

$font публичное свойство

public $font

$fontSize публичное свойство

public $fontSize

$stringCommands публичное свойство

public $stringCommands