PHP 클래스 PMA\libraries\plugins\schema\eps\Eps

또한 보기: https://secure.php.net/manual/en/book.xmlwriter.php
파일 보기 프로젝트 열기: phpmyadmin/phpmyadmin

공개 프로퍼티들

프로퍼티 타입 설명
$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