Last updated

API / geotoolkit / widgets / TimeSeriesWidget / TimeSeriesWidget

Class: TimeSeriesWidget

widgets.TimeSeriesWidget.TimeSeriesWidget

The time series widget plots data points horizontally along a time axis. It inherits from BaseWidget. Curves are added to the widget by calling the addCurve() function:

  • name -- curve name
  • uri -- unique dataset id
  • data -- [DataTableView](../classes/geotoolkit.data.datatableview.datatableview.md)
  • properties //visual properties
insertCurve() function is used to insert a curve at a particular position or order.
setVisibleRange() can be used to set the visiblemodellimits programmatically
In addition to plotting the data, the widget also supports fills via the addFill() function and annotations via addAnnotation() and addAnnotationLine() functions.
Configuring the various options of the widget can be achieved by calling setOptions().
Selection is handled in the application by using the onSelectionChanged event.

Some of the default tools are available to support:

  • Zoom
  • Crosshair
  • Rubberband
  • Selection
  • Panning

Example

import {Group} from '@int/geotoolkit/scene/Group';
import {Rect} from '@int/geotoolkit/util/Rect';
import {TimeSeriesWidget} from '@int/geotoolkit/widgets/TimeSeriesWidget';
// Initialize widget
const options = {
'title': {
'visible': false
},
'model': new Group()
.setModelLimits(new Rect(startDate, 0, endDate, 1)),
'curveaxis': {
'visible': true,
'autocoloraxis': true,
'autocolorlabel': true,
'titlevisible': true,
'axiswidth': 30,
'compact': true
},
'curvelimits': {
'visible': false
}
};
const widget = new TimeSeriesWidget(options);
// Add Data/Curve to the widget
widget.addCurve({
'name': 'CALI',
'uri': '//test//cali',
'data': dataTableView,          // @int/geotoolkit/data/DataTableView
'properties': {
'autoscale': true,
'axisautolabelrotation': true,   // curve properties can be modified here as well.
'neatlimits': true,
'unit': 'INS',
'linestyle': {
'color': 'blue',
'width': 2
}
}
});

Hierarchy

Table of contents

