AbstractAlignment
in package
implements
AlignmentInterface
AbstractYes
Pdf page text abstract alignment class
Tags
Table of Contents
Interfaces
- AlignmentInterface
- Pdf page text alignment interface
Constants
Properties
- $alignment : string
- Text alignment
- $leading : int
- Text leading
- $leftX : int
- Left X boundary
- $rightX : int
- Right X boundary
Methods
- __construct() : mixed
- Constructor
- getAlignment() : string
- Get alignment
- getLeading() : int
- Get the leading
- getLeftX() : int
- Get the left X
- getRightX() : int
- Get the right X
- hasLeading() : bool
- Has leading
- hasLeftX() : bool
- Has left X
- hasRightX() : bool
- Has right X
- isLeft() : bool
- Is LEFT alignment
- isRight() : bool
- Is RIGHT alignment
- setAlignment() : AbstractAlignment
- Set alignment
- setLeading() : AbstractAlignment
- Set the leading
- setLeftX() : AbstractAlignment
- Set the left X boundary
- setRightX() : AbstractAlignment
- Set the right X boundary
Constants
LEFT
Alignment constants
public
mixed
LEFT
= 'LEFT'
RIGHT
public
mixed
RIGHT
= 'RIGHT'
Properties
$alignment
Text alignment
protected
string
$alignment
= self::LEFT
$leading
Text leading
protected
int
$leading
= 0
$leftX
Left X boundary
protected
int
$leftX
= 0
$rightX
Right X boundary
protected
int
$rightX
= 0
Methods
__construct()
Constructor
public
__construct([string $alignment = self::LEFT ][, int $leftX = 0 ][, int $rightX = 0 ][, int $leading = 0 ]) : mixed
Instantiate a PDF text alignment object.
Parameters
- $alignment : string = self::LEFT
- $leftX : int = 0
- $rightX : int = 0
- $leading : int = 0
getAlignment()
Get alignment
public
getAlignment() : string
Return values
stringgetLeading()
Get the leading
public
getLeading() : int
Return values
intgetLeftX()
Get the left X
public
getLeftX() : int
Return values
intgetRightX()
Get the right X
public
getRightX() : int
Return values
inthasLeading()
Has leading
public
hasLeading() : bool
Return values
boolhasLeftX()
Has left X
public
hasLeftX() : bool
Return values
boolhasRightX()
Has right X
public
hasRightX() : bool
Return values
boolisLeft()
Is LEFT alignment
public
isLeft() : bool
Return values
boolisRight()
Is RIGHT alignment
public
isRight() : bool
Return values
boolsetAlignment()
Set alignment
public
setAlignment(string $alignment) : AbstractAlignment
Parameters
- $alignment : string
Return values
AbstractAlignmentsetLeading()
Set the leading
public
setLeading(int $leading) : AbstractAlignment
Parameters
- $leading : int
Return values
AbstractAlignmentsetLeftX()
Set the left X boundary
public
setLeftX(int $x) : AbstractAlignment
Parameters
- $x : int
Return values
AbstractAlignmentsetRightX()
Set the right X boundary
public
setRightX(int $x) : AbstractAlignment
Parameters
- $x : int