Class ccs.LabelAtlas
- Defined in: UILabelAtlas.js
- Extends ccs.Widget
Constructor Attributes | Constructor Name and Description |
---|---|
Base class for ccs.LabelAtlas
|
Method Summary
Class Detail
ccs.LabelAtlas()
Base class for ccs.LabelAtlas
Method Detail
-
allocates and initializes a UILabelAtlas.
// example var uiLabelAtlas = ccs.LabelAtlas.create();
- Returns:
- {ccs.LabelAtlas}
-
{cc.Size} getContentSize()override "getContentSize" method of widget.
- Returns:
- {cc.Size}
-
{string} getDescription()Returns the "class name" of widget.
- Returns:
- {string}
-
{String} getStringValue()get string value for labelatlas.
- Returns:
- {String}
-
{cc.Node} getVirtualRenderer()override "getVirtualRenderer" method of widget.
- Returns:
- {cc.Node}
-
setAnchorPoint(point, y)override "setAnchorPoint" of widget.
- Parameters:
- {cc.Point|Number} point
- The anchor point of UILabelAtlas or The anchor point.x of UILabelAtlas.
- {Number} y Optional
- The anchor point.y of UILabelAtlas.
-
setProperty(stringValue, charMapFile, itemWidth, itemHeight, startCharMap)initializes the UILabelAtlas with a string, a char map file(the atlas), the width and height of each element and the starting char of the atlas
- Parameters:
- {String} stringValue
- {String} charMapFile
- {number} itemWidth
- {number} itemHeight
- {String} startCharMap
-
setStringValue(value)set string value for labelatlas.
- Parameters:
- {String} value