Skip to main content

Interface: IOrderLineAdapter

Charting Library.IOrderLineAdapter

An API object used to control order lines.

Methods

getBodyBackgroundColor

getBodyBackgroundColor(): string

Get the body background color of the order line.

Returns

string


getBodyBorderColor

getBodyBorderColor(): string

Get the body border color of the order line.

Returns

string


getBodyFont

getBodyFont(): string

Get the body font of the order line.

Returns

string


getBodyTextColor

getBodyTextColor(): string

Get the body text color of the order line.

Returns

string


getCancelButtonBackgroundColor

getCancelButtonBackgroundColor(): string

Get the cancel button background color of the order line.

Returns

string


getCancelButtonBorderColor

getCancelButtonBorderColor(): string

Get the cancel button border color of the order line.

Returns

string


getCancelButtonIconColor

getCancelButtonIconColor(): string

Get the cancel button icon color of the order line.

Returns

string


getCancelTooltip

getCancelTooltip(): string

Get the cancel tooltip of the order line.

Returns

string


getCancellable

getCancellable(): boolean

Get the cancellable flag value of the order line.

Returns

boolean


getEditable

getEditable(): boolean

Get the editable flag value of the order line.

Returns

boolean


getExtendLeft

getExtendLeft(): boolean

Get the extend left flag value of the order line.

Returns

boolean


getLineColor

getLineColor(): string

Get the line color of the order line.

Returns

string


getLineLength

getLineLength(): number

Get the line length of the order line.

Returns

number


getLineLengthUnit

getLineLengthUnit(): OrderLineLengthUnit

Get the unit of length specified for the line length of the order line.

Returns

OrderLineLengthUnit


getLineStyle

getLineStyle(): number

Get the line style of the order line.

Returns

number


getLineWidth

getLineWidth(): number

Get the line width of the order line.

Returns

number


getModifyTooltip

getModifyTooltip(): string

Get the modify tooltip of the order line.

Returns

string


getPrice

getPrice(): number

Get the price of the order line.

Returns

number


getQuantity

getQuantity(): string

Get the quantity of the order line.

Returns

string


getQuantityBackgroundColor

getQuantityBackgroundColor(): string

Get the quantity background color of the order line.

Returns

string


getQuantityBorderColor

getQuantityBorderColor(): string

Get the quantity border color of the order line.

Returns

string


getQuantityFont

getQuantityFont(): string

Get the quantity font of the order line.

Returns

string


getQuantityTextColor

getQuantityTextColor(): string

Get the quantity text color of the order line.

Returns

string


getText

getText(): string

Get the text of the order line.

Returns

string


getTooltip

getTooltip(): string

Get the tooltip of the order line.

Returns

string


onCancel

onCancel(callback): this

Attach a callback to be executed when the order line is cancelled.

Parameters

NameTypeDescription
callback() => voidCallback to be executed when the order line is cancelled.

Returns

this

onCancel<T>(data, callback): this

Attach a callback to be executed when the order line is cancelled.

Type parameters

Name
T

Parameters

NameTypeDescription
dataTData to be passed to the callback.
callback(data: T) => voidCallback to be executed when the order line is cancelled.

Returns

this


onModify

onModify(callback): this

Attach a callback to be executed when the order line is modified.

Parameters

NameTypeDescription
callback() => voidCallback to be executed when the order line is modified.

Returns

this

onModify<T>(data, callback): this

Attach a callback to be executed when the order line is modified.

Type parameters

Name
T

Parameters

NameTypeDescription
dataTData to be passed to the callback.
callback(data: T) => voidCallback to be executed when the order line is modified.

Returns

this


onMove

onMove(callback): this

Attach a callback to be executed when the order line is moved.

Parameters

NameTypeDescription
callback() => voidCallback to be executed when the order line is moved.

Returns

this

onMove<T>(data, callback): this

Attach a callback to be executed when the order line is moved.

Type parameters

Name
T

Parameters

NameTypeDescription
dataTData to be passed to the callback.
callback(data: T) => voidCallback to be executed when the order line is moved.

Returns

this


onMoving

onMoving(callback): this

Attach a callback to be executed while the order line is being moved.

Parameters

NameTypeDescription
callback() => voidCallback to be executed while the order line is being moved.

Returns

this

onMoving<T>(data, callback): this

Attach a callback to be executed while the order line is being moved.

Type parameters

Name
T

Parameters

