RubyProperties
in package
Ruby properties.
Tags
Table of Contents
Constants
- ALIGNMENT_CENTER = 'center'
- ALIGNMENT_DISTRIBUTE_LETTER = 'distributeLetter'
- ALIGNMENT_DISTRIBUTE_SPACE = 'distributeSpace'
- ALIGNMENT_LEFT = 'left'
- ALIGNMENT_RIGHT = 'right'
- ALIGNMENT_RIGHT_VERTICAL = 'rightVertical'
Properties
- $alignment : string
- Ruby alignment (w:rubyAlign).
- $baseTextFontSize : float
- Ruby font size for base text (w:hpsBaseText).
- $fontFaceSize : float
- Ruby font face size (w:hps).
- $fontPointsAboveText : float
- Ruby font points above base text (w:hpsRaise).
- $languageId : string
- Ruby type/language id (w:lid).
Methods
- __construct() : mixed
- Create a new RubyProperties object.
- getAlignment() : string
- Get the ruby alignment.
- getFontFaceSize() : float
- Get the ruby font face size.
- getFontPointsAboveBaseText() : float
- Get the ruby font points above base text.
- getFontSizeForBaseText() : float
- Get the ruby font size for base text.
- getLanguageId() : string
- Get the ruby language id.
- setAlignment() : self
- Set the Ruby Alignment (center, distributeLetter, distributeSpace, left, right, rightVertical).
- setFontFaceSize() : self
- Set the ruby font face size.
- setFontPointsAboveBaseText() : self
- Set the ruby font points above base text.
- setFontSizeForBaseText() : self
- Set the ruby font size for base text.
- setLanguageId() : self
- Set the ruby language id.
Constants
ALIGNMENT_CENTER
public
mixed
ALIGNMENT_CENTER
= 'center'
ALIGNMENT_DISTRIBUTE_LETTER
public
mixed
ALIGNMENT_DISTRIBUTE_LETTER
= 'distributeLetter'
ALIGNMENT_DISTRIBUTE_SPACE
public
mixed
ALIGNMENT_DISTRIBUTE_SPACE
= 'distributeSpace'
ALIGNMENT_LEFT
public
mixed
ALIGNMENT_LEFT
= 'left'
ALIGNMENT_RIGHT
public
mixed
ALIGNMENT_RIGHT
= 'right'
ALIGNMENT_RIGHT_VERTICAL
public
mixed
ALIGNMENT_RIGHT_VERTICAL
= 'rightVertical'
Properties
$alignment
Ruby alignment (w:rubyAlign).
private
string
$alignment
$baseTextFontSize
Ruby font size for base text (w:hpsBaseText).
private
float
$baseTextFontSize
$fontFaceSize
Ruby font face size (w:hps).
private
float
$fontFaceSize
$fontPointsAboveText
Ruby font points above base text (w:hpsRaise).
private
float
$fontPointsAboveText
$languageId
Ruby type/language id (w:lid).
private
string
$languageId
Methods
__construct()
Create a new RubyProperties object.
public
__construct() : mixed
getAlignment()
Get the ruby alignment.
public
getAlignment() : string
Return values
stringgetFontFaceSize()
Get the ruby font face size.
public
getFontFaceSize() : float
Return values
floatgetFontPointsAboveBaseText()
Get the ruby font points above base text.
public
getFontPointsAboveBaseText() : float
Return values
floatgetFontSizeForBaseText()
Get the ruby font size for base text.
public
getFontSizeForBaseText() : float
Return values
floatgetLanguageId()
Get the ruby language id.
public
getLanguageId() : string
Return values
stringsetAlignment()
Set the Ruby Alignment (center, distributeLetter, distributeSpace, left, right, rightVertical).
public
setAlignment(string $alignment) : self
Parameters
- $alignment : string
Return values
selfsetFontFaceSize()
Set the ruby font face size.
public
setFontFaceSize(float $size) : self
Parameters
- $size : float
Return values
selfsetFontPointsAboveBaseText()
Set the ruby font points above base text.
public
setFontPointsAboveBaseText(float $size) : self
Parameters
- $size : float
Return values
selfsetFontSizeForBaseText()
Set the ruby font size for base text.
public
setFontSizeForBaseText(float $size) : self
Parameters
- $size : float
Return values
selfsetLanguageId()
Set the ruby language id.
public
setLanguageId(string $langId) : self
Parameters
- $langId : string