Last updated

API / geotoolkit / widgets / timeseries / TimeSeriesObjectBase / TimeSeriesObjectBase

Class: TimeSeriesObjectBase

timeseries.TimeSeriesObjectBase.TimeSeriesObjectBase

Base class for TimeSeriesObject and TimeSeriesObjectGroup. This class contains the set/get AxisOptions and ID

Hierarchy

Table of contents

Constructors
Methods
Css Properties
Name Type Description
curveaxisAxisOptionsJSON which defines axis object
curveaxis-autocoloraxisbooleanSynchronize axis color with curve color
curveaxis-autocolorlabelbooleanSynchronize axis and label color with curve color
curveaxis-autolabelrotationbooleanAutomatic label rotation
curveaxis-axisautolabelrotationbooleanAxis automatic label rotation
curveaxis-axiscolorstringAxis color is autocoloraxis is false
curveaxis-axisvisiblebooleanAxis visibility
curveaxis-axiswidthnumberCurve axis width
curveaxis-baselinestyleLineStyleBase line style. Color set to curve's color, width = 1 by default
curveaxis-baselinestyle-colorstringColor in CSS form
curveaxis-baselinestyle-fillstringOptional fill style to be used to fill lines generated with this style
curveaxis-baselinestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
curveaxis-baselinestyle-fill-colorstringColor in CSS form
curveaxis-baselinestyle-fill-evenoddmodebooleanEven-odd fill mode
curveaxis-baselinestyle-fill-fillpatternPatternPattern
curveaxis-baselinestyle-fill-fillpattern-containernamestringAn optional container name, which creates an image pattern. This parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself
curveaxis-baselinestyle-fill-fillpattern-patternnamestringName of this pattern for indexing
curveaxis-baselinestyle-fill-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
curveaxis-baselinestyle-fill-foregroundstringForeground color
curveaxis-baselinestyle-fill-patternPatternPattern
curveaxis-baselinestyle-linecapCapStyleThe line cap style
curveaxis-baselinestyle-linedashoffsetnumberLine dash offset of dashed line
curveaxis-baselinestyle-linejoinJoinStyleThe line join style
curveaxis-baselinestyle-pixelsnapmodebooleanPixel Snap Mode, default(
curveaxis-baselinestyle-scalablebooleanTrue if width should depend on transformation
curveaxis-baselinestyle-unitstringOptional unit for the width
curveaxis-baselinestyle-widthnumber | stringThe line thickness
curveaxis-compactbooleanCompact
curveaxis-fontstringCurve axis text font
curveaxis-labelorientationstring | numberRotation of the curveaxis labels; can be automatic, vertical, horizontal
curveaxis-labelorientationOrientationRotation of the curveaxis labels; can be automatic, vertical, horizontal
curveaxis-labeltextstringTitle text override
curveaxis-logarithmicscalebooleanLogarithmic scale
curveaxis-positionstringCurve axis position 'left'/'right'
curveaxis-textcolorstringText color if autocolorlabel is false
curveaxis-textwidthnumberCurve text width
curveaxis-tickgeneratorNumericTickGeneratorTick generator
curveaxis-tickgenerator-labelstylesTextStyleAn object containing label style for specified grades
curveaxis-tickgenerator-labelstyles-alignmentAlignmentStyleAlignment
curveaxis-tickgenerator-labelstyles-autosizebooleanAuto font size on high definition display
curveaxis-tickgenerator-labelstyles-backgroundstringBackground style
curveaxis-tickgenerator-labelstyles-backgroundFillStyleBackground style
curveaxis-tickgenerator-labelstyles-baselineBaseLineStyleBase line
curveaxis-tickgenerator-labelstyles-colorstringColor in CSS form
curveaxis-tickgenerator-labelstyles-fillFillStyleText fill style
curveaxis-tickgenerator-labelstyles-fontstringFont see
curveaxis-tickgenerator-labelstyles-fonturlstringThe place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword
curveaxis-tickgenerator-labelstyles-lineheightstring | numberLine height
curveaxis-tickgenerator-labelstyles-multilinebooleanAllow multi-line text
curveaxis-tickgenerator-labelstyles-outlinestringOutline style
curveaxis-tickgenerator-labelstyles-outlineLineStyleOutline style
curveaxis-tickgenerator-labelstyles-overflowwrapOverflowWrapStyleOverflow wrap
curveaxis-tickgenerator-labelstyles-strikethroughstringStrikethrough style
curveaxis-tickgenerator-labelstyles-strikethroughLineStyleStrikethrough style
curveaxis-tickgenerator-labelstyles-textoverflowTextOverflowStyleText overflow
curveaxis-tickgenerator-labelstyles-underlinestringUnderline style
curveaxis-tickgenerator-labelstyles-underlineLineStyleUnderline style
curveaxis-tickgenerator-labelstyles-underlineoffsetstring | numberUnderline offset distance
curveaxis-tickgenerator-labelstyles-whitespaceWhiteSpaceStyleWhite space
curveaxis-tickgenerator-labelstyles-wordbreakWordBreakStyleWord break
curveaxis-tickgenerator-taganyTag user can specify info associated with current object
curveaxis-tickgenerator-tickstylesLineStyleAn object containing tick styles for specified grades
curveaxis-titlerotateanglenumberTitle rotate angle
curveaxis-titlevisiblebooleanCurve axis label visibility
curveaxis-visiblebooleanVisibility of curve axis
idstringObject's id/uri
namestringObject/curve's name

Contents

Constructors

new TimeSeriesObjectBase(options)

new TimeSeriesObjectBase(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

EventDispatcher.constructor

Methods

dispose

dispose(): void

Dispose.

Returns

void

Inherited from

EventDispatcher.dispose


getAxis

getAxis(): Axis

get axis

Returns

Axis


getAxisOptions

getAxisOptions(): AxisOptionsOut

Get axis options

Returns

AxisOptionsOut

JSON which defines curve axis


getClassName

getClassName(): string

Returns

string

Inherited from

EventDispatcher.getClassName


getId

getId(): string

Get object's ID

Returns

string


getName

getName(): string

Gets time series object name

Returns

string


getProperties

getProperties(): OptionsOut

Returns all properties

Returns

OptionsOut

properties object


hasEventListener

hasEventListener(type, callback?): boolean

Check if a list of event listeners for this type contains this listener

Parameters

Name Type Description
typestringtype of event or property
Optional callbackFunctionto be called, if null, check if any callback is registered

Returns

boolean

Inherited from

EventDispatcher.hasEventListener


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

EventDispatcher.isDisposed


isSilent

isSilent(): boolean

Return true if the event dispatcher doesn't notify any events

Returns

boolean

Inherited from

EventDispatcher.isSilent


notify

notify<E>(type, source, args?): TimeSeriesObjectBase

Notify listeners

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEevent types
sourceTimeSeriesObjectBaseof the event
Optional argsEventMap[E]arguments of the event

Returns

TimeSeriesObjectBase

this

Overrides

EventDispatcher.notify


off

off<E>(type?, callback?): TimeSeriesObjectBase

Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
Optional typeEtype of the event
Optional callback(eventType: E, sender: TimeSeriesObjectBase, args: EventMap[E]) => voidfunction to be called

Returns

TimeSeriesObjectBase

this

Overrides

EventDispatcher.off


on

on<E>(type, callback): TimeSeriesObjectBase

Attach listener on event that will be called whenever the specified event is delivered to the target

If the callback function is already in the list of event listeners for this target, the function is not added a second time.

If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event or property
callback(eventType: E, sender: TimeSeriesObjectBase, args: EventMap[E]) => voidto be called

Returns

TimeSeriesObjectBase

this

Overrides

EventDispatcher.on


setAxisOptions

setAxisOptions(options?): TimeSeriesObjectBase

Sets axis options. Refer to example below to make a curve's axis invisible. This can be useful to save space while displaying several curves that use the same vertical unit.
User would have to determine which curves share the same units and limits and hide the redundant axis.

Parameters

Name Type Description
Optional optionsAxisOptionsJSON which defines curve axis

Returns

TimeSeriesObjectBase


setName

Protected setName(name): void

Set time series object name

Parameters

Name Type Description
namestringname of the object

Returns

void


setProperties

setProperties(props?): TimeSeriesObjectBase

Sets all properties

Parameters

Name Type Description
Optional propsOptionsproperties object

Returns

TimeSeriesObjectBase

this


setSilent

setSilent(bool): TimeSeriesObjectBase

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

TimeSeriesObjectBase

this

Inherited from

EventDispatcher.setSilent


updateLayout

updateLayout(): void

Update layout if it is necessary if object is changed

Returns

void


getClassName

Static getClassName(): string

Returns

string

Inherited from

EventDispatcher.getClassName