Skip to content

Latest commit

 

History

History
104 lines (71 loc) · 1.85 KB

TimeSeriesWindow.md

File metadata and controls

104 lines (71 loc) · 1.85 KB

CLASS

TimeSeriesWindow

Contents

  • Properties
    • sourceTimer
    • sourceBlock
  • Methods
    • init(tick:total:)
    • init(tick:total:source:)
    • start()
    • stop()
public class TimeSeriesWindow : StandardSeriesWindow

Series variant based ton timer ticks

Properties

sourceTimer
var sourceTimer : Timer?

the timer that will repeatedly call the input block

sourceBlock
var sourceBlock : ()->Double

the block in charge of getting new values

Methods

init(tick:total:)
public override init(tick: TimeInterval, total: TimeInterval)

Neutralized public initializer

  • Parameters:
    • tick: useless
    • total: useless

Parameters

Name Description
tick useless
total useless
init(tick:total:source:)
public init(tick: TimeInterval, total: TimeInterval, source: @escaping ()->Double)

Public initializer

  • Parameters:
    • tick: width of an x-interval, time between ticks
    • total: range of the x-axis
    • source: the block to call every tick for new values

Parameters

Name Description
tick width of an x-interval, time between ticks
total range of the x-axis
source the block to call every tick for new values
start()
public override func start()

Starts the display and tick

stop()
public override func stop()

Stops the tick