TAttTextHandler

TAttTextHandler

(private) new TAttTextHandler(attr)

Handle for text attributes

Source:
Parameters:
Name Type Description
attr object

attributes, see TAttTextHandler#setArgs

Methods

change()

Change text attributes

Source:

createArg()

Create argument for drawText method

Source:

empty()

returns true if line attribute is empty and will not be applied.

Source:

getAltSize()

Returns alternating size - which defined by sz1 variable

Source:

getGedFont()

Get font index - without precision

Source:

getSize()

Provides pixel size

Source:

setArgs(args)

Set text attributes.

Source:
Parameters:
Name Type Description
args object

specify attributes by different ways

Properties
Name Type Description
attr object

TAttText object with appropriate data members or

attr_alt object

alternative TAttText object with appropriate data members if values are 0

color string

color in html like rgb(255,0,0) or 'red' or '#ff0000'

align number

text align

angle number

text angle

font number

font index

size number

text size

setGedFont()

Change text font from GED

Source:

(private) verifyDirectChange()

Method used when color or pattern were changed with OpenUi5 widgets.

Source: