Class Index | File Index

Classes


Class CAAT.Foundation.UI.Label


Extends CAAT.Foundation.Actor.

Defined in: Label.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
<private>  
Registered callback to notify on anchor click event.
<private>  
Calculated document Height.
<private>  
Calculated document width.
<private>  
Document x position.
<private>  
Document y position.
<private>  
This Label document´s horizontal alignment.
<private>  
Collection of image objects in this label´s document.
<private>  
Collection of text lines calculated for the label.
<private>  
rc
This label document´s render context
<private>  
Does this label document flow ?
<private>  
Styles object.
<private>  
This label text.
<private>  
This Label document´s vertical alignment.
Fields borrowed from class CAAT.Foundation.Actor:
__super, AABB, alpha, backgroundImage, behaviorList, cached, clip, clipPath, dirty, discardable, duration, expired, fillStyle, frameAlpha, gestureEnabled, glEnabled, height, id, inFrame, invalid, isAA, isCachedActor, isGlobalAlpha, lifecycleListenerList, minimumSize, modelViewMatrix, modelViewMatrixI, mouseEnabled, oldX, oldY, parent, pointed, preferredSize, preventLayout, rotationAngle, rotationX, rotationY, scaleAnchor, scaleTX, scaleTY, scaleX, scaleY, size_active, size_total, start_time, strokeStyle, tAnchorX, tAnchorY, time, viewVertices, visible, wdirty, width, worldModelViewMatrix, worldModelViewMatrixI, x, y
Method Summary
Method Attributes Method Name and Description
<private>  
<private>  
<private>  
 
addImage(name, spriteImage)
 
 
 
 
paint(director, time)
 
setBounds(x, y, w, h)
 
setClickCallback(callback)
 
setDocumentPosition(halign, valign)
 
 
 
Make the label actor the size the label document has been calculated for.
 
setSize(w, h)
 
setStyle(name, styleData)
 
setText(_text, width)
 
Methods borrowed from class CAAT.Foundation.Actor:
__paintActor, __scale1To, __validateLayout, addAnimation, addBehavior, addListener, animate, cacheAsBitmap, centerAt, centerOn, clean, contains, create, destroy, disableDrag, drawScreenBoundingBox, emptyBehaviorList, enableDrag, enableEvents, endAnimate, findActorAtPosition, findActorById, fireEvent, gestureChange, gestureEnd, gestureStart, getAnchor, getAnchorPercent, getBehavior, getId, getMinimumSize, getPreferredSize, getTextureGLPage, glNeedsFlush, glSetShader, initialize, invalidate, invalidateLayout, isCached, isGestureEnabled, isInAnimationFrame, isVisible, modelToModel, modelToView, mouseDblClick, mouseDown, mouseDrag, mouseEnter, mouseOut, mouseOver, mouseUp, moveTo, paintActor, paintActorGL, playAnimation, removeBehaviorById, removeBehaviour, removeListener, resetAnimationTime, resetAsButton, resetTransform, rotateTo, scaleTo, scaleXTo, scaleYTo, setAlpha, setAnimationEndCallback, setAnimationImageIndex, setAsButton, setBackgroundImage, setBackgroundImageOffset, setButtonImageIndex, setCachedActor, setChangeFPS, setClip, setDiscardable, setExpired, setFillStyle, setFrameTime, setGestureEnabled, setGLCoords, setGlobalAlpha, setGlobalAnchor, setId, setImageTransformation, setLocation, setMinimumSize, setModelViewMatrix, setOutOfFrameTime, setPaint, setParent, setPosition, setPositionAnchor, setPositionAnchored, setPreferredSize, setPreventLayout, setRotation, setRotationAnchor, setRotationAnchored, setScale, setScaleAnchor, setScaleAnchored, setScreenBounds, setSpriteIndex, setStrokeStyle, setUV, setVisible, stopCacheAsBitmap, touchEnd, touchMove, touchStart, viewToModel
Class Detail
CAAT.Foundation.UI.Label()
Field Detail
<private> clickCallback
Registered callback to notify on anchor click event.

<private> documentHeight
Calculated document Height.

<private> documentWidth
Calculated document width.

<private> documentX
Document x position.

<private> documentY
Document y position.

<private> halignment
This Label document´s horizontal alignment.

<private> images
Collection of image objects in this label´s document.

<private> lines
Collection of text lines calculated for the label.

<private> rc
This label document´s render context

<private> reflow
Does this label document flow ?

<private> styles
Styles object.

<private> text
This label text.

<private> valignment
This Label document´s vertical alignment.
Method Detail
<private> __calculateDocumentDimension(suggestedWidth)
Parameters:
suggestedWidth

<private> __getDocumentElementAt(x, y)
Parameters:
x
y

<private> __init()

addImage(name, spriteImage)
Parameters:
name
spriteImage

mouseClick(e)
Parameters:
e

mouseExit(e)
Parameters:
e

mouseMove(e)
Parameters:
e

paint(director, time)
Parameters:
director
time

setBounds(x, y, w, h)
Parameters:
x
y
w
h

setClickCallback(callback)
Parameters:
callback

setDocumentPosition(halign, valign)
Parameters:
halign
valign

setHorizontalAlignment(align)
Parameters:
align

setLinesAlignment()

setMatchTextSize(match)
Make the label actor the size the label document has been calculated for.
Parameters:
match
{boolean}

setSize(w, h)
Parameters:
w
h

setStyle(name, styleData)
Parameters:
name
styleData

setText(_text, width)
Parameters:
_text
width

setVerticalAlignment(align)
Parameters:
align

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 01 2013 04:59:18 GMT-0700 (PDT)