Constructors
Methods
addAnnotationaddAnnotationLineaddAnnotationLineCollection
addBaseLayeraddChildaddCssClass
addCurveaddCurvesaddFill
addInvalidateHandleraddOverlayaddReferenceLine
adjustPositionapplyOpacityapplyResponsiveStyle
changeBaseLayerOrderchangeChildOrderchangeOverlayOrder
changeVisualOrdercheckCollisionclearBaseLayers
clearCacheclearChildrenclearOverlays
cloneconnectReferenceLineconnectStyle
connectToolcopyConstructorcreateGroup
createTimeSeriesObjectdisconnectReferenceLinedisconnectStyle
disconnectTooldisposedrawBorder
editAnnotationeditAnnotationLineenableClipping
enableEventPropagationenablePickingChildrenenumerateNodes
executeexportToPDFfilter
fitToBoundsgetAnimationStylegetAnnotationLineProperties
getAnnotationPropertiesgetAutoModelLimitsModegetAutoModelLimitsStrategy
getBarModegetBaseLayergetBaseLayers
getBaseLayersCountgetBoundsgetCache
getChildgetChildrengetChildrenCount
getClassNamegetClipStylegetContentOrientation
getContentsAreagetContentsTransformgetCss
getCssClassgetCssClassesgetCssTransform
getCurveFillStylegetCurveFillsgetCurveProperties
getCurvesgetDatagetDataById
getDesiredHeightgetDesiredWidthgetDeviceLimits
getFillStylegetGroupByIdgetHorizontalGridCurveReference
getIdgetInfiniteModegetInvalidateMethod
getLayoutgetLayoutStylegetLineStyle
getLocalTransformgetLocalegetMarginsStyle
getModelLimitsgetModelOffsetsgetName
getNowButtonWidgetgetOpacitygetOpacityBlendMode
getOptionsgetOverlaygetOverlayAt
getOverlayLayergetOverlaysgetOverlaysCount
getPaddingStylegetParentgetPercentMode
getPreferredSizegetPropertiesgetProperty
getPropertyKeysgetRangegetReferenceLineIds
getReferenceLineOptionsgetRenderingFiltergetResponsiveStyle
getRootgetScaleScrollStrategygetScalesButtonWidget
getSceneTransformgetStackModegetTag
getTimeSeriesObjectByIdgetToolgetToolByName
getToolByTypegetVisiblegetVisibleDeviceLimits
getVisibleModelLimitsgetVisibleRangegetVisualBackLayer
getVisualFrontLayergetWorldTransformgetZIndex
hasCssClasshasEventListenerhighlightBars
hitTestindexOfBaseLayerindexOfChild
indexOfOverlayinitializeToolsinsertBaseLayer
insertChildinsertCurveinsertCurves
insertOverlayinvalidateinvalidateLayout
invalidateParentisClippingEnabledisDisposed
isEventPropagationEnabledisHorizontalFlipisLayoutInvalidated
isNotificationEnabledisPickingChildrenEnabledisSelectable
isSilentisVerticalFliplistToolsNames
loadTemplatemoveTonotify
notifyRootoffon
onBoundsChangedonChildAddedonChildRemoved
onParentChangedonVisibilityChangedpostRendering
preRenderingrebuildrebuildLayers
registerAnimationStyleremoveAnnotationremoveAnnotationLine
removeAnnotationLineCollectionremoveBaseLayerremoveChild
removeCssClassremoveCurveremoveCurveFill
removeGroupremoveInvalidateHandlerremoveOverlay
removeReferenceLinerenderrenderAsync
renderBackgroundrenderBaseLayersrenderBaseLayersAsync
renderChildrenrenderChildrenAsyncrenderContent
renderContentAsyncrenderOverlaysrenderOverlaysAsync
resumeUpdaterotatesaveTemplate
scalescaleModelselectCurveById
setAnimationStylesetAutoModelLimitsModesetAutoModelLimitsStrategy
setBarModesetBoundssetCache
setChildsetClipStylesetContentOrientation
setCsssetCssClasssetCssTransform
setDesiredHeightsetDesiredWidthsetFillStyle
setHorizontalFlipsetHorizontalGridCurveReferencesetId
setInfiniteModesetLayoutsetLayoutInvalidated
setLayoutStylesetLineStylesetLocalTransform
setLocalesetMarginsStylesetModelLimits
setModelOffsetssetNamesetNotification
setOpacitysetOptionssetPaddingStyle
setPercentModesetPropertiessetProperty
setRangesetReferenceLineOptionssetRenderingFilter
setResponsiveStylesetScaleScrollStrategysetSelectable
setSilentsetStackModesetTag
setToolsetVerticalFlipsetVisible
setVisibleModelLimitssetVisibleRangesetZIndex
shearsuspendUpdatetoString
translatetranslateModelunregisterAnimationStyle
updateLayoutupdateSceneTransformationupdateState
updateSuspendedupdateTimeStampzoomIn
zoomOutenableSceneGraphNotificationfindParent
getClassNameisSceneGraphNotificationEnabled
Css Properties
Name Type Description
alignaxisbooleanAlign axis
automodellimitsmodebooleanAutomodellimits mode
barmodeBarModeOptions for bar mode
barmode-barvaluevisibilityboolean | numberBar values visible distance in device space of TimeSeriesBar
cursorselectionlimitnumberThreshold distance indevice space, from vertical cursor line to show symbol, update legend and show tooltip
curveCurveOptions
curve-autoscalebooleanTrue if curve in auto-scaling mode
curve-axispositionstring'left'/'right'
curve-borderlinestylestringTimeseriesshape border line style
curve-borderlinestyleLineStyleTimeseriesshape border line style
curve-borderlinestyle-colorstringColor in CSS form
curve-borderlinestyle-fillstringOptional fill style to be used to fill lines generated with this style
curve-borderlinestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
curve-borderlinestyle-fill-colorstringColor in CSS form
curve-borderlinestyle-fill-evenoddmodebooleanEven-odd fill mode
curve-borderlinestyle-fill-fillpatternPatternPattern
curve-borderlinestyle-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
curve-borderlinestyle-fill-fillpattern-patternnamestringName of this pattern for indexing
curve-borderlinestyle-fill-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
curve-borderlinestyle-fill-foregroundstringForeground color
curve-borderlinestyle-fill-patternPatternPattern
curve-borderlinestyle-linecapCapStyleThe line cap style
curve-borderlinestyle-linedashoffsetnumberLine dash offset of dashed line
curve-borderlinestyle-linejoinJoinStyleThe line join style
curve-borderlinestyle-pixelsnapmodebooleanPixel Snap Mode, default(
curve-borderlinestyle-scalablebooleanTrue if width should depend on transformation
curve-borderlinestyle-unitstringOptional unit for the width
curve-borderlinestyle-widthnumber | stringThe line thickness
curve-curvevisiblebooleanCurve line visibility flag
curve-decimationspacingnumber
curve-interpolationtypeInterpolationTypeInterpolation type
curve-linestylestringCurve linestyle
curve-linestyleLineStyleCurve linestyle
curve-logarithmicscalebooleanLogarithmic scale
curve-markerSymbolShapeObject containing marker symbol
curve-marker-alignmentAnchorTypeAlignment according to the anchor point
curve-marker-alignmentAnchorTypeAnchor type of symbol
curve-marker-axnumberAnchor x position
curve-marker-aynumberAnchor y position
curve-marker-cachebooleanSet it to true if you want to cache complex geometry to raster
curve-marker-clipstyleClipStyleClipping style
curve-marker-clipstyle-evenoddbooleanTrue if evenodd mode is on ('nonzero' mode otherwise)
curve-marker-clipstyle-geometryGraphicsPathClipping geometry
curve-marker-clipstyle-geometry-boundsRectBounds
curve-marker-clipstyle-geometry-bounds-heightnumberHeight
curve-marker-clipstyle-geometry-bounds-readonlybooleanReadonly
curve-marker-clipstyle-geometry-bounds-widthnumberWidth
curve-marker-clipstyle-geometry-bounds-xnumberLeft
curve-marker-clipstyle-geometry-bounds-ynumberTop
curve-marker-clipstyleGraphicsPathClipping style
curve-marker-cssclassstringThe css class name of this node
curve-marker-csscursorstringCSS cursor associated with node
curve-marker-cssstylestringCSS style to be applied to inserted elements
curve-marker-fillstylestringStyle applied on fill
curve-marker-fillstyleFillStyleStyle applied on fill
curve-marker-heightnumberShape height
curve-marker-idstring | numberId of the node, its a unique identifier
curve-marker-ispointingupbooleanDefines whether the shape is always pointing up
curve-marker-layoutstyleLayoutStyleLayout style to specify how to lay out shape
curve-marker-layoutstyle-constraintSizeConstraintLayout constrains
curve-marker-layoutstyle-flexgrownumberNumber specifying how much the item will grow relative to the rest of the items inside the same container
curve-marker-layoutstyle-flexshrinknumberNumber specifying how much the item will shrink relative to the rest of the items inside the same container
curve-marker-layoutstyle-floatstringFloat position
curve-marker-layoutstyle-positionstringLayout position
curve-marker-layoutstyle-sizenumber | stringLayout size
curve-marker-linestylestringStyle applied on outline
curve-marker-linestyleLineStyleStyle applied on outline
curve-marker-localtransformTransformationLocal transformation
curve-marker-localtransform-dxnumberX axis translation
curve-marker-localtransform-dynumberY axis translation
curve-marker-localtransform-xxnumberX scale
curve-marker-localtransform-xynumberXy skew
curve-marker-localtransform-yxnumberYx skew
curve-marker-localtransform-yynumberY scale
curve-marker-marginsnumber | stringIt has properties for specifying the margins for each side
curve-marker-maxdimensionDimensionMaximum size for rendering
curve-marker-maxdimension-heightnumberHeight of dimension
curve-marker-maxdimension-widthnumberWidth of dimension or properties
curve-marker-mindimensionDimensionMinimum size for rendering
curve-marker-namestringName of the node. It is often used for debugging purposes or to simplify queries
curve-marker-opacitynumberNode opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context
curve-marker-opacityblendmodeBlendModeNode opacity mode to blend it
curve-marker-painterstringA function with has parameters: symbol, box, context
curve-marker-painterpropertiesanySymbol's painter's properties
curve-marker-preserveaspectratiobooleanPreserve aspect ratio of the anchored shape
curve-marker-preservereadingorientationbooleanPreserve reading orientation for local transform
curve-marker-preserverightanglebooleanPreserve right angle for local transformation
curve-marker-rotationanglenumberRotation angle at anchor
curve-marker-scalescrollstrategyScaleScrollStrategyScale scroll strategy
curve-marker-scalescrollstrategy-enabledbooleanEnable flag
curve-marker-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
curve-marker-sizeisindevicespacebooleanIs coordinate in device space
curve-marker-taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
curve-marker-transformstringAdditional CSS transformation applied to node or 'none'
curve-marker-transformTransformationAdditional CSS transformation applied to node or 'none'
curve-marker-useminmaxdimensionsbooleanUse the min max dimensions to limit visual size
curve-marker-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
curve-marker-widthnumberShape width
curve-marker-z-indexnumberDefine node z-index
curve-markervisiblebooleanVisibility of point markers
curve-maxnumberCurve max value
curve-minnumberCurve min value
curve-namestringName of curve
curve-neatlimitsbooleanNeatlimits setting, true of set neatlimits object to enable, false or null|undefined to disable
curve-neatlimitscenteredonzerobooleanTrue if curve in neat-limits mode
curve-splinebooleanToggle spline interpolation
curve-unitstringUnit string
curve-valuesValuesObject containing point values options
curve-values-anchorAnchorType
curve-values-colorstringColor of value text font
curve-values-fillstylestringFillstyle of value text container
curve-values-fillstyleFillStyleFillstyle of value text container
curve-values-fontstringValue text font
curve-values-formatNumberFormatFormatter for value text
curve-values-format-fulllocalebooleanSpecify format how to provide locale
curve-values-format-grouplengthnumberSpecify group length of numbers
curve-values-format-localestringFormat locale
curve-values-format-localeLocaleFormat locale
curve-values-format-locale-localestringThe name of the locale
curve-values-format-locale-numberformatNumberFormatInfoDefines number format
curve-values-format-locale-numberformat-decstringDefines decimal symbol
curve-values-format-locale-numberformat-groupstringDefines group symbol
curve-values-format-locale-numberformat-infinitystringDefines infinity text
curve-values-format-locale-numberformat-negstringDefines negative symbol
curve-values-format-maximumfractiondigitsnumberSpecify maximum fraction digits
curve-values-format-minimumfractiondigitsnumberSpecify minimum fraction digits, have to be less or equal to maximumfractiondigits
curve-values-format-roundbooleanRound number
curve-values-linestylestringLinestyle of value text container
curve-values-linestyleLineStyleLinestyle of value text container
curve-values-offsetnumber
curve-values-offsetxnumber
curve-values-offsetynumber
curve-values-paddingnumber
curve-values-paddingstylenumber | stringInner padding style in device coordinates
curve-values-textstylestringTexttyle of value text container
curve-values-textstyleTextStyleTexttyle of value text container
curve-values-textstyle-alignmentAlignmentStyleAlignment
curve-values-textstyle-autosizebooleanAuto font size on high definition display
curve-values-textstyle-backgroundstringBackground style
curve-values-textstyle-backgroundFillStyleBackground style
curve-values-textstyle-baselineBaseLineStyleBase line
curve-values-textstyle-colorstringColor in CSS form
curve-values-textstyle-fillFillStyleText fill style
curve-values-textstyle-fontstringFont see
curve-values-textstyle-fonturlstringThe place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword
curve-values-textstyle-lineheightstring | numberLine height
curve-values-textstyle-multilinebooleanAllow multi-line text
curve-values-textstyle-outlinestringOutline style
curve-values-textstyle-outlineLineStyleOutline style
curve-values-textstyle-overflowwrapOverflowWrapStyleOverflow wrap
curve-values-textstyle-strikethroughstringStrikethrough style
curve-values-textstyle-strikethroughLineStyleStrikethrough style
curve-values-textstyle-textoverflowTextOverflowStyleText overflow
curve-values-textstyle-underlinestringUnderline style
curve-values-textstyle-underlineLineStyleUnderline style
curve-values-textstyle-underlineoffsetstring | numberUnderline offset distance
curve-values-textstyle-whitespaceWhiteSpaceStyleWhite space
curve-values-textstyle-wordbreakWordBreakStyleWord break
curve-values-visiblebooleanVisibility of point values
curve-visiblebooleanVisibility of curve
curveaxisAxisOptionsJSON which defines curve axis
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-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-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
curvelimitsCurveLimitsOptionsJSON which defines curve limits area
curvelimits-fontstring10px Arial] curve limits text font
curvelimits-marginnumberCurve limits area margin (top and bottom)
curvelimits-visiblebooleanVisibility of curve limits area
curvelimits-widthnumberWidth for each curve limits column
curvesymbolSymbolOptionsJSON which defines curve highlighting symbol
curvesymbol-fillstylestringFillstyle of symbol
curvesymbol-fillstyleFillStyleFillstyle of symbol
curvesymbol-heightnumberHeight of symbol
curvesymbol-painterstringPainter
curvesymbol-visiblebooleanVisibility of curve highlighting symbol
curvesymbol-widthnumberWidth of symbol
modelGroupTimeseries' center model limits can be specified using this option
model-automodellimitsmodebooleanAuto model limits mode
model-boundsRectDefine position of the group in the parent
model-clippingbooleanEnable clipping, this does not consider the clipstyle, it is related to bounds-clipping
model-clipstyleClipStyleClipping style
model-clipstyleGraphicsPathClipping style
model-contentorientationOrientationContent orientation
model-cssclassstringThe css class name of this node
model-csscursorstringCSS cursor associated with node
model-cssstylestringCSS style to be applied to inserted elements
model-fillstylestringFill style
model-fillstyleFillStyleFill style
model-horizontalflipbooleanHorizontal axis goes from right to left
model-idstring | numberId of the node, its a unique identifier
model-infinitybooleanMode to render outside the model limits
model-layoutstyleLayoutStyleLayout style to be used for parent layout
model-linestylestringLine style
model-linestyleLineStyleLine style
model-localtransformTransformationLocal transformation
model-marginsnumber | stringIt has properties for specifying the margins for each side
model-modellimitsRectDefine inner model coordinates of the group
model-namestringName of the node. It is often used for debugging purposes or to simplify queries
model-opacitynumberNode opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context
model-opacityblendmodeBlendModeNode opacity mode to blend it
model-paddingnumber | stringIt has properties for specifying the padding for each side
model-pickingchildrenbooleanEnable picking children
model-scalescrollstrategyScaleScrollStrategyScale scroll strategy
model-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
model-taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
model-transformstringAdditional CSS transformation applied to node or 'none'
model-transformTransformationAdditional CSS transformation applied to node or 'none'
model-verticalflipbooleanVertical axis goes from bottom to top
model-viewcachebooleanView cache to cache child nodes
model-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
model-z-indexnumberDefine node z-index
modeloffsetsModelOffsetsOptions for model padding offsets
modeloffsets-leftstring | numberModel left offset
modeloffsets-rightstring | numberModel right offset
percentPercentModePercent TimesSeriesWidget settings
percent-enabledbooleanTrue to enable time series percent mode, false otherwise
stackStackModeStack TimesSeriesWidget settings
stack-enabledbooleanTrue to enable time series stack area mode, false otherwise
timezoneTimeZoneUTC or local time
viewcacheboolean

