Options
All
  • Public
  • Public/Protected
  • All
Menu

The base implementation of a high-low activity, which are used in combination with a ChartLayout. A typical use-case for such activities are candle-stick diagrams used for plotting historical stock prices.

since

1.2

Type parameters

  • T

    the type of an optional user object

Hierarchy

Implements

Index

Constructors

constructor

  • new HighLowChartActivityBase(low: number, high: number, startTime?: number, endTime?: number): HighLowChartActivityBase
  • Parameters

    • low: number
    • high: number
    • Default value startTime: number = undefined
    • Default value endTime: number = undefined

    Returns HighLowChartActivityBase

Properties

Static DEFAULT_DURATION

DEFAULT_DURATION: number = TimeUtil.ofDays(5)

Methods

getEndTime

  • getEndTime(): number

getHigh

  • getHigh(): number

getId

  • getId(): string
  • The unique id of the activity.

    since

    1.0

    Returns string

    the unique activity ID

getLow

  • getLow(): number

getName

  • getName(): string
  • The name of the activity, for example "Flight 3441".

    since

    1.0

    Returns string

    the name of the activity

getStartTime

  • getStartTime(): number

getUserObject

  • getUserObject(): T
  • Returns the user object associated to the activity.

    since

    1.0

    Returns T

    the user object associated to the activity

setUserObject

  • setUserObject(obj: T): void
  • Set the user object associated to the activity.

    since

    1.0

    Parameters

    • obj: T

      the user object to associate to the activity

    Returns void

toString

  • toString(): string
  • Returns string