GObject.Type.EquidistantChannel

Equidistant channel

Description

Задаёт графическому объекту тип «Равноудалённый канал» (EquidistantChannel)

Example

// Let's set the name of the object
let objectName = "OurObject";
// check if an object with the same name already exists 
let newObject = this.getObject(objectName);
// if it doesn't exist, then create it and set its properties
if (!newObject) {
     newObject = this.createObject(GObject.Type.EquidistantChannel, objectName)
         // Let's set the parameters of the first line 
         .setTime1(Time[15])
         .setPrice1(High[15])
         .setTime2(Time[10])
         .setPrice2(High[10])
         // Let's set the coordinates of the initial location of the second line 
         .setTime3(Time[15])
         .setPrice3(Low[15])
         // set the color 
         .setColor(Color.Crimson);
}