Library globals

Class globals . canvas . api . text . Text

View source

(no description)

Functions

appendText

append text to an existing string

enableFast

enable fast setprop-based text writing

enableUpdate

enable reduced property I/O update function

getColor

getColorFill

getText

new

setAlignment

Set alignment @param align String, one of: left-top left-center left-bottom center-top center-center center-bottom right-top right-center right-bottom left-baseline center-baseline right-baseline left-bottom-baseline center-bottom-baseline right-bottom-baseline

setColor

setColorFill

setDrawMode

Set draw mode. Binary combination of the values above. Since I have not found a bitwise "or" we have to use a "+" instead. e.g. my_text.setDrawMode(Text.TEXT + Text.BOUNDINGBOX);

setFont

Set font (by name of font file)

setFontSize

Set the font size

setMaxWidth

setPadding

Set bounding box padding

setText

Set the text

setTextFast

fast, setprop-based text writing template

updateText

reduced property I/O text update template

Variables

ALIGNMENT

BOUNDINGBOX

FILLEDBOUNDINGBOX

TEXT

Enumeration of values for drawing mode: