Options
All
  • Public
  • Public/Protected
  • All
Menu

The base implementation of a mutable chart activity.

since

1.2

Type parameters

  • T

    the type of the optional user object

Hierarchy

Implements

Index

Constructors

constructor

  • Constructs a new high-low activity with the given initial high and low values and the given start and end time.

    since

    1.2

    Parameters

    • low: number

      the low value of the activity

    • high: number

      the high value of the activity

    • Default value startTime: number = undefined

      the start time of the activity

    • Default value endTime: number = undefined

      the end time of the activity

    Returns MutableHighLowChartActivityBase

Properties

Static DEFAULT_DURATION

DEFAULT_DURATION: number = TimeUtil.ofDays(5)

Methods

addDuration

  • addDuration(duration: number, multiplier?: number): void
  • Convenience method to determine a new end time based on a duration that will be added several times to the current end time of the activity.

    since

    1.2

    Parameters

    • duration: number

      the duration of the activity

    • Default value multiplier: number = 1

      the number of times that the duration will be added

    Returns void

getDuration

  • getDuration(): number
  • Convenience method to determine the duration between the start and the end time of the activity.

    Returns number

    the duration of the activity

getEndTime

  • getEndTime(): number

getHigh

  • getHigh(): number

getId

  • getId(): string

getLow

  • getLow(): number

getName

  • getName(): string

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

setDuration

  • setDuration(duration: number): void
  • Convenience method to determine a new end time based on a duration that will be added to the current start time of the activity.

    since

    1.2

    Parameters

    • duration: number

      the duration of the activity

    Returns void

setEndTime

  • setEndTime(time: number): void
  • Sets a new end time on the activity.

    since

    1.2

    Parameters

    • time: number

      the new end time

    Returns void

setHigh

  • setHigh(high: number): void
  • Sets the high value of the activity.

    since

    1.2

    Parameters

    • high: number

    Returns void

setLow

  • setLow(low: number): void
  • Sets the low value of the activity.

    since

    1.2

    Parameters

    • low: number

    Returns void

setName

  • setName(name: string): void
  • Sets the name of the activity.

    since

    1.2

    Parameters

    • name: string

      the new name of the activity

    Returns void

setStartTime

  • setStartTime(time: number): void
  • Sets a new start time on the activity.

    since

    1.2

    Parameters

    • time: number

      the new start time

    Returns void

setUserObject

  • setUserObject(userObject: T): void
  • Parameters

    • userObject: T

    Returns void

toString

  • toString(): string
  • Returns string