Contents

Constructors

new TimeSeriesWidget(options)

new TimeSeriesWidget(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

BaseWidget.constructor

Methods

addAnnotation

addAnnotation(options): string

add an Annotation object at the specific point : [curveid, time] note: it will try to find the nearest point at the specific time.

Parameters

Name Type Description
optionsAddAnnotationOptionsjson object that represents the annotation options

Returns

string

id of the created Annotation object or null if it cannot be inserted at the following time


addAnnotationLine

addAnnotationLine(options): string

Add Annotation Line

Parameters

Name Type Description
optionsAnnotationLineOptionsJSON for annotation properties

Returns

string

id


addAnnotationLineCollection

addAnnotationLineCollection(optionsArray): string

Add Annotation Line Group.

See

TimeSeriesWidget.addAnnotationLine for options description

Parameters

Name Type Description
optionsArrayAnnotationLineOptions[]array of options of JSON for annotation properties

Returns

string

the group id (or null if an array was not passed in)


addBaseLayer

addBaseLayer(baseLayer): TimeSeriesWidget

Add baseLayer to container

Parameters

Name Type Description
baseLayerNode | Node[]baseLayer to be added

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.addBaseLayer


addChild

addChild(node): TimeSeriesWidget

Add a child node

Parameters

Name Type Description
nodeNode | Iterator<Node> | Node[]the child node to be added

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.addChild


addCssClass

addCssClass(cssclass): TimeSeriesWidget

Adds new css class to node

Parameters

Name Type Description
cssclassstring | string[]css class name('s)

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.addCssClass


addCurve

addCurve(name, uri?, data?, properties?, id?): string

Adds a curve to the widget

Parameters

Name Type Description
namestring | CurveOptionscurve name or object containing all parameters
Optional uristringcurve uri
Optional dataDataTableViewDataTableView object for this curve
Optional propertiesCurvePropertiesobject
Optional idstringunique id for added curve

Returns

string

id unique id for the curve added


addCurves

addCurves(curves): number | string[]

Adds an array of curves

Parameters

Name Type Description
curvesCurveOptions[]Array of objects containing curve definitions

Returns

number | string[]

Array of curve ids added or -1 if no curves added


addFill

addFill(id1, id2, fillStyle, fillType, fillDirection, targetCurveId?): void

Add a fill to a curve(id1)

Parameters

Name Type Description
id1string(From curve)
id2string | number(To curve/referenceline/null)
fillStyleTypethe fill style
fillTypeFillTypefill type
fillDirectionFillDirectionDirection of the fill
Optional targetCurveIdstringtarget curve id to associate fill with

Returns

void


addInvalidateHandler

addInvalidateHandler(handler): TimeSeriesWidget

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.addInvalidateHandler


addOverlay

addOverlay(overlay): TimeSeriesWidget

Add overlay to container

Parameters

Name Type Description
overlayNode | Node[]overlay to be added

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.addOverlay


addReferenceLine

addReferenceLine(options): TimeSeriesWidget

Create and add a reference line to the widget

Parameters

Name Type Description
optionsReferenceLineDataOptions for reference line

Returns

TimeSeriesWidget

this


adjustPosition

adjustPosition(area?, vAlign?, hAlign?): TimeSeriesWidget

Adjust position of node to specified area

Parameters

Name Type Description
Optional areaRectspecified area. Default to Parent Model Limits
Optional vAlignstringvertical alignment. It can be "top", "bottom", "center". Defaults to "top".
Optional hAlignstringhorizontal alignment It can be "left", "right", "center". Defaults to "left".

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.adjustPosition


applyOpacity

Protected applyOpacity(context): TimeSeriesWidget

This method is called to apply opacity if it is specified on the rendering context. The default implementation sets global alpha on the rendering context

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.applyOpacity


applyResponsiveStyle

Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

BaseWidget.applyResponsiveStyle


changeBaseLayerOrder

changeBaseLayerOrder(overlay, order, anchor?): TimeSeriesWidget

Changes the z-order of the baseLayer.

Parameters

Name Type Description
overlayNode
orderNodeOrderposition to be added
Optional anchorNodeanchor node to specify changeOrder with respect to this node

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.changeBaseLayerOrder


changeChildOrder

changeChildOrder(node, order, anchor?): TimeSeriesWidget

changes the z-order of the nodes being rendered.

Parameters

Name Type Description
nodeNodeany child added in the Composite node
orderNodeOrderposition to be added
Optional anchorNodeanchor node to specify changeOrder with respect to this node

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.changeChildOrder


changeOverlayOrder

changeOverlayOrder(overlay, order, anchor?): TimeSeriesWidget

Changes the z-order of the overlay.

Parameters

Name Type Description
overlayNodechild overlay
orderNodeOrderposition to be added
Optional anchorNodeanchor node to specify changeOrder with respect to this node

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.changeOverlayOrder


changeVisualOrder

changeVisualOrder(curve, order, anchor?): TimeSeriesWidget

Parameters

Name Type Description
curvestringid of curve to re-ordered
orderNodeOrdertype of node re-ordering
Optional anchorstringid of anchor for re-ordering

Returns

TimeSeriesWidget

this


checkCollision

checkCollision(context): boolean

Check culling Returns true if object is inside of renderable area

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

true if node is collided

Inherited from

BaseWidget.checkCollision


clearBaseLayers

clearBaseLayers(disposeBaseLayers?): TimeSeriesWidget

Remove all child baseLayers from group

Parameters

Name Type Description
Optional disposeBaseLayersbooleanautomatically dispose baseLayers. If it is true then method dispose is called for each baseLayer, false by default

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.clearBaseLayers


clearCache

clearCache(): TimeSeriesWidget

Clear cache

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.clearCache


clearChildren

clearChildren(disposeChildren?): TimeSeriesWidget

Remove all child nodes from this composite group

Parameters

Name Type Description
Optional disposeChildrenbooleanautomatically dispose children. If it is true then method dispose is called for each child.

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.clearChildren


clearOverlays

clearOverlays(disposeOverlays?): TimeSeriesWidget

Remove all child overlays from group

Parameters

Name Type Description
Optional disposeOverlaysbooleanautomatically dispose overlays. If it is true then method dispose is called for each overlay, false by default

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.clearOverlays


clone

clone(): Group<Node>

All subclasses should override copyConstructor or provide custom implementation for this method

Returns

Group<Node>

clone

Inherited from

BaseWidget.clone


connectReferenceLine

connectReferenceLine(refLineId, curveId): TimeSeriesWidget

Connect a reference line with a curve/time series object using curve/time series object id

Parameters

Name Type Description
refLineIdstringThe reference line id to connect
curveIdstringcurve/time series object id to connect to

Returns

TimeSeriesWidget

this


connectStyle

connectStyle(style, type, callback): TimeSeriesWidget

Connects style.

This convenience method subscribes a listener to given style for the specified type.
And automatically un-subscribes listener if node is disposed to prevent memory leaks

Parameters

Name Type Description
styleEventDispatcherconnect style
typestringtype of event or property
callbackAttributeCallback<EventDispatcher>function to be called

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.connectStyle


connectTool

connectTool(tool): TimeSeriesWidget

Connect a new tool with a toolname to the widget

Parameters

Name Type Description
toolAbstractTool | AbstractTool[]tool associated with the widget

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.connectTool


copyConstructor

Protected copyConstructor(src, deepCopy?): TimeSeriesWidget

Copy constructor function.
Function used as part of the cloning mechanism.
Implementations should copy the given instance state to this instance.

Parameters

Name Type Description
srcGroup<Node>Source to copy from
Optional deepCopybooleandeep copy

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.copyConstructor


createGroup

createGroup(id, curveIDs?, min?, max?, options?): string

Add a time series group, which shares axis and limits only

Parameters

Name Type Description
idstring | GroupOptionsgroup id
Optional curveIDsstring[]curve ids
Optional minnumbermin
Optional maxnumbermax
Optional optionsAxisOptionsSee TimeSeriesObject axis options

Returns

string

id


createTimeSeriesObject

Protected createTimeSeriesObject(curveData, silent, axisOnly?): TimeSeriesObject

Internal method of creating TS object

Parameters

Name Type Description
curveDataCurveOptionsobject containing curve definitions
silentbooleanflag for adding curves silently
Optional axisOnlybooleanif only axis need to create

Returns

TimeSeriesObject

timeseriesobject created


disconnectReferenceLine

disconnectReferenceLine(refLineId): TimeSeriesWidget

Disconnect a reference line with a curve/time series object the line connecting to

Parameters

Name Type Description
refLineIdstringThe reference line id to disconnect

Returns

TimeSeriesWidget

this


disconnectStyle

disconnectStyle(style, type, callback): TimeSeriesWidget

Disconnect style
This convenience method un-subscribes a listener to given style for the specified type.

Parameters

Name Type Description
styleEventDispatcherconnect style
typestringtype of event or property
callbackAttributeCallback<EventDispatcher>function to be called

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.disconnectStyle


disconnectTool

disconnectTool(tool): TimeSeriesWidget

Disconnect the tool from the widget

Parameters

Name Type Description
toolAbstractTool | AbstractTool[]tool to disconnect

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.disconnectTool


dispose

dispose(): void

Dispose node. Clear all listeners and disconnect style to avoid memory leaks

Returns

void

Inherited from

BaseWidget.dispose


drawBorder

Protected drawBorder(localContext, bounds?): TimeSeriesWidget

Draws a rectangle at the bounding box (in parent coordinates)

Parameters

Name Type Description
localContextRenderingContextThe local rendering context
Optional boundsRectgroup bounds

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.drawBorder


editAnnotation

editAnnotation(id, options): string

Parameters

Name Type Description
idstringannotation id
optionsEditAnnotationannotation options

Returns

string


editAnnotationLine

editAnnotationLine(id, options): string

Edit annotation line

Parameters

Name Type Description
idstringannotation id
optionsPick<EditAnnotation, "opacity" | "transform" | "text" | "fillstyle" | "linestyle" | "alignment" | "animationstyle" | "textstyle" | keyof Options | "localtransform" | "clipstyle" | "responsivestyle" | "cssstyle" | "csscursor" | "margins" | "renderingfilter" | "scalescrollstrategy" | "opacityblendmode" | "angle" | "point" | "textvisible" | "linevisible">JSON for annotation options

Returns

string

id


enableClipping

enableClipping(doClip): TimeSeriesWidget

Enables or disables clipping of this node. If enabled, shapes will not be rendered outside of its bounds.

Parameters

Name Type Description
doClipbooleanenable clipping on this node

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.enableClipping


enableEventPropagation

enableEventPropagation(enable): TimeSeriesWidget

Enable event propagation from the node hierarchy from bottom to top

This option is similar to DOM Event bubbling, which allows to get any event from child node. By default it is disabled for better performance.

Example

import {Group} from '@int/geotoolkit/scene/Group';
import {Events as SceneEvents} from '@int/geotoolkit/scene/Node';
const parentGroup = new Group()
.setName('ParentGroup')
.enableEventPropagation(true);
const childGroup = new Group()
.setName('ChildGroup');

parentGroup.addChild(childGroup);
parentGroup.on(SceneEvents.Invalidate, (eventName, sender, args) => {
// Got notifications from all children of parent group
});
childGroup.invalidate();

Parameters

Name Type Description
enablebooleanenable

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.enableEventPropagation


enablePickingChildren

enablePickingChildren(enable): TimeSeriesWidget

Enables or disables picking children

Parameters

Name Type Description
enablebooleanenable picking children

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.enablePickingChildren


enumerateNodes

enumerateNodes(callback, target?): void

Executes a provided function once for each child node

Parameters

Name Type Description
callbackCallback<Node>provided function
Optional targetQueryBuilder<any>target to pass to callback as a second parameter

Returns

void

Inherited from

BaseWidget.enumerateNodes


execute

execute(delegate): TimeSeriesWidget

Executes delegate and return the result. It allows us to keep all initialization calls in one place,
and we do not need to scroll up or down in IDE to find how and where it was initialized.

Example

// All setters (.setName() for example) returns reference to the this.
// In order to modify inner object like LineStyle or Pattern, to get this object (property) we should call getter to get object reference.
// Then modify it as shown below in Option 1 or you can use execute methods shown in Option 2.
import {Group} from '@int/geotoolkit/scene/Group';
import {Rect} from '@int/geotoolkit/util/Rect';
// Option 1
const group = new Group()
.setName('MyGroup')
.setBounds(new Rect(0, 0, 42, 16))
.enableClipping(true)
.setTag({'type': 'sometype'});

group.getLineStyle().setPattern('pattern');
return group;

// Options 2 ( using execute method )
return group
.execute(function () {
this.getLineStyle()
.setPattern("pattern");
});

Parameters

Name Type Description
delegate(this: TimeSeriesWidget) => voidFunction to execute

Returns

TimeSeriesWidget

The result if any or this

Inherited from

BaseWidget.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: TimeSeriesWidget) => T

Returns

T

Inherited from

BaseWidget.execute


exportToPDF

exportToPDF(options?): Promise<IWritable>

Exports the widget content as a PDF file

Parameters

Name Type Description
Optional optionsExportToPDFOptionsPDF options

Returns

Promise<IWritable>

promise with output stream


filter

Protected filter(context): boolean

Filter node

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

flag filter flag ("true" to render node; "false" otherwise)

Inherited from

BaseWidget.filter


fitToBounds

fitToBounds(): TimeSeriesWidget

Fits bounds to model limits

Returns

TimeSeriesWidget

this


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

BaseWidget.getAnimationStyle


getAnnotationLineProperties

getAnnotationLineProperties(id): AnnotationLineOptionsOut

Gets properties of the annotation line

Parameters

Name Type Description
idstringid of annotation line to get properties

Returns

AnnotationLineOptionsOut

JSON that contains all properties of the annotation line


getAnnotationProperties

getAnnotationProperties(id): AnnotationLineOptionsOut | AnnotationOptionsOut

Gets properties of the annotation

Parameters

Name Type Description
idstringid of annotation line to get properties

Returns

AnnotationLineOptionsOut | AnnotationOptionsOut

JSON that contains all properties of the annotation line


getAutoModelLimitsMode

getAutoModelLimitsMode(): boolean

Get Model Limits Logics to use when no Model Limits have been set set to true: will use parents width and height, starting at 0 set to false: will use parents bounds

Returns

boolean

mode

Inherited from

BaseWidget.getAutoModelLimitsMode


getAutoModelLimitsStrategy

getAutoModelLimitsStrategy(): ModelLimitsStrategy

Get Model Limits Logics Strategy

Returns

ModelLimitsStrategy

strategy

Inherited from

BaseWidget.getAutoModelLimitsStrategy


getBarMode

getBarMode(): Required<BarMode>

Get bar mode

Returns

Required<BarMode>

Options for bar mode


getBaseLayer

getBaseLayer(index): Node

Return baseLayer at specified index

Parameters

Name Type Description
indexnumberindex at which to get the baseLayer for

Returns

Node

track

Inherited from

BaseWidget.getBaseLayer


getBaseLayers

getBaseLayers<S>(predicate, modify?): Iterator<Node>

Return iterator by baseLayers nodes

Type parameters

NameType
Sextends Node<S>

Parameters

Name Type Description
predicate(value: Node) => value is Sa filter function
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node>

Inherited from

BaseWidget.getBaseLayers

getBaseLayers(filter?, modify?): Iterator<Node>

Returns an iterator for child baseLayers. The iterator does not support adding or deleting items from overlays by default. If it is necessary to modify a collection of overlays, pass true as the last parameter.

Example

// Gets a writable iterator
const it = node.getOverlays(null, true);

Parameters

Name Type Description
Optional filter(node: Node) => booleanA filter function. Returns all overlays if null.
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node>

An iterator for child overlays.

Inherited from

BaseWidget.getBaseLayers


getBaseLayersCount

getBaseLayersCount(): number

Returns amount of baseLayers

Returns

number

Inherited from

BaseWidget.getBaseLayersCount


getBounds

getBounds(): Rect

Get the bounds in the parents model space. If bounds are not set, then parent model limits are used.

Returns

Rect

current bounds

Inherited from

BaseWidget.getBounds


getCache

getCache(): Cache

Return cache strategy to be used to cache children nodes

Returns

Cache

cache

Inherited from

BaseWidget.getCache


getChild

getChild(i): Node

Return node by index

Parameters

Name Type Description
inumberindex of the node

Returns

Node

Inherited from

BaseWidget.getChild


getChildren

getChildren<S>(predicate, modify?): Iterator<S>

Return iterator by child nodes

Type parameters

NameType
Sextends Node<S>

Parameters

Name Type Description
predicate(value: Node) => value is Sa filter function
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<S>

Inherited from

BaseWidget.getChildren

getChildren(filter?, modify?): Iterator<Node>

Returns an iterator for child nodes. The iterator does not support adding or deleting items from children by default. If it is necessary to modify a collection of children, pass true as the last parameter.

Example

// Gets a writable iterator
const it = node.getChildren(null, true);

Parameters

Name Type Description
Optional filter(node: Node) => booleanA filter function. Returns all nodes if null.
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node>

An iterator for child nodes.

Inherited from

BaseWidget.getChildren


getChildrenCount

getChildrenCount(): number

Return number of child nodes

Returns

number

Inherited from

BaseWidget.getChildrenCount


getClassName

getClassName(): string

Returns

string

Inherited from

BaseWidget.getClassName


getClipStyle

getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

BaseWidget.getClipStyle


getContentOrientation

getContentOrientation(): Orientation

Return content orientation

Returns

Orientation

content orientation

Inherited from

BaseWidget.getContentOrientation


getContentsArea

getContentsArea(transformation?): Rect

Return area without paddings. Model limits are mapped to content area, where children are layout.

Parameters

Name Type Description
Optional transformationTransformationscene transformation

Returns

Rect

Inherited from

BaseWidget.getContentsArea


getContentsTransform

getContentsTransform(): Transformation

getContentsTransform() retrieves the world transformation of the node.

Returns

Transformation

transformation from model coordinates to bounds of the group

Inherited from

BaseWidget.getContentsTransform


getCss

getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

BaseWidget.getCss


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

BaseWidget.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

BaseWidget.getCssClasses


getCssTransform

getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

BaseWidget.getCssTransform


getCurveFillStyle

getCurveFillStyle(curveId, filldirection): FillStyle

Get the fill style associated with a curve in a specific direction

Parameters

Name Type Description
curveIdstringunique curve id
filldirectionFillDirectiondirection on the fill

Returns

FillStyle

fillstyle


getCurveFills

getCurveFills(curveId): Partial<Record<FillDirection, FillData>>

Gets both top and bottom fillstyles associated with curve

Parameters

Name Type Description
curveIdstringunique curve id

Returns

Partial<Record<FillDirection, FillData>>

object containing top and bottom fillstyles of curve


getCurveProperties

getCurveProperties(id): CurveOptionsOut

Gets properties of a curve

Parameters

Name Type Description
idstringid of the curve to get properties

Returns

CurveOptionsOut

properties object contains properties of the curve having that id


getCurves

getCurves(): string[]

Gets all curves id

Returns

string[]


getData

getData(data?): object

get options

Parameters

Name Type Description
Optional dataunknownhow to extract data, null by default

Returns

object

Inherited from

BaseWidget.getData


getDataById

getDataById(id): AbstractDataTable

retrieve data element with specified id

Parameters

Name Type Description
idstringspecified id of data element

Returns

AbstractDataTable


getDesiredHeight

getDesiredHeight(): string | number

Returns desired height of the group as a layoutable object This method is a helper method to get access to getLayoutStyle()

Returns

string | number

desired height ("undefined" by default)

Inherited from

BaseWidget.getDesiredHeight


getDesiredWidth

getDesiredWidth(): string | number

Returns desired width of the group as a layoutable object. This method is a helper method to get access to getLayoutStyle()

Returns

string | number

desired width ("undefined" by default)

Inherited from

BaseWidget.getDesiredWidth


getDeviceLimits

getDeviceLimits(): Rect

Return device limits

Returns

Rect

Inherited from

BaseWidget.getDeviceLimits


getFillStyle

getFillStyle(): FillStyle

Return fill style

Returns

FillStyle

fillStyle current fill style

Inherited from

BaseWidget.getFillStyle


getGroupById

getGroupById(groupid): TimeSeriesObjectGroup

Get TimeSeriesObjectGroup by ID

Parameters

Name Type Description
groupidstringgroup id

Returns

TimeSeriesObjectGroup


getHorizontalGridCurveReference

getHorizontalGridCurveReference(): string

Return curve associates with the horizontal grid.

Returns

string

curveId unique curve id


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

BaseWidget.getId


getInfiniteMode

getInfiniteMode(): boolean

Return infinity mode flag

Returns

boolean

flag

Inherited from

BaseWidget.getInfiniteMode


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

Gets invalidate method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

BaseWidget.getInvalidateMethod


getLayout

getLayout(): Layout

Returns layout associated with the group

Returns

Layout

layout

Inherited from

BaseWidget.getLayout


getLayoutStyle

getLayoutStyle(): LayoutStyle<string | number>

return desired layout style

Returns

LayoutStyle<string | number>

Inherited from

BaseWidget.getLayoutStyle


getLineStyle

getLineStyle(): LineStyle

Return border style

Returns

LineStyle

Inherited from

BaseWidget.getLineStyle


getLocalTransform

getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

BaseWidget.getLocalTransform


getLocale

getLocale(): Locale

Returns Current Locale

Returns

Locale


getMarginsStyle

getMarginsStyle(): SpaceStyle<string | number>

Return margins style

Returns

SpaceStyle<string | number>

Inherited from

BaseWidget.getMarginsStyle


getModelLimits

getModelLimits(): Rect

Gets model limits, the limits of this groups inside space

Returns

Rect

the current model limits

Inherited from

BaseWidget.getModelLimits


getModelOffsets

getModelOffsets(): ModelOffsets

Return model offsets

Returns

ModelOffsets

model offsets


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

BaseWidget.getName


getNowButtonWidget

getNowButtonWidget(): ButtonWidget

Returns Button widget contains 'Now' button

Returns

ButtonWidget


getOpacity

getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

BaseWidget.getOpacity


getOpacityBlendMode

getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

BaseWidget.getOpacityBlendMode


getOptions

getOptions(): OptionsBase

Gets options from this widget

Returns

OptionsBase

options


getOverlay

getOverlay(index): Node

Return overlay at specified index

Parameters

Name Type Description
indexnumberindex at which to get the overlay for

Returns

Node

track

Inherited from

BaseWidget.getOverlay


getOverlayAt

getOverlayAt(index): Node

Return overlay at specified index

Deprecated

since 4.2 use getOverlay instead

Parameters

Name Type Description
indexnumberindex at which to get the overlay for

Returns

Node

track

Inherited from

BaseWidget.getOverlayAt


getOverlayLayer

getOverlayLayer(): Layer<Node>

Returns manipulator overlay to draw shapes that should move with the model

Returns

Layer<Node>

Inherited from

BaseWidget.getOverlayLayer


getOverlays

getOverlays<S>(predicate, modify?): Iterator<Node>

Return iterator by overlays nodes

Type parameters

NameType
Sextends Node<S>

Parameters

Name Type Description
predicate(value: Node) => value is Sa filter function
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node>

Inherited from

BaseWidget.getOverlays

getOverlays(filter?, modify?): Iterator<Node>

Returns an iterator for child overlays. The iterator does not support adding or deleting items from overlays by default. If it is necessary to modify a collection of overlays, pass true as the last parameter.

Example

// Gets a writable iterator
const it = node.getOverlays(null, true);

Parameters

Name Type Description
Optional filter(node: Node) => booleanA filter function. Returns all overlays if null.
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node>

An iterator for child overlays.

Inherited from

BaseWidget.getOverlays


getOverlaysCount

getOverlaysCount(): number

Returns amount of overlays

Returns

number

Inherited from

BaseWidget.getOverlaysCount


getPaddingStyle

getPaddingStyle(): SpaceStyle<string | number>

Return padding style

Returns

SpaceStyle<string | number>

padding

Inherited from

BaseWidget.getPaddingStyle


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

BaseWidget.getParent


getPercentMode

getPercentMode(): Required<PercentMode>

Get percent mode settings

Returns

Required<PercentMode>

Percent TimesSeriesWidget settings


getPreferredSize

getPreferredSize(): Rect

Return preferred size to layout children

Returns

Rect

Inherited from

BaseWidget.getPreferredSize


getProperties

getProperties(): OptionsOut

Gets properties from this widget (same as getOptions)

Returns

OptionsOut

properties options

Overrides

BaseWidget.getProperties


getProperty

getProperty(name): any

Gets dynamic property by name. These properties can be used as a property bags

Parameters

Name Type Description
namestringproperty name

Returns

any

Inherited from

BaseWidget.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

BaseWidget.getPropertyKeys


getRange

getRange(): Range

Gets the model range

Returns

Range


getReferenceLineIds

getReferenceLineIds(timeSeriesObjectId?): string[]

Get reference line ids using curve/time series object id. If none provided, return all reference line ids connected to the widget

Parameters

Name Type Description
Optional timeSeriesObjectIdstringcurve/time series object id

Returns

string[]

Array of reference line ids


getReferenceLineOptions

getReferenceLineOptions(refLineId): ReferenceLineOptionsOuts

Get reference line options using id

Parameters

Name Type Description
refLineIdstringReference line id

Returns

ReferenceLineOptionsOuts

Reference line options


getRenderingFilter

getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

BaseWidget.getRenderingFilter


getResponsiveStyle

getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

BaseWidget.getResponsiveStyle


getRoot

getRoot(): Node

Returns root node.
If node doesn't have parent then it returns itself.

Returns

Node

the root node

Inherited from

BaseWidget.getRoot


getScaleScrollStrategy

getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

BaseWidget.getScaleScrollStrategy


getScalesButtonWidget

getScalesButtonWidget(): ButtonWidget

Returns Button widget contains 'Scales' buttons

Returns

ButtonWidget


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

BaseWidget.getSceneTransform


getStackMode

getStackMode(): Required<StackMode>

Get stack mode settings

Returns

Required<StackMode>

Stack TimesSeriesWidget settings


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

BaseWidget.getTag


getTimeSeriesObjectById

getTimeSeriesObjectById(id): TimeSeriesObject

Get TimeSeriesObject by id

Example

widget.getTimeSeriesObjectById(id).setAxisOptions({'visible': false});

Parameters

Name Type Description
idstring | numbertimeseries object id

Returns

TimeSeriesObject


getTool

getTool(): CompositeTool

Returns root tool associated to this widget

Returns

CompositeTool

Inherited from

BaseWidget.getTool


getToolByName

getToolByName<T>(toolName): Tools[T]

Returns the tool matching the given name.
This function also accepts tool 'path' instead of absolute name.
For example:
getToolByName("compositeTool.panningTools.trackPanning.TrackPanning")
Would return the same tool as
getToolByName("TrackPanning")
As long as there is only one tool named "TrackPanning" in this composite
See listToolsNames()

Type parameters

NameType
Textends string

Parameters

Name Type Description
toolNameTThe tool name or path

Returns

Tools[T]

Overrides

BaseWidget.getToolByName


getToolByType

getToolByType(toolType): AbstractTool

Returns the tool matching the given type. or null if nothing is matching the tool type
For example:
getToolByType(geotoolkit.controls.tools.Selection)
Would return the same tool as
getToolByName("pick")

Parameters

Name Type Description
toolTypeClassType<any>toolType of the tool

Returns

AbstractTool

Inherited from

BaseWidget.getToolByType


getVisible

getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

BaseWidget.getVisible


getVisibleDeviceLimits

getVisibleDeviceLimits(ignoreModelLimits?): Rect

Return visible device limits

Parameters

Name Type Description
Optional ignoreModelLimitsbooleanflag defines whether to ignore ModelLimits or not

Returns

Rect

Inherited from

BaseWidget.getVisibleDeviceLimits


getVisibleModelLimits

getVisibleModelLimits(ignoreModelLimits?): Rect

Return visible model limits

Parameters

Name Type Description
Optional ignoreModelLimitsbooleanflag defines whether to ignore ModelLimits or not

Returns

Rect

Inherited from

BaseWidget.getVisibleModelLimits


getVisibleRange

getVisibleRange(): Range

Gets the visible model range

Returns

Range

range


getVisualBackLayer

getVisualBackLayer(): Group<Node>

Returns visual layer

Returns

Group<Node>


getVisualFrontLayer

getVisualFrontLayer(): Group<Node>

Returns visual layer

Returns

Group<Node>


getWorldTransform

getWorldTransform(): Transformation

Retrieves the local transformation of the node which represents multiplication of parent to bounds and contents transformations.

Returns

Transformation

Inherited from

BaseWidget.getWorldTransform


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

BaseWidget.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

BaseWidget.hasCssClass


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

BaseWidget.hasEventListener


highlightBars

highlightBars(highlightBars): TimeSeriesWidget

Highlight bars

Example

const highlightBars = [{
// highlight bar at index 2 of series 0
'datapointindex': 2,
'lineindex': 0
}, {
// highlight bar at index 4 of series 0
'datapointindex': 4,
'lineindex': 0
}, {
// highlight bar at index 3 of series 1
'datapointindex': 3,
'lineindex': 1
}];
this.highlightBars(highlightBars);

Parameters

Name Type Description
highlightBarsBarHighlighting[]Array of bars to highlight

Returns

TimeSeriesWidget

this


hitTest

hitTest(devicePoint): CurveData[]

Perform hit test on Time Series curve and get curve data

Parameters

Name Type Description
devicePointPointMouse coordinate in deivce space

Returns

CurveData[]

Array of curveData Curve data


indexOfBaseLayer

indexOfBaseLayer(baseLayer): number

Return index of overlay ( index of the specified child or -1 if baseLayer is not found)

Parameters

Name Type Description
baseLayerNodebaseLayer to check index

Returns

number

Inherited from

BaseWidget.indexOfBaseLayer


indexOfChild

indexOfChild(node): number

Return index of child ( index of the specified child or -1 if node is not found)

Parameters

Name Type Description
nodeNodenode to check index

Returns

number

Inherited from

BaseWidget.indexOfChild


indexOfOverlay

indexOfOverlay(overlay): number

Return index of overlay ( index of the specified child or -1 if overlay is not found)

Parameters

Name Type Description
overlayNodeoverlay to check index

Returns

number

Inherited from

BaseWidget.indexOfOverlay


initializeTools

Protected initializeTools(options?): TimeSeriesWidget

function call in the constructor to initialize tools in the widget

Parameters

Name Type Description
Optional optionsAnyRecordtools options

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.initializeTools


insertBaseLayer

insertBaseLayer(index, baseLayer): TimeSeriesWidget

Insert child baseLayer at specified index

Parameters

Name Type Description
indexnumberspecified index
baseLayerNodea baseLayer to add

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.insertBaseLayer


insertChild

insertChild(index, node): TimeSeriesWidget

Insert child node at specified index

Parameters

Name Type Description
indexnumberspecified index
nodeNodea child node to add

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.insertChild


insertCurve

insertCurve(name, uri?, data?, properties?, position?, id?): string

Inserts a curve to the widget at a desired position.

Parameters

Name Type Description
namestring | CurveOptionscurve name or object containing all parameters
Optional uristringdataset uri
Optional dataDataTableViewDataTableView object for this curve
Optional propertiesCurvePropertiesobject
Optional positionnumberdesired position of curve in TimeSeriesWidget.getCurves()
Optional idstringdesired id of curve, defaults to uri if unspecified

Returns

string

id unique id for the curve added


insertCurves

insertCurves(curves): number | string[]

Inserts an array of curves

Parameters

Name Type Description
curvesCurveOptions[]Array of objects containing curve definitions

Returns

number | string[]

array of curve ids added or -1 if no curves added


insertOverlay

insertOverlay(index, overlay): TimeSeriesWidget

Insert child overlay at specified index

Parameters

Name Type Description
indexnumberspecified index
overlayNodea overlay to add

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.insertOverlay


invalidate

invalidate(bounds?, force?): TimeSeriesWidget

Invalidate node

Parameters

Name Type Description
Optional boundsRectoptional rectangular area to be invalidated, or force flag if rectangle is empty
Optional forcebooleanoptional boolean parameter that can force invalidation

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.invalidate


invalidateLayout

invalidateLayout(propagate?): TimeSeriesWidget

Notify that layout is invalidated. Send event Events.LayoutInvalidated

Parameters

Name Type Description
Optional propagatebooleanpropagate invalidate layout to parent

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.invalidateLayout


invalidateParent

invalidateParent(bounds?, force?): TimeSeriesWidget

Invalidate parent area

Parameters

Name Type Description
Optional boundsRectarea to invalidate
Optional forcebooleanforce

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.invalidateParent


isClippingEnabled

isClippingEnabled(): boolean

Returns if clipping is enabled or not for this node.

Returns

boolean

Inherited from

BaseWidget.isClippingEnabled


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

BaseWidget.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

BaseWidget.isEventPropagationEnabled


isHorizontalFlip

isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

flip

Inherited from

BaseWidget.isHorizontalFlip


isLayoutInvalidated

isLayoutInvalidated(): boolean

Return true if layout is invalid

Returns

boolean

Inherited from

BaseWidget.isLayoutInvalidated


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

BaseWidget.isNotificationEnabled


isPickingChildrenEnabled

isPickingChildrenEnabled(): boolean

Returns if picking children is enabled or not for this node.

Returns

boolean

pickingChildren

Inherited from

BaseWidget.isPickingChildrenEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

BaseWidget.isSelectable


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

BaseWidget.isSilent


isVerticalFlip

isVerticalFlip(): boolean

Return true if the representation is flipped vertically

Returns

boolean

flip

Inherited from

BaseWidget.isVerticalFlip


listToolsNames

listToolsNames(): string[]

List all the tools contained in this composite. Prepend their parent tools parent using a '.'.

Returns

string[]

Inherited from

BaseWidget.listToolsNames


loadTemplate

loadTemplate(template, registry?): void

Load template loads the saved visual properties of the current template. It is only a visual representation of the current widget. It does not contain any data

Parameters

Name Type Description
templatestringtemplate to be applied to current widget
Optional registryRegistryregistry

Returns

void

Inherited from

BaseWidget.loadTemplate


moveTo

moveTo(area, vAlign?, hAlign?): TimeSeriesWidget

MoveTo position of node to specified area

Parameters

Name Type Description
areaRectspecified area
Optional vAlignstringvertical alignment. It can be "top", "bottom", "center".
Optional hAlignstringhorizontal alignment It can be "left", "right", "center".

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.moveTo


notify

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

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event
sourceTimeSeriesWidgetsource who called the event
Optional argsEventMap[E]event arguments

Returns

TimeSeriesWidget

this

Overrides

BaseWidget.notify


notifyRoot

Protected notifyRoot(event, source, args?): Node

Notify an even to root node

Parameters

Name Type Description
eventstringtype of event
sourceNodesource who called the event
Optional argsanyevent arguments

Returns

Node

this

Inherited from

BaseWidget.notifyRoot


off

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

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

Returns

TimeSeriesWidget

this

Overrides

BaseWidget.off


on

on<E>(type, callback): TimeSeriesWidget

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

Returns

TimeSeriesWidget

this

Overrides

BaseWidget.on


onBoundsChanged

Protected onBoundsChanged(bounds): TimeSeriesWidget

Occurs when bounds has been changed

Parameters

Name Type Description
boundsRectbound of the node in the parent coordinates

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.onBoundsChanged


onChildAdded

Protected onChildAdded(child): void

This method is called it child or children are added

Parameters

Name Type Description
childNode | Iterator<Node>added child

Returns

void

Inherited from

BaseWidget.onChildAdded


onChildRemoved

Protected onChildRemoved(child): void

This method is called it child or children are removed

Parameters

Name Type Description
childNoderemoved child

Returns

void

Inherited from

BaseWidget.onChildRemoved


onParentChanged

Protected onParentChanged(node): TimeSeriesWidget

This method is called when parent changes. Do not call it directly.

Parameters

Name Type Description
nodeNodenode to change parent

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.onParentChanged


onVisibilityChanged

Protected onVisibilityChanged(): void

This method is called if visibility is changed. Send event Events.VisibilityChanged

Returns

void

Inherited from

BaseWidget.onVisibilityChanged


postRendering

Protected postRendering(context, callback?): void

To be called after rendering, used for PDF output

Parameters

Name Type Description
contextRenderingContextRendering Context
Optional callback() => voidcallback to be called after rendering

Returns

void

Inherited from

BaseWidget.postRendering


preRendering

Protected preRendering(context, callback?): void

Occurs before child rendering

Parameters

Name Type Description
contextRenderingContextRendering Context
Optional callback() => voidcallback to be called after rendering of geometry

Returns

void

Inherited from

BaseWidget.preRendering


rebuild

rebuild(force?, changes?): TimeSeriesWidget

Rebuild node. This method resets state, cache, and invalidate node.

Parameters

Name Type Description
Optional forcebooleanoptional boolean parameter that can force invalidation
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.rebuild


rebuildLayers

rebuildLayers(): TimeSeriesWidget

Rebuilds all layers

Returns

TimeSeriesWidget

this


registerAnimationStyle

registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

BaseWidget.registerAnimationStyle


removeAnnotation

removeAnnotation(id): TimeSeriesWidget

remove annotation with the specified id.

Parameters

Name Type Description
idstringof the annotation to remove

Returns

TimeSeriesWidget

this


removeAnnotationLine

removeAnnotationLine(id): TimeSeriesWidget

Remove annotation line

Parameters

Name Type Description
idstringannotation id

Returns

TimeSeriesWidget

this


removeAnnotationLineCollection

removeAnnotationLineCollection(id): TimeSeriesWidget

Remove annotation line collection by ID.

Parameters

Name Type Description
idstringannotation line collection id

Returns

TimeSeriesWidget

this


removeBaseLayer

removeBaseLayer(baseLayer): TimeSeriesWidget

Remove child baseLayer

Parameters

Name Type Description
baseLayerNode | Node[]baseLayer or array of nodes to be removed

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.removeBaseLayer


removeChild

removeChild(node, disposeChildren?): TimeSeriesWidget

Remove child node

Parameters

Name Type Description
nodeNode | Node[]node or array of nodes to be removed
Optional disposeChildrenbooleanautomatically dispose children. If it is true then method dispose is called for each child.

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.removeChild


removeCssClass

removeCssClass(cssclass): TimeSeriesWidget

Removes css class from node

Parameters

Name Type Description
cssclassstring | string[]css class name('s)

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.removeCssClass


removeCurve

removeCurve(id): TimeSeriesWidget

Removes a curve

Parameters

Name Type Description
idstring | string[]array of curve ids

Returns

TimeSeriesWidget

this


removeCurveFill

removeCurveFill(curveId, filldirection): void

Removes a fillstyle associated with a curve in a specific direction

Parameters

Name Type Description
curveIdstringcurve id for which fillstyle is to be removed
filldirectionFillDirectiondirection of the fill

Returns

void


removeGroup

removeGroup(groupid): TimeSeriesWidget

Remove a timeseries group

Parameters

Name Type Description
groupidstringgroup id

Returns

TimeSeriesWidget

this


removeInvalidateHandler

removeInvalidateHandler(handler): TimeSeriesWidget

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.removeInvalidateHandler


removeOverlay

removeOverlay(overlay): TimeSeriesWidget

Remove child overlay

Parameters

Name Type Description
overlayNode | Node[]overlay or array of nodes to be removed

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.removeOverlay


removeReferenceLine

removeReferenceLine(id): TimeSeriesWidget

Remove a reference line using id

Parameters

Name Type Description
idstringThe reference line id to remove

Returns

TimeSeriesWidget

this


render

render(context): void

Render group

Parameters

Name Type Description
contextRenderingContextcontext to render group

Returns

void

Inherited from

BaseWidget.render


renderAsync

renderAsync(context, callback): void

Render node in asynchronous mode. This implementation doesn't support cache for now.

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node
callback() => voidcallback function

Returns

void

Inherited from

BaseWidget.renderAsync


renderBackground

Protected renderBackground(context, bounds): TimeSeriesWidget

Render background

Parameters

Name Type Description
contextRenderingContextcontext to render background
boundsRectgroup bounds

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.renderBackground


renderBaseLayers

Protected renderBaseLayers(context): TimeSeriesWidget

Render baseLayers on bottom of cache. This method does nothing, but can be implemented to render graphics on bottom of cache and between borders

Parameters

Name Type Description
contextRenderingContextcontext to render baseLayers

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.renderBaseLayers


renderBaseLayersAsync

Protected renderBaseLayersAsync(context, callback): void

Render baseLayers on bottom of cache in asynchronous mode. This method calls renderBaseLayers

Parameters

Name Type Description
contextRenderingContextcontext to render overlays
callback() => voidcallback function

Returns

void

Inherited from

BaseWidget.renderBaseLayersAsync


renderChildren

Protected renderChildren(context): void

Render children

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

BaseWidget.renderChildren


renderChildrenAsync

Protected renderChildrenAsync(context, callback): void

Render children async

Parameters

Name Type Description
contextRenderingContextRendering Context
callback() => voidcallback function to be called then all children are rendered

Returns

void

Inherited from

BaseWidget.renderChildrenAsync


renderContent

Protected renderContent(context): void

render to specified context. This method calls preRendering, renderChildren, postRendering

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

BaseWidget.renderContent


renderContentAsync

Protected renderContentAsync(context, callback): void

Render children in asynchronous mode

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node
callback() => voidcallback function to be called then all children are rendered

Returns

void

Inherited from

BaseWidget.renderContentAsync


renderOverlays

Protected renderOverlays(context): TimeSeriesWidget

Render overlays on top of cache. This method does nothing, but can be implemented to render graphics on top of cache and between borders

Parameters

Name Type Description
contextRenderingContextcontext to render overlays

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.renderOverlays


renderOverlaysAsync

Protected renderOverlaysAsync(context, callback): void

Render overlays on top of cache in asynchronous mode. This method calls renderOverlays

Parameters

Name Type Description
contextRenderingContextcontext to render overlays
callback() => voidcallback function

Returns

void

Inherited from

BaseWidget.renderOverlaysAsync


resumeUpdate

resumeUpdate(rebuild?, changes?): TimeSeriesWidget

Resume auto update

Parameters

Name Type Description
Optional rebuildbooleanforce rebuild
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.resumeUpdate


rotate

rotate(theta, x, y): TimeSeriesWidget

Rotate bounds around a given coordinate

Parameters

Name Type Description
thetanumberangle to rotate node, in radians
xnumberx coordinate to rotate around
ynumbery coordinate to rotate around

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.rotate


saveTemplate

saveTemplate(registry?): string

Save template saves visual properties of the current template. It is only a visual representation of the current widget. It does not contain any data

Parameters

Name Type Description
Optional registryRegistryregistry

Returns

string

Inherited from

BaseWidget.saveTemplate


scale

scale(xx, yy): TimeSeriesWidget

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.scale


scaleModel

scaleModel(scaleX): TimeSeriesWidget

Scale widget's contents

Parameters

Name Type Description
scaleXnumberx scale factor

Returns

TimeSeriesWidget

this


selectCurveById

selectCurveById(id): void

Select Curve By ID. The widget will trigger the event TimeSeriesWidget.Events.onSelectionChanged, if the selection has changed.

Parameters

Name Type Description
idstring(null to deselect)

Returns

void


setAnimationStyle

setAnimationStyle(animationStyle): TimeSeriesWidget

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

TimeSeriesWidget

Inherited from

BaseWidget.setAnimationStyle


setAutoModelLimitsMode

setAutoModelLimitsMode(mode): TimeSeriesWidget

Set Model Limits Logics to use when no Model Limits have been set set to true: will use parents width and height, starting at 0 set to false: will use parents bounds. This is convenient method. It creates AutoModelLimitsStrategy

Parameters

Name Type Description
modebooleanModel Limits Logics to be used

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setAutoModelLimitsMode


setAutoModelLimitsStrategy

setAutoModelLimitsStrategy(strategy): TimeSeriesWidget

Set Model Limits Logics Strategy

Parameters

Name Type Description
strategyModelLimitsStrategyModel Limits logic strategy to use

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setAutoModelLimitsStrategy


setBarMode

setBarMode(barMode?): TimeSeriesWidget

Set bar mode

Parameters

Name Type Description
Optional barModeBarModeOptions for bar mode

Returns

TimeSeriesWidget

this


setBounds

setBounds(bounds): TimeSeriesWidget

Sets bounds of the node in the parent coordinates

Parameters

Name Type Description
boundsTypebound of the node in the parent coordinates

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setBounds


setCache

setCache(cache, rebuild?): TimeSeriesWidget

Sets cache to be used to cache

Parameters

Name Type Description
cacheCachecache to be used
Optional rebuildbooleanrebuild cache

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setCache


setChild

setChild(index, node): TimeSeriesWidget

Replace child node by index

Parameters

Name Type Description
indexnumberindex of the node
nodeNodenode

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setChild


setClipStyle

setClipStyle(style): TimeSeriesWidget

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setClipStyle


setContentOrientation

setContentOrientation(orientation): TimeSeriesWidget

Set content orientation

Parameters

Name Type Description
orientationOrientationcontent orientation

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setContentOrientation


setCss

setCss(style, merge?): TimeSeriesWidget

Sets CSS style. This style will be applied for all inserted elements

Parameters

Name Type Description
styleTypeCSS style to be applied to inserted elements
Optional mergebooleanmerge flag

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setCss


setCssClass

setCssClass(name): TimeSeriesWidget

Sets css class name of the node to be used to apply CSS style

Parameters

Name Type Description
namestringcss class name of the node

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setCssClass


setCssTransform

setCssTransform(transform): TimeSeriesWidget

Set CSS transformation

Parameters

Name Type Description
transformstring | Transformationtransformation css transformation instruction or Transformation instance

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setCssTransform


setDesiredHeight

setDesiredHeight(value, silent?): TimeSeriesWidget

Sets desired height of the group as a layoutable object

Parameters

Name Type Description
valuestring | numberdesired height to set, use 'auto' for automatic desired height
Optional silentbooleansilent setting

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setDesiredHeight


setDesiredWidth

setDesiredWidth(value, silent?): TimeSeriesWidget

Sets desired width of the group as a layoutable object

Parameters

Name Type Description
valuestring | numberdesired width to set
Optional silentbooleansilent setting

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setDesiredWidth


setFillStyle

setFillStyle(fillStyle, merge?): TimeSeriesWidget

Sets fill style

Parameters

Name Type Description
fillStyleTypea new fill style
Optional mergebooleantrue if you want to merge fillStyle with existing attribute, false by default

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setFillStyle


setHorizontalFlip

setHorizontalFlip(enable): TimeSeriesWidget

Set horizontal flip of the representation

Parameters

Name Type Description
enablebooleanenable flip

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setHorizontalFlip


setHorizontalGridCurveReference

setHorizontalGridCurveReference(curveId): TimeSeriesWidget

Associates the horizontal grid with a curve. If null is passed in or curve is not found, it defaults to the first curve

Parameters

Name Type Description
curveIdstringunique curve id

Returns

TimeSeriesWidget

this


setId

setId(id): TimeSeriesWidget

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setId


setInfiniteMode

setInfiniteMode(infinityMode): TimeSeriesWidget

Set infinity mode flag to draw composite without collision check

Parameters

Name Type Description
infinityModebooleaninfinity mode flag

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setInfiniteMode


setLayout

setLayout(layout): TimeSeriesWidget

Associate layout with a group.

Parameters

Name Type Description
layoutRecord<string, any> | Layoutlayout instance to be set or layout properties to apply

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setLayout


setLayoutInvalidated

Protected setLayoutInvalidated(invalidated): void

Set invalidation status

Parameters

Name Type Description
invalidatedbooleaninvalidated layout

Returns

void

Inherited from

BaseWidget.setLayoutInvalidated


setLayoutStyle

setLayoutStyle(layoutStyle, silent?, merge?): TimeSeriesWidget

specify desired layout style

Parameters

Name Type Description
layoutStyleLayoutStyle<string | number> | Options<string | number>desired layout style
Optional silentbooleansilent setting
Optional mergebooleantrue if you want to merge layoutStyle with existing attribute, false by default

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setLayoutStyle


setLineStyle

setLineStyle(lineStyle, merge?): TimeSeriesWidget

Sets border color Returns this

Parameters

Name Type Description
lineStyleTypeline style or options
Optional mergebooleantrue if you want to merge lineStyle with existing attribute, false by default

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setLineStyle


setLocalTransform

setLocalTransform(localTransform, force?): TimeSeriesWidget

Sets local transformation to be used to transform from local to parent coordinate

Parameters

Name Type Description
localTransformTransformationlocal transformation for this node
Optional forcebooleanboolean flag to force update event if transformations are equal, false by default

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setLocalTransform


setLocale

setLocale(locale): TimeSeriesWidget

Sets locale

Parameters

Name Type Description
localeLocalelocale

Returns

TimeSeriesWidget


setMarginsStyle

setMarginsStyle(margins, merge?): TimeSeriesWidget

Sets margins style

Parameters

Name Type Description
marginsType<string | number>margins style
Optional mergebooleantrue if you want to merge marginsStyle with existing attribute, false by default

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setMarginsStyle


setModelLimits

setModelLimits(limits): TimeSeriesWidget

Sets inner model limits

Parameters

Name Type Description
limitsTypeinner limits

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setModelLimits


setModelOffsets

setModelOffsets(modelOffsets): TimeSeriesWidget

Sets model padding style

Parameters

Name Type Description
modelOffsetsstring | number | ModelOffsetsmodel offsets

Returns

TimeSeriesWidget

this


setName

setName(name): TimeSeriesWidget

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setName


setNotification

setNotification(notify, force?): TimeSeriesWidget

set notification state

Parameters

Name Type Description
notifybooleanflag set to invalidate parent or not
Optional forcebooleantrue if parent should be invalidated immediately

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setNotification


setOpacity

setOpacity(opacity, blendMode?): TimeSeriesWidget

Sets node opacity

Parameters

Name Type Description
opacitynumbernode opacity from 0 to 1
Optional blendModeBlendModeopacity blend mode. If it is normal, opacity will be replaced.

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setOpacity


setOptions

setOptions(options?): TimeSeriesWidget

Sets options

Example

// To configure margins/white space in the canvas
widget.setOptions({
// [top, right, bottom, left]
'margin': [0, 0, 0, 0]
});

Example

widget.setOptions({'selectionstrategy': (widget, newSelection, oldSelection) => { ... }});

Example

// To format tooltip data
widget.setOptions({
'tooltips': {
'tooltipoptions': {
'formatdatahandler': (data) => (
{
'name': data['name'],
'symbol': data['symbol'],
'valuetext': data['valuetext'],
'unittext':  data['id'] === 'Delta' ? ' ft' + ' degF' : data['unittext']
}}
}
}
}
});

Parameters

Name Type Description
Optional optionsOptionsobject containing widget options

Returns

TimeSeriesWidget

this


setPaddingStyle

setPaddingStyle(paddingStyle, merge?): TimeSeriesWidget

Sets padding style

Parameters

Name Type Description
paddingStyleType<string | number>padding style
Optional mergebooleantrue if you want to merge paddingStyle with existing attribute, false by default

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setPaddingStyle


setPercentMode

setPercentMode(percent?): TimeSeriesWidget

Set time series percent mode

Parameters

Name Type Description
Optional percentPercentModePercent TimesSeriesWidget settings

Returns

TimeSeriesWidget

this


setProperties

setProperties(properties?): TimeSeriesWidget

Sets Properties

Parameters

Name Type Description
Optional propertiesOptionsobject containing widget options

Returns

TimeSeriesWidget

this

Overrides

BaseWidget.setProperties


setProperty

setProperty(name, value): TimeSeriesWidget

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setProperty


setRange

setRange(range): TimeSeriesWidget

Sets the model range

Parameters

Name Type Description
rangeRangethe model range

Returns

TimeSeriesWidget

this


setReferenceLineOptions

setReferenceLineOptions(refLineId, options): TimeSeriesWidget

Set reference line options using id

Parameters

Name Type Description
refLineIdstringReference line id to set options on
optionsReferenceLineOptionsNew reference line options

Returns

TimeSeriesWidget

this


setRenderingFilter

setRenderingFilter(filter): TimeSeriesWidget

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): TimeSeriesWidget

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setResponsiveStyle


