Class Template
A template for signatures. This predefines the background Card
and Component
s.
Methods summary
public
|
|
public
array
|
#
getComponents( )
This template's components.
This template's components.
Returns
array
|
public
Signature
|
|
public
Card
|
#
getCard( )
Returns
Card The background card of this signature template.
|
public
|
#
setCard( Card $card )
Sets the background card of this signature template.
Sets the background card of this signature template.
Parameters
- $card
- The card to set to.
|
public
integer
|
|
public
integer
|
|
public
integer
|
#
calculateBaseWidth( )
Calculates the required width of the template based on the components
and their layout.
Calculates the required width of the template based on the components
and their layout.
Returns
integer The width we calculated.
|
public
integer
|
#
calculateBaseHeight( )
Calculates the required height of the template based on the components
and their layout.
Calculates the required height of the template based on the components
and their layout.
Returns
integer The height we calculated.
|
public
|
#
addComponent( Component $component )
Adds a component to this template
Adds a component to this template
Parameters
- $component
- The component to add
|
public
|
#
drawComponents( )
Draws the template's components
Draws the template's components
|