Last updated

API / geotoolkit / widgets / timeseries / TimeSeriesObjectGroup / TimeSeriesObjectGroup

Class: TimeSeriesObjectGroup

timeseries.TimeSeriesObjectGroup.TimeSeriesObjectGroup

TimeSeriesObject is a container of visuals used in TimeSeries Widget. It primarily lets you get and set options of the different visuals.

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 TimeSeriesObjectGroup(options)

new TimeSeriesObjectGroup(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

TimeSeriesObjectBase.constructor

Methods

addObject

addObject(item): TimeSeriesObjectGroup

Add time series object to group. If the item (or any item in the array) is a member of another group, none of the items are added

Parameters

Name Type Description
itemTimeSeriesObject | TimeSeriesObject[]item

Returns

TimeSeriesObjectGroup

this


dispose

dispose(): void

Dispose.

Returns

void

Inherited from

TimeSeriesObjectBase.dispose


getAxis

getAxis(): Axis

get axis

Returns

Axis

Inherited from

TimeSeriesObjectBase.getAxis


getAxisOptions

getAxisOptions(): AxisOptionsOut

Get axis options

Returns

AxisOptionsOut

JSON which defines curve axis

Inherited from

TimeSeriesObjectBase.getAxisOptions


getClassName

getClassName(): string

Returns

string

Inherited from

TimeSeriesObjectBase.getClassName


getId

getId(): string

Get object's ID

Returns

string

Inherited from

TimeSeriesObjectBase.getId


getMax

getMax(): number

Get max

Returns

number


getMin

getMin(): number

Get min

Returns

number


getName

getName(): string

Gets time series object name

Returns

string

Inherited from

TimeSeriesObjectBase.getName


getProperties

getProperties(): OptionsOut

Returns all properties

Returns

OptionsOut

properties object

Inherited from

TimeSeriesObjectBase.getProperties


getShareLimits

getShareLimits(): boolean

Get max

Returns

boolean


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

TimeSeriesObjectBase.hasEventListener


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

TimeSeriesObjectBase.isDisposed


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

TimeSeriesObjectBase.isSilent


notify

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

Notify listeners

Type parameters

NameType
Eextends string

Parameters

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

Returns

TimeSeriesObjectGroup

this

Inherited from

TimeSeriesObjectBase.notify


off

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

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: TimeSeriesObjectGroup, args: EventMap[E]) => voidfunction to be called

Returns

TimeSeriesObjectGroup

this

Inherited from

TimeSeriesObjectBase.off


on

on<E>(type, callback): TimeSeriesObjectGroup

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: TimeSeriesObjectGroup, args: EventMap[E]) => voidto be called

Returns

TimeSeriesObjectGroup

this

Inherited from

TimeSeriesObjectBase.on


removeObject

removeObject(item): TimeSeriesObjectGroup

Remove time series object from group

Parameters

Name Type Description
itemTimeSeriesObject | TimeSeriesObject[]item

Returns

TimeSeriesObjectGroup

this


setAxisOptions

setAxisOptions(options?): TimeSeriesObjectGroup

Set axis options

Parameters

Name Type Description
Optional optionsAxisOptionsJSON which defines curve axis

Returns

TimeSeriesObjectGroup

this

Overrides

TimeSeriesObjectBase.setAxisOptions


setMax

setMax(value): TimeSeriesObjectGroup

Set max

Parameters

Name Type Description
valuenumbermax value curve's

Returns

TimeSeriesObjectGroup

this


setMin

setMin(value): TimeSeriesObjectGroup

Set min

Parameters

Name Type Description
valuenumbermin value curve's

Returns

TimeSeriesObjectGroup

this


setName

Protected setName(name): void

Set time series object name

Parameters

Name Type Description
namestringname of the object

Returns

void

Inherited from

TimeSeriesObjectBase.setName


setProperties

setProperties(props?): TimeSeriesObjectGroup

Sets all properties

Parameters

Name Type Description
Optional propsOptionsproperties object

Returns

TimeSeriesObjectGroup

this

Inherited from

TimeSeriesObjectBase.setProperties


setShareLimits

setShareLimits(value): TimeSeriesObjectGroup

Sets if limits are shared between groups member

Parameters

Name Type Description
valuebooleanif limits are shared between groups member

Returns

TimeSeriesObjectGroup


setSilent

setSilent(bool): TimeSeriesObjectGroup

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

TimeSeriesObjectGroup

this

Inherited from

TimeSeriesObjectBase.setSilent


updateLayout

updateLayout(): void

Update layout if it is necessary if object is changed

Returns

void

Inherited from

TimeSeriesObjectBase.updateLayout


getClassName

Static getClassName(): string

Returns

string

Inherited from

TimeSeriesObjectBase.getClassName