setScaleScrollStrategy

setScaleScrollStrategy(strategy?): TimeSeriesWidget

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setScaleScrollStrategy


setSelectable

setSelectable(selectable): TimeSeriesWidget

Allows to select node. If node is not selectable then child node is not selectable.

Parameters

Name Type Description
selectablebooleanflag to allow node selection

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setSelectable


setSilent

setSilent(bool): TimeSeriesWidget

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setSilent


setStackMode

setStackMode(stack?): TimeSeriesWidget

Set time series stack area mode

Parameters

Name Type Description
Optional stackStackModeStack TimesSeriesWidget settings

Returns

TimeSeriesWidget

this


setTag

setTag(tag): TimeSeriesWidget

Allows the user to associate any arbitrary object with the node.

Parameters

Name Type Description
taganyThe object to be associated with the node.

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setTag


setTool

Protected setTool(tool): TimeSeriesWidget

Set root tool associated to this widget

Parameters

Name Type Description
toolCompositeTooltool to be set

Returns

TimeSeriesWidget

Inherited from

BaseWidget.setTool


setVerticalFlip

setVerticalFlip(flip): TimeSeriesWidget

Set vertical flip of the representation

Parameters

Name Type Description
flipbooleanflag to set the vertical flip of the representation

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setVerticalFlip


