new Visualisation(options)

Parameter

Name Type Optional Description

options

 

 

Options.

Listens to
module:meteoJS/timeline#change:time
module:meteoJS/timeline#change:times
module:meteoJS/timeline#change:enabledTimes

Methods

protected

attachEventListener(obj, listener, func[, thisArg])

Attach an event listener on an object. Object could be a jQuery-object or an object using module:meteoJS/events.

Parameters

Name Type Optional Description

obj

Object

 

Object to put the event listener on.

listener

mixed

 

Event listener key.

func

function()

 

Function to be executed when event is triggered.

thisArg

Object

Yes

This in the function func when event triggered.

abstract protected

emptyNode()

Called to empty the output node. Mainly if the output is muted. Prerequisite: this.options.node must be defined.

public

getOutputTimezone() → (string or undefined)

Gets current value of output timezone.

Returns

(string or undefined) Output timezone.

protected

getTimelineTimes() → Array of Date

Returns the times to display. This could be either all times in the timeline or only the enabled times or the all enabled times. The user of the visualisation object select this by the options.

Returns

Array of Date Times.

abstract protected

onChangeTime()

Called if the timeline triggers the module:meteoJS/timeline#change:time event. Prerequisite: this.options.node must be defined.

abstract protected

onChangeTimes()

Called if the timeline triggers the module:meteoJS/timeline#change:times or module:meteoJS/timeline#change:enabledTimes event. Prerequisite: this.options.node must be defined.

abstract protected

onInitNode(isListenersDefined)

Called once an output node is set. Prerequisite: this.options.node must be defined.

Parameter

Name Type Optional Description

isListenersDefined

boolean

 

True if the event listeners are already set.

public

setNode(node) → module:meteoJS/timeline/visualisation.Visualisation

Sets jQuery-Node for output.

Parameter

Name Type Optional Description

node

(external:jQuery or undefined)

 

Node, undefined to mute the output.

Returns

module:meteoJS/timeline/visualisation.Visualisation This.

public

setOutputTimezone(outputTimezone) → module:meteoJS/timeline/visualisation.Visualisation

Sets output timezone, undefined for UTC.

Parameter

Name Type Optional Description

outputTimezone

(string or undefined)

 

Timezone for datetime output.

Returns

module:meteoJS/timeline/visualisation.Visualisation This.

protected

timeToText(time, format) → string

Converts a Date-object to a string.

Parameters

Name Type Optional Description

time

Date

 

Time.

format

string

 

Format string, passed to the .

Returns

string String.