createObject()

Creates a graphic item for the indicator
createObject(type:string, name:string)

Parameters

Name Type Действие Значение по умолчанию
type string Type of the graphical object
name string Unique name of the object

Return value

New graphical object

Description

Используется в методе onUpdate. Список графических типов можно посмотреть в GObject.Type

Example

// Create a graphical object of the type  GObject.Type.Arrow with the name GraphName
this.createObject(GObject.Type.Arrow, GraphName);