Last updated

API / geotoolkit / welllog / widgets / visuals / LogTrackContainer / LogTrackContainer

Class: LogTrackContainer

visuals.LogTrackContainer.LogTrackContainer

Define an interface to provide nonaffine transformation from a linear 2D-space.

Interface

Hierarchy

Implements

Table of contents

Constructors
Methods
addBaseLayeraddChildaddCssClass
addInvalidateHandleraddLayeraddOverlay
addTrackadjustPositionapplyOpacity
applyResponsiveStylechangeBaseLayerOrderchangeChildOrder
changeOverlayOrderchangeTrackOrdercheckCollision
clearBaseLayersclearCacheclearChildren
clearLayersclearOverlaysclearTracks
cloneconnectStylecopyConstructor
disconnectStyledisposedrawBorder
enableClippingenableEventPropagationenablePickingChildren
enumerateNodesexecutefilter
forEachVisualgetAnimationStylegetAutoModelLimitsMode
getAutoModelLimitsStrategygetBaseLayergetBaseLayers
getBaseLayersCountgetBoundsgetCache
getChildgetChildrengetChildrenCount
getClassNamegetClipStylegetContentOrientation
getContentsAreagetContentsTransformgetCss
getCssClassgetCssClassesgetCssTransform
getDatagetDataBindinggetDepthLimits
getDesiredHeightgetDesiredWidthgetDeviceLimits
getDeviceUnitgetFillStylegetId
getIndentgetIndexUnitgetInfiniteMode
getInvalidateMethodgetLayergetLayerAt
getLayersgetLayersCountgetLayout
getLayoutStylegetLineStylegetLocalTransform
getMarginsStylegetMaxWidthgetMinWidth
getModelLimitsgetNamegetOpacity
getOpacityBlendModegetOutlinegetOverlay
getOverlayAtgetOverlaysgetOverlaysCount
getPaddingStylegetParentgetPreferredSize
getPropertiesgetPropertygetPropertyKeys
getRenderingFiltergetResponsiveStylegetRoot
getScaleScrollStrategygetScaleUnitgetSceneTransform
getTaggetTrackgetTrackAt
getTrackAtPositiongetTrackFactorygetTrackIndex
getTracksgetTracksCountgetVisible
getVisibleDepthLimitsgetVisibleDeviceLimitsgetVisibleModelLimits
getWorldTransformgetZIndexhasCssClass
hasEventListenerhitTestindexOfBaseLayer
indexOfChildindexOfLayerindexOfOverlay
indexOfTrackinsertBaseLayerinsertChild
insertOverlayinsertTrackinvalidate
invalidateLayoutinvalidateParentinverseTransform
isClippingEnabledisDisposedisEventPropagationEnabled
isHorizontalFlipisLayoutInvalidatedisNotificationEnabled
isPickingChildrenEnabledisSelectableisSilent
isVerticalFliploadTemplatemoveTo
notifynotifyRootoff
ononBoundsChangedonChildAdded
onChildRemovedonParentChangedonVisibilityChanged
postRenderingpreRenderingrebuild
registerAnimationStyleremoveBaseLayerremoveChild
removeCssClassremoveInvalidateHandlerremoveLayer
removeOverlayremoveTrackrender
renderAsyncrenderBackgroundrenderBaseLayers
renderBaseLayersAsyncrenderChildrenrenderChildrenAsync
renderContentrenderContentAsyncrenderOverlays
renderOverlaysAsyncresumeUpdaterotate
saveTemplatescalescrollToDepth
setAnimationStylesetAutoModelLimitsModesetAutoModelLimitsStrategy
setBoundssetCachesetChild
setClipStylesetContentOrientationsetCss
setCssClasssetCssTransformsetData
setDataBindingsetDepthLimitssetDesiredHeight
setDesiredWidthsetDeviceUnitsetFillStyle
setHorizontalFlipsetIdsetIndent
setIndexUnitsetInfiniteModesetLayout
setLayoutInvalidatedsetLayoutStylesetLineStyle
setLocalTransformsetMarginsStylesetModelLimits
setNamesetNodeFiltersetNotification
setOpacitysetPaddingStylesetProperties
setPropertysetRenderingFiltersetResponsiveStyle
setScaleScrollStrategysetScaleUnitsetScaleUnits
setSelectablesetSilentsetTag
setTrackFactorysetTrackWidthsetVerticalFlip
setVisiblesetVisibleDepthLimitssetVisibleModelLimits
setZIndexshearsuspendUpdate
toStringtransformtransformFromLinear
transformToLineartranslateunregisterAnimationStyle
updateLayoutupdateModelLimitsupdateSceneTransformation
updateStateupdateSuspendedupdateTimeStamp
enableSceneGraphNotificationfindParentgetClassName
getTrackAtPositionisSceneGraphNotificationEnabled
Css Properties
Name Type Description
automodellimitsmodebooleanAuto model limits mode
boundsRectDefine position of the group in the parent
bounds-heightnumberHeight
bounds-readonlybooleanReadonly
bounds-widthnumberWidth
bounds-xnumberLeft
bounds-ynumberTop
clippingbooleanEnable clipping, this does not consider the clipstyle, it is related to bounds-clipping
clipstyleClipStyleClipping style
clipstyle-evenoddbooleanTrue if evenodd mode is on ('nonzero' mode otherwise)
clipstyle-geometryGraphicsPathClipping geometry
clipstyle-geometry-boundsRectBounds
clipstyleGraphicsPathClipping style
contentorientationOrientationContent orientation
cssclassstringThe css class name of this node
csscursorstringCSS cursor associated with node
cssstylestringCSS style to be applied to inserted elements
deviceunitstringUnit of the device
fillstylestringFill style
fillstyleFillStyleFill style
fillstyle-colorstringColor in CSS form
fillstyle-evenoddmodebooleanEven-odd fill mode
fillstyle-fillpatternPatternPattern
fillstyle-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
fillstyle-fillpattern-patternnamestringName of this pattern for indexing
fillstyle-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
fillstyle-foregroundstringForeground color
fillstyle-patternPatternPattern
horizontalflipbooleanHorizontal axis goes from right to left
idstring | numberId of the node, its a unique identifier
indentnumberIndent indent between tracks
indexunitstringA scale unit or string symbol
infinitybooleanMode to render outside the model limits
layoutstyleLayoutStyleLayout style to be used for parent layout
layoutstyle-constraintSizeConstraintLayout constrains
layoutstyle-flexgrownumberNumber specifying how much the item will grow relative to the rest of the items inside the same container
layoutstyle-flexshrinknumberNumber specifying how much the item will shrink relative to the rest of the items inside the same container
layoutstyle-floatstringFloat position
layoutstyle-positionstringLayout position
layoutstyle-sizenumber | stringLayout size
linestylestringLine style
linestyleLineStyleLine style
linestyle-colorstringColor in CSS form
linestyle-fillstringOptional fill style to be used to fill lines generated with this style
linestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
linestyle-linecapCapStyleThe line cap style
linestyle-linedashoffsetnumberLine dash offset of dashed line
linestyle-linejoinJoinStyleThe line join style
linestyle-pixelsnapmodebooleanPixel Snap Mode, default(
linestyle-scalablebooleanTrue if width should depend on transformation
linestyle-unitstringOptional unit for the width
linestyle-widthnumber | stringThe line thickness
localtransformTransformationLocal transformation
localtransform-dxnumberX axis translation
localtransform-dynumberY axis translation
localtransform-xxnumberX scale
localtransform-xynumberXy skew
localtransform-yxnumberYx skew
localtransform-yynumberY scale
marginsnumber | stringIt has properties for specifying the margins for each side
modellimitsRectDefine inner model coordinates of the group
namestringName of the node. It is often used for debugging purposes or to simplify queries
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
opacityblendmodeBlendModeNode opacity mode to blend it
paddingnumber | stringIt has properties for specifying the padding for each side
pickingchildrenbooleanEnable picking children
scalescrollstrategyScaleScrollStrategyScale scroll strategy
scalescrollstrategy-enabledbooleanEnable flag
scaleunitstringA scale unit or string symbol
selectablebooleanSelectable node, a boolean to determine if selection should consider this node
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
transformstringAdditional CSS transformation applied to node or 'none'
transformTransformationAdditional CSS transformation applied to node or 'none'
verticalflipbooleanVertical axis goes from bottom to top
viewcachebooleanView cache to cache child nodes
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
z-indexnumberDefine node z-index

Contents

Constructors

new LogTrackContainer(options)

new LogTrackContainer(options?)

Parameters

Name Type
Optional optionsOptions | TrackFactory

Overrides

TrackContainer.constructor

Methods

addBaseLayer

addBaseLayer(baseLayer): LogTrackContainer

Add baseLayer to container

Parameters

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.addBaseLayer


addChild

addChild(node): LogTrackContainer

Add a child node

Parameters

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.addChild


addCssClass

addCssClass(cssclass): LogTrackContainer

Adds new css class to node

Parameters

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): LogTrackContainer

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LogTrackContainer