setVisible

setVisible(value): TimeSeriesWidget

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setVisible


setVisibleModelLimits

setVisibleModelLimits(visibleModelBounds, deviceBounds?): TimeSeriesWidget

Set visible model limits

Parameters

Name Type Description
visibleModelBoundsRectvisible model limits or bounds
Optional deviceBoundsRectdevice bounds

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setVisibleModelLimits


setVisibleRange

setVisibleRange(range): TimeSeriesWidget

Sets the visible model range If the range is less than 1ms the range will be expanded and applied within the model's range If the model's limits are less than the minimum range, the range will be set to the model's limits

Parameters

Name Type Description
rangeRangevisible model range

Returns

TimeSeriesWidget

this


setZIndex

setZIndex(value): TimeSeriesWidget

Sets z-index for node (set null for default)

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.setZIndex


shear

shear(shx, shy): TimeSeriesWidget

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.shear


suspendUpdate

suspendUpdate(): TimeSeriesWidget

Suspend auto update

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.suspendUpdate


toString

toString(): string

Returns a string representation of this object (generally the classname)

Returns

string

A string representation

Inherited from

BaseWidget.toString


translate

translate(tx, ty): TimeSeriesWidget

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.translate


translateModel

translateModel(dx): TimeSeriesWidget

Translates widget's contents

