CLASS
Contents
- Properties
sourceTimer
sourceBlock
- Methods
init(tick:total:)
init(tick:total:source:)
start()
stop()
public class TimeSeriesWindow : StandardSeriesWindow
Series variant based ton timer ticks
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
init(tick:total:)
public override init(tick: TimeInterval, total: TimeInterval)
Neutralized public initializer
- Parameters:
- tick: useless
- total: useless
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
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