Repository
public class |source

StyledLetter

StyledLetter is a class that helps to represents a letter with its style for later drawing.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

color: *

public

font: *

public
public

letter: *

public

path: *

public

size: *

public
public
public

Method Summary

Public Methods
public

setColor(color: Color)

Defines the letter's color

public

setFont(font: Font)

Defines the letter's font

public

setLetter(letter: String)

Defines the letter's string

public

setSize(size: Number)

Defines the letter's font size

public

Defines the letter's x coord

public

Defines the letter's y coord

public

Updates properties according to the new settings

Public Constructors

public constructor(params: Object) source

Params:

NameTypeAttributeDescription
paramsObject

Parameters object, given by the constructor.

params.letterString

the letter's string (character)

params.sizeNumber

the size of the font

params.fontFont

a Mobilizing font reference

params.colorColor

a CSS Color

Public Members

public boundingBox: * source

public color: * source

public font: * source

public height: number source

public letter: * source

public path: * source

public size: * source

public width: number source

public x: number source

public y: number source

Public Methods

public setColor(color: Color) source

Defines the letter's color

Params:

NameTypeAttributeDescription
colorColor

public setFont(font: Font) source

Defines the letter's font

Params:

NameTypeAttributeDescription
fontFont

public setLetter(letter: String) source

Defines the letter's string

Params:

NameTypeAttributeDescription
letterString

public setSize(size: Number) source

Defines the letter's font size

Params:

NameTypeAttributeDescription
sizeNumber

public setX(x: Number) source

Defines the letter's x coord

Params:

NameTypeAttributeDescription
xNumber

public setY(y: Number) source

Defines the letter's y coord

Params:

NameTypeAttributeDescription
yNumber

public update() source

Updates properties according to the new settings