this

Inherited from

TrackContainer.addInvalidateHandler


addLayer

addLayer(layer): LogTrackContainer

Add layer or layer collection to container

Parameters

Name Type Description
layerCompositeNode<Node> | CompositeNode<Node>[]layer to be added

Returns

LogTrackContainer

this


addOverlay

addOverlay(overlay): LogTrackContainer

Add overlay to container

Parameters

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.addOverlay


addTrack

addTrack(track): LogTrackContainer

Add track to container

Parameters

Name Type Description
trackInsertTracktrack to be added

Returns

LogTrackContainer


adjustPosition

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

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

LogTrackContainer

this

Inherited from

TrackContainer.adjustPosition


applyOpacity

Protected applyOpacity(context): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.applyOpacity


applyResponsiveStyle

Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

TrackContainer.applyResponsiveStyle


changeBaseLayerOrder

changeBaseLayerOrder(overlay, order, anchor?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.changeBaseLayerOrder


changeChildOrder

changeChildOrder(node, order, anchor?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.changeChildOrder


changeOverlayOrder

changeOverlayOrder(overlay, order, anchor?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.changeOverlayOrder


changeTrackOrder

changeTrackOrder(track, order, anchor?): LogTrackContainer

changes the layout order of the tracks being rendered.

Parameters

Name Type Description
trackLogTrackchild track in the LogTrackContainer
orderNodeOrderposition to be added
Optional anchorLogTrackanchor track to specify changeOrder with respect to this track

Returns

LogTrackContainer

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

TrackContainer.checkCollision


clearBaseLayers

clearBaseLayers(disposeBaseLayers?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.clearBaseLayers


clearCache

clearCache(): LogTrackContainer

Clear cache

Returns

LogTrackContainer

this

Inherited from

TrackContainer.clearCache


clearChildren

clearChildren(disposeChildren?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.clearChildren


clearLayers

clearLayers(disposeLayers?): LogTrackContainer

Remove all child layers from container

Parameters

Name Type Description
Optional disposeLayersbooleanautomatically dispose layers. If it is true then method dispose is called for each layer, false by default

Returns

LogTrackContainer

this


clearOverlays

clearOverlays(disposeOverlays?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.clearOverlays


clearTracks

clearTracks(disposeTracks?): LogTrackContainer

Remove all tracks from this container

Parameters

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

Returns

LogTrackContainer

this


clone

clone(): LogTrackContainer

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

Returns

LogTrackContainer

clone

Overrides

TrackContainer.clone


connectStyle

connectStyle(style, type, callback): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.connectStyle


copyConstructor

Protected copyConstructor(src, deepCopy?): LogTrackContainer

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
srcLogTrackContainerSource to copy from
Optional deepCopybooleandeep copy

Returns

LogTrackContainer

this

Overrides

TrackContainer.copyConstructor


disconnectStyle

disconnectStyle(style, type, callback): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.disconnectStyle


dispose

dispose(): void

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

Returns

void

Inherited from

TrackContainer.dispose


drawBorder

Protected drawBorder(localContext, bounds?): LogTrackContainer

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

Parameters

Name Type Description
localContextRenderingContextThe local rendering context
Optional boundsRectgroup bounds

Returns

LogTrackContainer

this

Inherited from

TrackContainer.drawBorder


enableClipping

enableClipping(doClip): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.enableClipping


enableEventPropagation

enableEventPropagation(enable): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.enableEventPropagation


enablePickingChildren

enablePickingChildren(enable): LogTrackContainer

Enables or disables picking children

Parameters

Name Type Description
enablebooleanenable picking children

Returns

LogTrackContainer

this

Inherited from

TrackContainer.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

TrackContainer.enumerateNodes


execute

execute(delegate): LogTrackContainer

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: LogTrackContainer) => voidFunction to execute

Returns

LogTrackContainer

The result if any or this

Inherited from

TrackContainer.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: LogTrackContainer) => T

Returns

T

Inherited from

TrackContainer.execute


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

TrackContainer.filter


forEachVisual

forEachVisual(callback): void

Enumerate each visual in track container

Parameters

Name Type Description
callback(item: Node) => voidcallback method

Returns

void


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

TrackContainer.getAnimationStyle


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

TrackContainer.getAutoModelLimitsMode


getAutoModelLimitsStrategy

getAutoModelLimitsStrategy(): ModelLimitsStrategy

Get Model Limits Logics Strategy

Returns

ModelLimitsStrategy

strategy

Inherited from

TrackContainer.getAutoModelLimitsStrategy


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

TrackContainer.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

TrackContainer.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

TrackContainer.getBaseLayers


getBaseLayersCount

getBaseLayersCount(): number

Returns amount of baseLayers

Returns

number

Inherited from

TrackContainer.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

TrackContainer.getBounds


getCache

getCache(): Cache

Return cache strategy to be used to cache children nodes

Returns

Cache

cache

Inherited from

TrackContainer.getCache


getChild

getChild(i): Node

Return node by index

Parameters

Name Type Description
inumberindex of the node

Returns

Node

Inherited from

TrackContainer.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

TrackContainer.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

TrackContainer.getChildren


getChildrenCount

getChildrenCount(): number

Return number of child nodes

Returns

number

Inherited from

TrackContainer.getChildrenCount


getClassName

getClassName(): string

Returns

string

Inherited from

TrackContainer.getClassName


getClipStyle

getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

TrackContainer.getClipStyle


getContentOrientation

getContentOrientation(): Orientation

Return content orientation

Returns

Orientation

content orientation

Inherited from

TrackContainer.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

TrackContainer.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

TrackContainer.getContentsTransform


getCss

getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

TrackContainer.getCss


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

TrackContainer.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

TrackContainer.getCssClasses


getCssTransform

getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

TrackContainer.getCssTransform


getData

getData(): AbstractDataTable | DataSource

returns data source

Returns

AbstractDataTable | DataSource


getDataBinding

getDataBinding(): DataBinding | DataBindingRegistry

Return the data binding

Returns

DataBinding | DataBindingRegistry


getDepthLimits

getDepthLimits(): Range

Returns depth range

Returns

Range

Inherited from

TrackContainer.getDepthLimits


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

TrackContainer.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

TrackContainer.getDesiredWidth


getDeviceLimits

getDeviceLimits(): Rect

Return device limits

Returns

Rect

Inherited from

TrackContainer.getDeviceLimits


getDeviceUnit

getDeviceUnit(): AbstractUnit

Return a unit of the measure of device

Returns

AbstractUnit

Inherited from

TrackContainer.getDeviceUnit


getFillStyle

getFillStyle(): FillStyle

Return fill style

Returns

FillStyle

fillStyle current fill style

Inherited from

TrackContainer.getFillStyle


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

TrackContainer.getId


getIndent

getIndent(): number

Return indent between tracks

Returns

number


getIndexUnit

getIndexUnit(): AbstractUnit

Returns unit of the measure to be used to display scale in the header

Returns

AbstractUnit

Inherited from

TrackContainer.getIndexUnit


getInfiniteMode

getInfiniteMode(): boolean

Return infinity mode flag

Returns

boolean

flag

Inherited from

TrackContainer.getInfiniteMode


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

Gets invalidate method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

TrackContainer.getInvalidateMethod


getLayer

getLayer(index): CompositeNode<Node>

Return layer at specified index

Parameters

Name Type Description
indexnumberindex at which to get the layer for

Returns

CompositeNode<Node>

track


getLayerAt

getLayerAt(index): CompositeNode<Node>

Return layer at specified index

Deprecated

since 4.2 use getLayer(index) instead

Parameters

Name Type Description
indexnumberindex at which to get the layer for

Returns

CompositeNode<Node>

track


getLayers

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

Return iterator by overlays nodes

Parameters

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

Returns

Iterator<Node>


getLayersCount

getLayersCount(): number

Returns amount of layers

Returns

number


getLayout

getLayout(): Layout

Returns layout associated with the group

Returns

Layout

layout

Inherited from

TrackContainer.getLayout


getLayoutStyle

getLayoutStyle(): LayoutStyle<string | number>

return desired layout style

Returns

LayoutStyle<string | number>

Inherited from

TrackContainer.getLayoutStyle


getLineStyle

getLineStyle(): LineStyle

Return border style

Returns

LineStyle

Inherited from

TrackContainer.getLineStyle


getLocalTransform

getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

TrackContainer.getLocalTransform


getMarginsStyle

getMarginsStyle(): SpaceStyle<string | number>

Return margins style

Returns

SpaceStyle<string | number>

Inherited from

TrackContainer.getMarginsStyle


getMaxWidth

getMaxWidth(track?): string | number

Returns the maximum width of a track

Parameters

Name Type Description
Optional trackLogTracktrack to get maximum width

Returns

string | number


getMinWidth

getMinWidth(track?): string | number

Returns the minimum width of a track

Parameters

Name Type Description
Optional trackLogTracktrack to get minimum width

Returns

string | number


getModelLimits

getModelLimits(): Rect

Gets model limits, the limits of this groups inside space

Returns

Rect

the current model limits

Inherited from

TrackContainer.getModelLimits


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

TrackContainer.getName


getOpacity

getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

TrackContainer.getOpacity


getOpacityBlendMode

getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

TrackContainer.getOpacityBlendMode


getOutline

getOutline(tr): Polygon

Gets node outline

Parameters

Name Type Description
trTransformationtransformation which will be applied to outline

Returns

Polygon

Implementation of

ITransformable.getOutline


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

TrackContainer.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

TrackContainer.getOverlayAt


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

TrackContainer.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

TrackContainer.getOverlays


getOverlaysCount

getOverlaysCount(): number

Returns amount of overlays

Returns

number

Inherited from

TrackContainer.getOverlaysCount


getPaddingStyle

getPaddingStyle(): SpaceStyle<string | number>

Return padding style

Returns

SpaceStyle<string | number>

padding

Inherited from

TrackContainer.getPaddingStyle


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

TrackContainer.getParent


getPreferredSize

getPreferredSize(): Rect

Return preferred size to layout children

Returns

Rect

Inherited from

TrackContainer.getPreferredSize


getProperties

getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

properties object

Overrides

TrackContainer.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

TrackContainer.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

TrackContainer.getPropertyKeys


getRenderingFilter

getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

TrackContainer.getRenderingFilter


getResponsiveStyle

getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

TrackContainer.getResponsiveStyle


getRoot

getRoot(): Node

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

Returns

Node

the root node

Inherited from

TrackContainer.getRoot


getScaleScrollStrategy

getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

TrackContainer.getScaleScrollStrategy


getScaleUnit

getScaleUnit(): AbstractUnit

Returns unit of the measure to be used to display scale in the header

Deprecated

since 4.1 Use getIndexUnit instead

Returns

AbstractUnit

Inherited from

TrackContainer.getScaleUnit


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

TrackContainer.getSceneTransform


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

TrackContainer.getTag


getTrack

getTrack(index): LogTrack

Return track at specified index

Parameters

Name Type Description
indexnumberindex at which to get the track for

Returns

LogTrack

track


getTrackAt

getTrackAt(index): LogTrack

Return track at specified index

Deprecated

since 4.2 use getTrack instead

Parameters

Name Type Description
indexnumberindex at which to get the track for

Returns

LogTrack

track


getTrackAtPosition

getTrackAtPosition(x, gap): LogTrack | { left?: LogTrack ; right?: LogTrack }

Find nearest track at specified {number} x-coordinate

Parameters

Name Type Description
xnumberx coordinate to get the track at
gapnumbergap

Returns

LogTrack | { left?: LogTrack ; right?: LogTrack }


getTrackFactory

getTrackFactory(): TrackFactory

Returns track factory

Returns

TrackFactory

track factory


getTrackIndex

getTrackIndex(track): number

return index of track

Deprecated

since 4.2 use indexOfTrack instead

Parameters

Name Type Description
trackLogTrackindex of track

Returns

number

index of the track


getTracks

getTracks(filter?, modify?): Iterator<LogTrack>

Return iterator by child tracks

Parameters

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

Returns

Iterator<LogTrack>


getTracksCount

getTracksCount(): number

Returns amount of tracks

Returns

number


getVisible

getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

TrackContainer.getVisible


getVisibleDepthLimits

getVisibleDepthLimits(): Range

Returns visible depth range

Returns

Range

Inherited from

TrackContainer.getVisibleDepthLimits


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

TrackContainer.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

TrackContainer.getVisibleModelLimits


getWorldTransform

getWorldTransform(): Transformation

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

Returns

Transformation

Inherited from

TrackContainer.getWorldTransform


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

TrackContainer.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

TrackContainer.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

TrackContainer.hasEventListener


hitTest

hitTest(area, radius?): CollapsedInterval[]

Hit test in the device coordinates

Parameters

Name Type Description
areaPoint | Rectmodel area or position
Optional radiusnumberradius of selection

Returns

CollapsedInterval[]

a collection of selected nodes


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

TrackContainer.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

TrackContainer.indexOfChild


indexOfLayer

indexOfLayer(node): number

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

Parameters

Name Type Description
nodeCompositeNode<Node>node to check index

Returns

number


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

TrackContainer.indexOfOverlay


indexOfTrack

indexOfTrack(track): number

return index of track

Parameters

Name Type Description
trackLogTrackindex of track

Returns

number

index of the track


insertBaseLayer

insertBaseLayer(index, baseLayer): LogTrackContainer

Insert child baseLayer at specified index

Parameters

Name Type Description
indexnumberspecified index
baseLayerNodea baseLayer to add

Returns

LogTrackContainer

this

Inherited from

TrackContainer.insertBaseLayer


insertChild

insertChild(index, node): LogTrackContainer

Insert child node at specified index

Parameters

Name Type Description
indexnumberspecified index
nodeNodea child node to add

Returns

LogTrackContainer

this

Inherited from

TrackContainer.insertChild


insertOverlay

insertOverlay(index, overlay): LogTrackContainer

Insert child overlay at specified index

Parameters

Name Type Description
indexnumberspecified index
overlayNodea overlay to add

Returns

LogTrackContainer

this

Inherited from

TrackContainer.insertOverlay


insertTrack

insertTrack(index, track): LogTrack

Insert a track

Example

import {TrackType} from '@int/geotoolkit/welllog/TrackType';
widget.addTrack(TrackType.LinearTrack);

Example

// index tracks has 'INDEX_TRACK' css class defined, so it can be used to modify style with css:
widget.getTrackContainer().setCss('*[cssclass="INDEX_TRACK"] { visible: false; }');
// or differ it from another tracks:
if (track.getCssClass() === 'INDEX_TRACK') {
// do smth
}

Parameters

Name Type Description
indexnumberindex
trackInsertTracktrack to insert

Returns

LogTrack


invalidate

invalidate(bounds?, force?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.invalidate


invalidateLayout

invalidateLayout(propagate?): LogTrackContainer

Notify that layout is invalidated. Send event Events.LayoutInvalidated

Parameters

Name Type Description
Optional propagatebooleanpropagate invalidate layout to parent

Returns

LogTrackContainer

this

Inherited from

TrackContainer.invalidateLayout


invalidateParent

invalidateParent(bounds?, force?): LogTrackContainer

Invalidate parent area

Parameters

Name Type Description
Optional boundsRectarea to invalidate
Optional forcebooleanforce

Returns

LogTrackContainer

this

Inherited from

TrackContainer.invalidateParent


inverseTransform

inverseTransform(point): Point

Transforms point from device space to node space

Parameters

Name Type Description
pointPointpoint to transform

Returns

Point

transformed point

Implementation of

ITransformable.inverseTransform


isClippingEnabled

isClippingEnabled(): boolean

Returns if clipping is enabled or not for this node.

Returns

boolean

Inherited from

TrackContainer.isClippingEnabled


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

TrackContainer.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

TrackContainer.isEventPropagationEnabled


isHorizontalFlip

isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

flip

Inherited from

TrackContainer.isHorizontalFlip


isLayoutInvalidated

isLayoutInvalidated(): boolean

Return true if layout is invalid

Returns

boolean

Inherited from

TrackContainer.isLayoutInvalidated


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

TrackContainer.isNotificationEnabled


isPickingChildrenEnabled

isPickingChildrenEnabled(): boolean

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

Returns

boolean

pickingChildren

Inherited from

TrackContainer.isPickingChildrenEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

TrackContainer.isSelectable


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

TrackContainer.isSilent


isVerticalFlip

isVerticalFlip(): boolean

Return true if the representation is flipped vertically

Returns

boolean

flip

Inherited from

TrackContainer.isVerticalFlip


loadTemplate

loadTemplate(template, registry?, headerContainer?): void

Load template

Parameters

Name Type Description
templatestringtemplate to be applied to the widget
Optional registryRegistryregistry
Optional headerContainerLogHeaderContainerheader container

Returns

void


moveTo

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

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

LogTrackContainer

this

Inherited from

TrackContainer.moveTo


notify

notify(event, source, args?): LogTrackContainer

Notify listeners of the Node

Parameters

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

Returns

LogTrackContainer

this

Overrides

TrackContainer.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

TrackContainer.notifyRoot


off

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

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.off


on

on<E>(type, callback): LogTrackContainer

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.on


onBoundsChanged

Protected onBoundsChanged(bounds): LogTrackContainer

Occurs when bounds has been changed

Parameters

Name Type Description
boundsRectbound of the node in the parent coordinates

Returns

LogTrackContainer

this

Inherited from

TrackContainer.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

TrackContainer.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

TrackContainer.onChildRemoved


onParentChanged

Protected onParentChanged(node): LogTrackContainer

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

LogTrackContainer

this

Inherited from

TrackContainer.onParentChanged


onVisibilityChanged

Protected onVisibilityChanged(): void

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

Returns

void

Inherited from

TrackContainer.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

TrackContainer.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

TrackContainer.preRendering


rebuild

rebuild(force?, changes?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.rebuild


registerAnimationStyle

registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

TrackContainer.registerAnimationStyle


removeBaseLayer

removeBaseLayer(baseLayer): LogTrackContainer

Remove child baseLayer

Parameters

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.removeBaseLayer


removeChild

removeChild(node, disposeChildren?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.removeChild


removeCssClass

removeCssClass(cssclass): LogTrackContainer

Removes css class from node

Parameters

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): LogTrackContainer

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LogTrackContainer

this

Inherited from

TrackContainer.removeInvalidateHandler


removeLayer

removeLayer(layer): LogTrackContainer

Remove layer from container

Parameters

Name Type Description
layerCompositeNode<Node>layer to be removed

Returns

LogTrackContainer

this


removeOverlay

removeOverlay(overlay): LogTrackContainer

Remove child overlay

Parameters

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.removeOverlay


removeTrack

removeTrack(track, disposeTrack?): LogTrackContainer

Remove track from container

Parameters

Name Type Description
trackLogTracktrack to be removed
Optional disposeTrackbooleanautomatically dispose track. If it is true then method dispose is called for track.

Returns

LogTrackContainer


render

render(context): void

Render group

Parameters

Name Type Description
contextRenderingContextcontext to render group

Returns

void

Inherited from

TrackContainer.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

TrackContainer.renderAsync


renderBackground

Protected renderBackground(context, bounds): LogTrackContainer

Render background

Parameters

Name Type Description
contextRenderingContextcontext to render background
boundsRectgroup bounds

Returns

LogTrackContainer

this

Inherited from

TrackContainer.renderBackground


renderBaseLayers

Protected renderBaseLayers(context): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.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

TrackContainer.renderBaseLayersAsync


renderChildren

Protected renderChildren(context): void

Render children Overrides method from CompositeNode

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Overrides

TrackContainer.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

TrackContainer.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

TrackContainer.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

TrackContainer.renderContentAsync


renderOverlays

Protected renderOverlays(context): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.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

TrackContainer.renderOverlaysAsync


resumeUpdate

resumeUpdate(rebuild?, changes?): LogTrackContainer

Resume auto update

Parameters

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.resumeUpdate


rotate

rotate(theta, x, y): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.rotate


saveTemplate

saveTemplate(registry?): string

Save template

Parameters

Name Type Description
Optional registryRegistryregistry

Returns

string

return template as a string


scale

scale(xx, yy): LogTrackContainer

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

LogTrackContainer

this

Inherited from

TrackContainer.scale


scrollToDepth

scrollToDepth(depth, location?): LogTrackContainer

Scroll to depth, you also can specify a location of this depth in the track container, for example if you want to move the depth point location at the bottom of the track put ScrollToLocation.BOTTOM for the location variable. location support : 'center' 'top' 'bottom' and 'visible' cases.

warning depth limits should be expanded in order to see it correctly

Parameters

Name Type Description
depthnumberdepth in the track container
Optional locationScrollToLocationlocation of this depth in the track container

Returns

LogTrackContainer

this

Inherited from

TrackContainer.scrollToDepth


setAnimationStyle

setAnimationStyle(animationStyle): LogTrackContainer

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

LogTrackContainer

Inherited from

TrackContainer.setAnimationStyle


setAutoModelLimitsMode

setAutoModelLimitsMode(mode): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.setAutoModelLimitsMode


setAutoModelLimitsStrategy

setAutoModelLimitsStrategy(strategy): LogTrackContainer

Set Model Limits Logics Strategy

Parameters

Name Type Description
strategyModelLimitsStrategyModel Limits logic strategy to use

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setAutoModelLimitsStrategy


setBounds

setBounds(bounds): LogTrackContainer

Sets bounds of the node in the parent coordinates

Parameters

Name Type Description
boundsTypebound of the node in the parent coordinates

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setBounds


setCache

setCache(cache, rebuild?): LogTrackContainer

Sets cache to be used to cache

Parameters

Name Type Description
cacheCachecache to be used
Optional rebuildbooleanrebuild cache

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setCache


setChild

setChild(index, node): LogTrackContainer

Replace child node by index

Parameters

Name Type Description
indexnumberindex of the node
nodeNodenode

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setChild


setClipStyle

setClipStyle(style): LogTrackContainer

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setClipStyle


setContentOrientation

setContentOrientation(orientation): LogTrackContainer

Set content orientation

Parameters

Name Type Description
orientationOrientationcontent orientation

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setContentOrientation


setCss

setCss(style, merge?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.setCss


setCssClass

setCssClass(name): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.setCssClass


setCssTransform

setCssTransform(transform): LogTrackContainer

Set CSS transformation

Parameters

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setCssTransform


setData

setData(data): LogTrackContainer

Sets a new data model

Parameters

Name Type Description
dataAbstractDataTable | DataSourcelog data

Returns

LogTrackContainer

this


setDataBinding

setDataBinding(binding, silent?): LogTrackContainer

Sets the data binding

Parameters

Name Type Description
bindingDataBinding | DataBindingRegistrydata binding
Optional silentbooleansilent mode to forbid

Returns

LogTrackContainer

this


setDepthLimits

setDepthLimits(range): LogTrackContainer

Sets model depth range

Parameters

Name Type Description
rangeRangea new depth range

Returns

LogTrackContainer

this

Overrides

TrackContainer.setDepthLimits

setDepthLimits(minDepth, maxDepth): LogTrackContainer

Sets model minimum and maximum depth

Parameters

Name Type Description
minDepthnumberminimum depth
maxDepthnumbermaximum depth

Returns

LogTrackContainer

this

Overrides

TrackContainer.setDepthLimits


setDesiredHeight

setDesiredHeight(value, silent?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.setDesiredHeight


setDesiredWidth

setDesiredWidth(value, silent?): LogTrackContainer

Sets desired width of the group as a layoutable object

Parameters

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setDesiredWidth


setDeviceUnit

setDeviceUnit(unit): LogTrackContainer

Sets unit of the measure to be used for device

Parameters

Name Type Description
unitstring | AbstractUnitunit of the device

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setDeviceUnit


setFillStyle

setFillStyle(fillStyle, merge?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.setFillStyle


setHorizontalFlip

setHorizontalFlip(enable): LogTrackContainer

Set horizontal flip of the representation

Parameters

Name Type Description
enablebooleanenable flip

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setHorizontalFlip


setId

setId(id): LogTrackContainer

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setId


setIndent

setIndent(indent): LogTrackContainer

Set indent between tracks

Parameters

Name Type Description
indentnumberindent between tracks

Returns

LogTrackContainer

this


setIndexUnit

setIndexUnit(unit): LogTrackContainer

Sets unit of the measure to be used to display scale in the header

Parameters

Name Type Description
unitstring | AbstractUnita scale unit or string symbol

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setIndexUnit


setInfiniteMode

setInfiniteMode(infinityMode): LogTrackContainer

Set infinity mode flag to draw composite without collision check

Parameters

Name Type Description
infinityModebooleaninfinity mode flag

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setInfiniteMode


setLayout

setLayout(layout): LogTrackContainer

Associate layout with a group.

Parameters

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setLayout


setLayoutInvalidated

Protected setLayoutInvalidated(invalidated): void

Set invalidation status

Parameters

Name Type Description
invalidatedbooleaninvalidated layout

Returns

void

Inherited from

TrackContainer.setLayoutInvalidated


setLayoutStyle

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

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

LogTrackContainer

this

Inherited from

TrackContainer.setLayoutStyle


setLineStyle

setLineStyle(lineStyle, merge?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.setLineStyle


setLocalTransform

setLocalTransform(localTransform, force?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.setMarginsStyle


setModelLimits

setModelLimits(rect): LogTrackContainer

Sets model limits

Parameters

Name Type Description
rectRecta new model limits

Returns

LogTrackContainer

this

Overrides

TrackContainer.setModelLimits


setName

setName(name): LogTrackContainer

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setName


setNodeFilter

setNodeFilter(nodeFilter): LogTrackContainer

Sets node filter for selection tool

Parameters

Name Type Description
nodeFilter(item: Node) => booleanfilter that allows to filter selected nodes.

Returns

LogTrackContainer

this


setNotification

setNotification(notify, force?): LogTrackContainer

set notification state

Parameters

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setNotification


setOpacity

setOpacity(opacity, blendMode?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.setOpacity


setPaddingStyle

setPaddingStyle(paddingStyle, merge?): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.setPaddingStyle


setProperties

setProperties(properties?): LogTrackContainer

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

LogTrackContainer

this

Overrides

TrackContainer.setProperties


setProperty

setProperty(name, value): LogTrackContainer

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setProperty


setRenderingFilter

setRenderingFilter(filter): LogTrackContainer

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): LogTrackContainer

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setResponsiveStyle


setScaleScrollStrategy

setScaleScrollStrategy(strategy?): LogTrackContainer

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setScaleScrollStrategy


setScaleUnit

setScaleUnit(unit): LogTrackContainer

Sets unit of the measure to be used to display scale in the header

Deprecated

since 4.1 Use setIndexUnit instead

Parameters

Name Type Description
unitstring | AbstractUnita scale unit or string symbol

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setScaleUnit


setScaleUnits

setScaleUnits(display, scale): LogTrackContainer

Sets a scale unit to be used in the header

Parameters

Name Type Description
displaystring | AbstractUnitdevice unit
scalestring | AbstractUnitscale unit

Returns

LogTrackContainer

Inherited from

TrackContainer.setScaleUnits


setSelectable

setSelectable(selectable): LogTrackContainer

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

LogTrackContainer

this

Inherited from

TrackContainer.setSelectable


setSilent

setSilent(bool): LogTrackContainer

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setSilent


setTag

setTag(tag): LogTrackContainer

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

Parameters

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setTag


setTrackFactory

setTrackFactory(trackFactory): LogTrackContainer

Sets track factory

Parameters

Name Type Description
trackFactoryTrackFactorytrack factory

Returns

LogTrackContainer

this


setTrackWidth

setTrackWidth(width, track): LogTrackContainer

Set track width and layout remains tracks

Parameters

Name Type Description
widthnumbertrack width
trackLogTrack | LogTrack[]current track

Returns

LogTrackContainer


setVerticalFlip

setVerticalFlip(flip): LogTrackContainer

Set vertical flip of the representation

Parameters

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setVerticalFlip


setVisible

setVisible(value): LogTrackContainer

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setVisible


setVisibleDepthLimits

setVisibleDepthLimits(fromDepth, toDepth?, deviceBounds?): LogTrackContainer

Sets visible depth limits

Parameters

Name Type Description
fromDepthnumber | Rangevisible starting depth t or the visible range to set
Optional toDepthnumbervisible ending depth
Optional deviceBoundsRectdevice bounds of the container to fit new visible depth limits

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setVisibleDepthLimits


setVisibleModelLimits

setVisibleModelLimits(visibleModelBounds, deviceBounds?): LogTrackContainer

Set visible model limits

Parameters

Name Type Description
visibleModelBoundsRectvisible model limits or bounds
Optional deviceBoundsRectdevice bounds

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setVisibleModelLimits


setZIndex

setZIndex(value): LogTrackContainer

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

LogTrackContainer

this

Inherited from

TrackContainer.setZIndex


shear

shear(shx, shy): LogTrackContainer

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

LogTrackContainer

this

Inherited from

TrackContainer.shear


suspendUpdate

suspendUpdate(): LogTrackContainer

Suspend auto update

Returns

LogTrackContainer

this

Inherited from

TrackContainer.suspendUpdate


toString

toString(): string

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

Returns

string

A string representation

Inherited from

TrackContainer.toString


transform

transform(point): Point

Transforms point from node space to device space

Parameters

Name Type Description
pointPointpoint to transform

Returns

Point

transformed point

Implementation of

ITransformable.transform


transformFromLinear

transformFromLinear(point): Point

Transforms point from linear space to node space

Parameters

Name Type Description
pointPointpoint to transform

Returns

Point

transformed point

Implementation of

ITransformable.transformFromLinear


transformToLinear

transformToLinear(point): Point

Transforms point from node space to linear space

Parameters

Name Type Description
pointPointpoint to transform

Returns

Point

transformed point

Implementation of

ITransformable.transformToLinear


translate

translate(tx, ty): LogTrackContainer

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

LogTrackContainer

this

Inherited from

TrackContainer.translate


unregisterAnimationStyle

unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootAnimatedNoderoot node for node

Returns

void

Inherited from

TrackContainer.unregisterAnimationStyle


updateLayout

updateLayout(targets?): LogTrackContainer

Updates layout(s)

Fires

Events.LayoutUpdated

Parameters

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.updateLayout


updateModelLimits

updateModelLimits(): void

Update model limits

Returns

void


updateSceneTransformation

updateSceneTransformation(): LogTrackContainer

Update scene transformation

Returns

LogTrackContainer

this

Inherited from

TrackContainer.updateSceneTransformation


updateState

updateState(regions?, changes?): LogTrackContainer

Update state.

Parameters

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

Returns

LogTrackContainer

this

Overrides

TrackContainer.updateState


updateSuspended

updateSuspended(): boolean

Return state of suspend state

Returns

boolean

state of update

Inherited from

TrackContainer.updateSuspended


updateTimeStamp

Protected updateTimeStamp(): LogTrackContainer

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

Returns

LogTrackContainer

this

Inherited from

TrackContainer.updateTimeStamp


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

TrackContainer.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

TrackContainer.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

TrackContainer.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

TrackContainer.getClassName


getTrackAtPosition

Static getTrackAtPosition(x, gap, tracks?): LogTrack | { left?: LogTrack ; right?: LogTrack }

Find nearest track at specified {number} x-coordinate

Parameters

Name Type Description
xnumberx coordinate to get the track at
gapnumbergap
Optional tracksLogTrack[]tracks

Returns

LogTrack | { left?: LogTrack ; right?: LogTrack }


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

TrackContainer.isSceneGraphNotificationEnabled