Class

ac.Label

This class can not be directly instantiated and represents a freely positionable element that can hold text and/or image(s).

Summary

Methods
addImage(image)
getElement()
setRotationCenter(x, y)
setStyle(style)
setText(text)
setXYWH(x, y,w, h)

Method detail

addImage(image)

Sets the image.

Parameters

* image (ac.Image) image to add

getElement()

Retrieves the element.

Returns

* number (integer) of sub tickmarks

setRotationCenter(x, y)

Sets rotation center.

Parameters

* x (numeric) * y (numeric)

setStyle(style)

Sets the style.

Parameters

* style (text) style as text

setText(text)

Sets text.

Parameters

* text (text)

setXYWH(x, y,w, h)

Sets the size dimensions of the label.

Parameters

* x (numeric) * y (numeric) * w (numeric) * h (numeric)