NameTypeDescription
dataTData to be passed to the callback.
callback(data: T) => voidCallback to be executed while the order line is being moved.

Returns

this


remove

remove(): void

Remove the order line. This API object cannot be used after this call.

Returns

void


setBodyBackgroundColor

setBodyBackgroundColor(value): this

Set the body background color of the order line.

Parameters

NameTypeDescription
valuestringThe new body background color.

Returns

this


setBodyBorderColor

setBodyBorderColor(value): this

Set the body border color of the order line.

Parameters

NameTypeDescription
valuestringThe new body border color.

Returns

this


setBodyFont

setBodyFont(value): this

Set the body font of the order line.

Parameters

NameTypeDescription
valuestringThe new body font.

Returns

this


setBodyTextColor

setBodyTextColor(value): this

Set the body text color of the order line.

Parameters

NameTypeDescription
valuestringThe new body text color.

Returns

this


setCancelButtonBackgroundColor

setCancelButtonBackgroundColor(value): this

Set the cancel button background color of the order line.

Parameters

NameTypeDescription
valuestringThe new cancel button background color.

Returns

this


setCancelButtonBorderColor

setCancelButtonBorderColor(value): this

Set the cancel button border color of the order line.

Parameters

NameTypeDescription
valuestringThe new cancel button border color.

Returns

this


setCancelButtonIconColor

setCancelButtonIconColor(value): this

Set the cancel button icon color of the order line.

Parameters

NameTypeDescription
valuestringThe new cancel button icon color.

Returns

this


setCancelTooltip

setCancelTooltip(value): this

Set the cancel tooltip of the order line.

Parameters

NameTypeDescription
valuestringThe new cancel tooltip

Returns

this


setCancellable

setCancellable(value): this

Set the cancellable flag value of the order line.

Parameters

NameTypeDescription
valuebooleanThe new cancellable flag value.

Returns

this


setEditable

setEditable(value): this

Set the editable of the order line.

Parameters

NameTypeDescription
valuebooleanThe new editable.

Returns

this


setExtendLeft

setExtendLeft(value): this

Set the extend left flag value of the order line.

Parameters

NameTypeDescription
valuebooleanThe new extend left flag value.

Returns

this


setLineColor

setLineColor(value): this

Set the line color of the order line.

Parameters

NameTypeDescription
valuestringThe new line color.

Returns

this


setLineLength

setLineLength(value, unit?): this

Set the line length of the order line.

If negative number is provided for the value and the unit is 'pixel' then the position will be relative to the left edge of the chart.

Parameters

NameTypeDescription
valuenumberThe new line length.
unit?OrderLineLengthUnitunit for the line length, defaults to 'percentage'.

Returns

this


setLineStyle

setLineStyle(value): this

Set the line style of the order line.

Parameters

NameTypeDescription
valuenumberThe new line style.

Returns

this


setLineWidth

setLineWidth(value): this

Set the line width of the order line.

Parameters

NameTypeDescription
valuenumberThe new line width.

Returns

this


setModifyTooltip

setModifyTooltip(value): this

Set the modify tooltip of the order line.

Parameters

NameTypeDescription
valuestringThe new modify tooltip

Returns

this


setPrice

setPrice(value): this

Set the price of the order line.

Parameters

NameTypeDescription
valuenumberThe new price

Returns

this


setQuantity

setQuantity(value): this

Set the quantity of the order line.

Parameters

NameTypeDescription
valuestringThe new quantity.

Returns

this


setQuantityBackgroundColor

setQuantityBackgroundColor(value): this

Set the quantity background color of the order line.

Parameters

NameTypeDescription
valuestringThe new quantity background color.

Returns

this


setQuantityBorderColor

setQuantityBorderColor(value): this

Set the quantity border color of the order line.

Parameters

NameTypeDescription
valuestringThe new quantity border color.

Returns

this


setQuantityFont

setQuantityFont(value): this

Set the quantity font of the order line.

Parameters

NameTypeDescription
valuestringThe new quantity font.

Returns

this


setQuantityTextColor

setQuantityTextColor(value): this

Set the quantity text color of the order line.

Parameters

NameTypeDescription
valuestringThe new quantity text color.

Returns

this


setText

setText(value): this

Set the text of the order line.

Parameters

NameTypeDescription
valuestringThe new text

Returns

this


setTooltip

setTooltip(value): this

Set the tooltip of the order line.

Parameters

NameTypeDescription
valuestringThe new tooltip

Returns

this