Parameters

Name Type Description
dxnumberx translate

Returns

TimeSeriesWidget

this


unregisterAnimationStyle

unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootAnimatedNoderoot node for node

Returns

void

Inherited from

BaseWidget.unregisterAnimationStyle


updateLayout

updateLayout(targets?): TimeSeriesWidget

Updates layout(s)

Fires

Events.LayoutUpdated

Parameters

Name Type Description
Optional targetsILayoutable[]optional parameter about which element to layout

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.updateLayout


updateSceneTransformation

updateSceneTransformation(): TimeSeriesWidget

Update scene transformation

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.updateSceneTransformation


updateState

updateState(regions?, changes?): TimeSeriesWidget

Update state. These methods reset node state and update state for children. this method is useful to refresh a scene graph

Parameters

Name Type Description
Optional regionsRect[]optional array to return invalid rectangles in the parent coordinates
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.updateState


updateSuspended

updateSuspended(): boolean

Return state of suspend state

Returns

boolean

state of update

Inherited from

BaseWidget.updateSuspended


updateTimeStamp

Protected updateTimeStamp(): TimeSeriesWidget

Update time stamp to indicate that Node or Children has been changed.

Returns

TimeSeriesWidget

this

Inherited from

BaseWidget.updateTimeStamp


zoomIn

zoomIn(): TimeSeriesWidget

Zoom in with default factor

See

TimeSeriesWidget.scaleModel to set desired factor

Returns

TimeSeriesWidget

this


zoomOut

zoomOut(): TimeSeriesWidget

Zoom out with default factor

See

TimeSeriesWidget.scaleModel to set desired factor

Returns

TimeSeriesWidget

this


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

BaseWidget.enableSceneGraphNotification


findParent

Static findParent<T>(node, classType, filter?): InstanceType<T>

Find root of the node with specified type

Type parameters

NameType
Textends Constructor<any>

Parameters

Name Type Description
nodeNodenode to start search
classTypeTtype of the class to search for
Optional filter(node: Node) => booleanadditional filter to apply

Returns

InstanceType<T>

Inherited from

BaseWidget.findParent

Static findParent(node, classType, filter?): Node

Find root of the node with specified type

Parameters

Name Type Description
nodeNodenode to start search
classTypestringinterface name to search for
Optional filter(node: Node) => booleanadditional filter to apply

Returns

Node

Inherited from

BaseWidget.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

BaseWidget.getClassName


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

BaseWidget.isSceneGraphNotificationEnabled