Class Index | File Index

Classes


Class createjs.Text


Extends .

Defined in: text.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
createjs.Text(text, font, color)
A class that displays one-line text or multi-line text.
Method Summary
Method Attributes Method Name and Description
 
 
Returns the text color.
 
Returns the text font.
 
Returns the line height.
 
Returns the line width.
 
Returns the maximum width.
 
Returns the approximate height of multi-line text.
 
Returns an approximate line height of the text.
 
Returns the measured, untransformed width of the text without wrapping.
 
Returns the thickness of text outlines.
 
 
Returns the text.
 
Returns the text alignment.
 
Returns the text baseline.
 
 
 
 
layout(renderer, parent, dirty, time, draw)
 
paintObject(renderer)
 
removeAllChildren(opt_destroy)
 
set(properties)
 
setColor(value)
Sets the text color.
 
setFont(font)
Sets the text font.
 
setLineHeight(lineHeight)
Sets the line height.
 
setLineWidth(lineWidth)
Sets the line width.
 
setMaxWidth(maxWidth)
Sets the maximum width.
 
setOutline(outline)
Sets the thickness of text outlines.
 
setText(text)
Sets the text.
 
setTextAlign(value)
Sets the text alignment.
 
Sets the text baseline.
Class Detail
createjs.Text(text, font, color)
A class that displays one-line text or multi-line text.
Parameters:
{string} text
{string} font
{string} color
Method Detail
getBounds()

{string} getColor()
Returns the text color.
Returns:
{string}

{string} getFont()
Returns the text font.
Returns:
{string}

{number} getLineHeight()
Returns the line height.
Returns:
{number}

{number} getLineWidth()
Returns the line width.
Returns:
{number}

{number} getMaxWidth()
Returns the maximum width.
Returns:
{number}

{number} getMeasuredHeight()
Returns the approximate height of multi-line text.
Returns:
{number}

{number} getMeasuredLineHeight()
Returns an approximate line height of the text.
Returns:
{number}

{number} getMeasuredWidth()
Returns the measured, untransformed width of the text without wrapping. Use Text.getBounds() for a more robust value.
Returns:
{number} The measured, untransformed width of the text.

{number} getOutline()
Returns the thickness of text outlines.
Returns:
{number}

getSetters()

{string} getText()
Returns the text.
Returns:
{string}

{string} getTextAlign()
Returns the text alignment.
Returns:
{string}

{string} getTextBaseline()
Returns the text baseline.
Returns:
{string}

handleAttach(flag)
Parameters:
flag

handleDetach()

isVisible()

layout(renderer, parent, dirty, time, draw)
Parameters:
renderer
parent
dirty
time
draw

paintObject(renderer)
Parameters:
renderer

removeAllChildren(opt_destroy)
Parameters:
opt_destroy

set(properties)
Parameters:
properties

setColor(value)
Sets the text color.
Parameters:
{string} value

setFont(font)
Sets the text font.
Parameters:
{string} font

setLineHeight(lineHeight)
Sets the line height.
Parameters:
{number} lineHeight

setLineWidth(lineWidth)
Sets the line width.
Parameters:
{number} lineWidth

setMaxWidth(maxWidth)
Sets the maximum width.
Parameters:
{number} maxWidth

setOutline(outline)
Sets the thickness of text outlines.
Parameters:
{number} outline

setText(text)
Sets the text.
Parameters:
{string} text

setTextAlign(value)
Sets the text alignment.
Parameters:
{string} value

setTextBaseline(value)
Sets the text baseline.
Parameters:
{string} value

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 04 2016 17:11:29 GMT+0900 (JST)