Last updated

API / geotoolkit / welllog / header / LogTrackHeader / LogTrackHeader

Class: LogTrackHeader

header.LogTrackHeader.LogTrackHeader

Define header of LogTrack

Hierarchy

Table of contents

Constructors
Methods
addBaseLayeraddChildaddCssClass
addInvalidateHandleraddOverlayadjustPosition
applyOpacityapplyResponsiveStylechangeBaseLayerOrder
changeChildOrderchangeOverlayOrdercheckCollision
clearBaseLayersclearChildrenclearOverlays
cloneconnectStylecopyConstructor
disconnectStyledisposeenableClipping
enableEventPropagationenumerateNodesexecute
filtergetActiveVisualgetAnimationStyle
getBaseLayergetBaseLayersgetBaseLayersCount
getBorderFillStylegetBorderLineStylegetBorderVisibility
getBoundsgetChildgetChildren
getChildrenCountgetClassNamegetClipStyle
getContentsAreagetContentsTransformgetCss
getCssClassgetCssClassesgetCssTransform
getDesiredHeightgetDeviceLimitsgetFirstToLast
getHeaderProvidergetHoldTitlegetId
getInfiniteModegetInvalidateMethodgetLayoutStyle
getLocalTransformgetMarginsStylegetMergeMicroposition
getModelLimitsgetNamegetOpacity
getOpacityBlendModegetOverlaygetOverlayAt
getOverlaysgetOverlaysCountgetParent
getPropertiesgetPropertygetPropertyKeys
getRenderingFiltergetResponsiveStylegetRoot
getScaleScrollStrategygetSceneTransformgetTag
getTitleFirstgetTopToBottomgetTrack
getTraverseModegetVisiblegetVisibleDeviceLimits
getVisibleModelLimitsgetWorldTransformgetZIndex
hasCssClasshasEventListenerindexOfBaseLayer
indexOfChildindexOfOverlayinitializeVisualHeaders
insertBaseLayerinsertChildinsertOverlay
invalidateinvalidateLayoutinvalidateParent
isClippingEnabledisDisposedisEventPropagationEnabled
isHorizontalFlipisNotificationEnabledisSelectable
isSilentisVerticalFlipisVisibleTrackHeader
moveTonotifynotifyRoot
offononChildAdded
onChildRemovedonParentChangedonVisibilityChanged
postRenderingpreRenderingrebuild
registerAnimationStyleremoveBaseLayerremoveChild
removeCssClassremoveInvalidateHandlerremoveOverlay
renderrenderAsyncrenderBaseLayers
renderBaseLayersAsyncrenderChildrenrenderChildrenAsync
renderContentrenderContentAsyncrenderOverlays
renderOverlaysAsyncrotatescale
setActiveVisualsetAnimationStylesetBorderFillStyle
setBorderLineStylesetBorderVisibilitysetBounds
setChildsetClipStylesetCss
setCssClasssetCssTransformsetFirstToLast
setHeaderProvidersetHoldTitlesetId
setInfiniteModesetLocalTransformsetMarginsStyle
setMergeMicropositionsetModelLimitssetName
setNotificationsetOpacitysetProperties
setPropertysetRenderingFiltersetResponsiveStyle
setScaleScrollStrategysetSelectablesetSilent
setTagsetTitleFirstsetTopToBottom
setTraverseModesetVisiblesetVisibleModelLimits
setVisibleTrackTitlesetZIndexshear
toStringtranslateunregisterAnimationStyle
updateLayoutupdateSceneTransformationupdateState
updateTimeStampenableSceneGraphNotificationfindParent
getClassNameisSceneGraphNotificationEnabled
Css Properties
Name Type Description
borderOptionsOutline of the header
border-cssclassstringThe css class name of this node
border-idstring | numberId of the node, its a unique identifier
border-namestringName of the node. It is often used for debugging purposes or to simplify queries
border-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
border-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
border-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
border-z-indexnumberDefine node z-index
borderOptionsOutline of the header
border-clipstyleClipStyleClipping style
border-clipstyle-evenoddbooleanTrue if evenodd mode is on ('nonzero' mode otherwise)
border-clipstyle-geometryGraphicsPathClipping geometry
border-clipstyle-geometry-boundsRectBounds
border-clipstyle-geometry-bounds-heightnumberHeight
border-clipstyle-geometry-bounds-readonlybooleanReadonly
border-clipstyle-geometry-bounds-widthnumberWidth
border-clipstyle-geometry-bounds-xnumberLeft
border-clipstyle-geometry-bounds-ynumberTop
border-clipstyleGraphicsPathClipping style
border-csscursorstringCSS cursor associated with node
border-cssstylestringCSS style to be applied to inserted elements
border-localtransformTransformationLocal transformation
border-localtransform-dxnumberX axis translation
border-localtransform-dynumberY axis translation
border-localtransform-xxnumberX scale
border-localtransform-xynumberXy skew
border-localtransform-yxnumberYx skew
border-localtransform-yynumberY scale
border-marginsnumber | stringIt has properties for specifying the margins for each side
border-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
border-opacityblendmodeBlendModeNode opacity mode to blend it
border-scalescrollstrategyScaleScrollStrategyScale scroll strategy
border-scalescrollstrategy-enabledbooleanEnable flag
border-transformstringAdditional CSS transformation applied to node or 'none'
border-transformTransformationAdditional CSS transformation applied to node or 'none'
borderOptionsOutline of the header
border-fillstylestringStyle applied on fill
border-fillstyleFillStyleStyle applied on fill
border-fillstyle-colorstringColor in CSS form
border-fillstyle-evenoddmodebooleanEven-odd fill mode
border-fillstyle-fillpatternPatternPattern
border-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
border-fillstyle-fillpattern-patternnamestringName of this pattern for indexing
border-fillstyle-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
border-fillstyle-foregroundstringForeground color
border-fillstyle-patternPatternPattern
border-linestylestringStyle applied on outline
border-linestyleLineStyleStyle applied on outline
border-linestyle-colorstringColor in CSS form
border-linestyle-fillstringOptional fill style to be used to fill lines generated with this style
border-linestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
border-linestyle-linecapCapStyleThe line cap style
border-linestyle-linedashoffsetnumberLine dash offset of dashed line
border-linestyle-linejoinJoinStyleThe line join style
border-linestyle-pixelsnapmodebooleanPixel Snap Mode, default(
border-linestyle-scalablebooleanTrue if width should depend on transformation
border-linestyle-unitstringOptional unit for the width
border-linestyle-widthnumber | stringThe line thickness
borderOptionsOutline of the header
border-bordersVisibleStyle applied on borders, by default is
border-borders-bottombooleanVisibility of bottom part
border-borders-leftbooleanVisibility of left part
border-borders-rightbooleanVisibility of right part
border-borders-topbooleanVisibility of top part
border-borderstyleBorderStyleStyle applied on borders
border-linestylesStylesObject with line styles
border-linestyles-bottomstringBottom border style
border-linestyles-bottomLineStyleBottom border style
border-linestyles-leftstringLeft border style
border-linestyles-leftLineStyleLeft border style
border-linestyles-rightstringRight border style
border-linestyles-rightLineStyleRight border style
border-linestyles-topstringTop border style
border-linestyles-topLineStyleTop border style
borderfillstylestringThe fill style of the border
borderfillstyleFillStyleThe fill style of the border
borderlinestylestringThe line style of the border
borderlinestyleLineStyleThe line style of the border
bordersVisibleBorders
boundsRectBounds
clippingbooleanEnable clipping, this does not consider the clipstyle, it is related to bounds-clipping
clipstyleClipStyleClipping style
clipstyleGraphicsPathClipping style
cssclassstringThe css class name of this node
csscursorstringCSS cursor associated with node
cssstylestringCSS style to be applied to inserted elements
firsttolastbooleanDefines track item headers order
headerproviderLogVisualHeaderProviderProvider of the headers
headerprovider-headertypeHeaderTypeHeader type to be used instead of name to register header for each visual
headerprovider-namestringName of the header provider
headerprovider-roundedboxradiusnumberRadius of the rounded box
holdtitleHoldTitleDefines track title hold
idstring | numberId of the node, its a unique identifier
infinitybooleanMode to render outside the model limits
isbordervisiblebooleanThe visibility of the border
localtransformTransformationLocal transformation
marginsnumber | stringIt has properties for specifying the margins for each side
mergemicropositionbooleanDefines whether to merge micropositioned headers
modellimitsRectModel limits
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
providerLogVisualHeaderProviderProvider of the headers
scalescrollstrategyScaleScrollStrategyScale scroll strategy
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
titlefirstbooleanDefines track track title header order
toptobottombooleanDefines position of the track child headers
trackLogTrackA log track to create header
track-backgroundcolorstringBackground color fill style
track-backgroundcolorFillStyleBackground color fill style
track-borderBorderOutline of the track
track-border-bordersVisibleStyle applied on borders, by default is
track-border-borderstyleBorderStyleStyle applied on borders
track-border-clipstyleClipStyleClipping style
track-border-clipstyleGraphicsPathClipping style
track-border-cssclassstringThe css class name of this node
track-border-csscursorstringCSS cursor associated with node
track-border-cssstylestringCSS style to be applied to inserted elements
track-border-fillstylestringStyle applied on fill
track-border-fillstyleFillStyleStyle applied on fill
track-border-idstring | numberId of the node, its a unique identifier
track-border-linestylestringStyle applied on outline
track-border-linestyleLineStyleStyle applied on outline
track-border-linestylesStylesObject with line styles
track-border-localtransformTransformationLocal transformation
track-border-marginsnumber | stringIt has properties for specifying the margins for each side
track-border-namestringName of the node. It is often used for debugging purposes or to simplify queries
track-border-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
track-border-opacityblendmodeBlendModeNode opacity mode to blend it
track-border-scalescrollstrategyScaleScrollStrategyScale scroll strategy
track-border-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
track-border-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
track-border-transformstringAdditional CSS transformation applied to node or 'none'
track-border-transformTransformationAdditional CSS transformation applied to node or 'none'
track-border-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
track-border-z-indexnumberDefine node z-index
track-borderstrategyBorderStrategyStrategy on how to display the border of the track
track-boundsRectBounds of the visual
track-clippingbooleanEnable clipping, this does not consider the clipstyle, it is related to bounds-clipping
track-clipstyleClipStyleClipping style
track-clipstyleGraphicsPathClipping style
track-cssclassstringThe css class name of this node
track-csscursorstringCSS cursor associated with node
track-cssstylestringCSS style to be applied to inserted elements
track-fillstylestringBackground color fill style (alias for backgroundcolor)
track-fillstyleFillStyleBackground color fill style (alias for backgroundcolor)
track-highlightBorderHighlight outline of the track
track-highlightstrategyTrackHighlightStrategyTrack highlight strategy
track-idstring | numberId of the node, its a unique identifier
track-infinitybooleanMode to render outside the model limits
track-limitsRectModel limits
track-linestylestringLine style or options
track-linestyleLineStyleLine style or options
track-localtransformTransformationLocal transformation
track-logblockLogBlockLog block
track-logblock-autoboundsbooleanEnables or disables auto bounds
track-logblock-basenamestringThe base name
track-logblock-boundsRectThe rectangle specifying position of the visual in the track. If set, autobounds will be switched off
track-logblock-clipstyleClipStyleClipping style
track-logblock-clipstyleGraphicsPathClipping style
track-logblock-cssclassstringThe css class name of this node
track-logblock-csscursorstringCSS cursor associated with node
track-logblock-cssstylestringCSS style to be applied to inserted elements
track-logblock-descriptionstringThe description
track-logblock-fillstylestringThe fill style
track-logblock-fillstyleFillStyleThe fill style
track-logblock-idstring | numberId of the node, its a unique identifier
track-logblock-linestylestringLinestyle
track-logblock-linestyleLineStyleLinestyle
track-logblock-localtransformTransformationLocal transformation
track-logblock-marginsnumber | stringIt has properties for specifying the margins for each side
track-logblock-microposleftnumberLeft micro position
track-logblock-microposrightnumberRight micro position
track-logblock-namestringName of the node. It is often used for debugging purposes or to simplify queries
track-logblock-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
track-logblock-opacityblendmodeBlendModeNode opacity mode to blend it
track-logblock-positionPositionPosition (left or right or both)
track-logblock-scalescrollstrategyScaleScrollStrategyScale scroll strategy
track-logblock-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
track-logblock-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
track-logblock-transformstringAdditional CSS transformation applied to node or 'none'
track-logblock-transformTransformationAdditional CSS transformation applied to node or 'none'
track-logblock-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
track-logblock-z-indexnumberDefine node z-index
track-marginsnumber | stringIt has properties for specifying the margins for each side
track-namestringName of the node. It is often used for debugging purposes or to simplify queries
track-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
track-opacityblendmodeBlendModeNode opacity mode to blend it
track-scalescrollstrategyScaleScrollStrategyScale scroll strategy
track-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
track-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
track-transformstringAdditional CSS transformation applied to node or 'none'
track-transformTransformationAdditional CSS transformation applied to node or 'none'
track-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
track-z-indexnumberDefine node z-index
transformstringAdditional CSS transformation applied to node or 'none'
transformTransformationAdditional CSS transformation applied to node or 'none'
traversemodeTraverseModeChildren traverse mode, by default it add headers only for collection of children
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
visibletracktitlebooleanDefines track title header visibility
z-indexnumberDefine node z-index

Contents

Constructors

new LogTrackHeader(track, provider)

new LogTrackHeader(track?, provider?)

Create track header

Parameters

Name Type Description
Optional trackLogTrack | Optionsa log track to create header or properties object
Optional providerLogVisualHeaderProviderprovider of the headers

Overrides

LogBaseTrackHeader.constructor

Methods

addBaseLayer

addBaseLayer(baseLayer): LogTrackHeader

Add baseLayer to container

Parameters

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

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.addBaseLayer


addChild

addChild(node): LogTrackHeader

Add a child node

Parameters

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

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.addChild


addCssClass

addCssClass(cssclass): LogTrackHeader

Adds new css class to node

Parameters

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

Returns

LogTrackHeader

Inherited from

LogBaseTrackHeader.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): LogTrackHeader

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.addInvalidateHandler


addOverlay

addOverlay(overlay): LogTrackHeader

Add overlay to container

Parameters

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

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.addOverlay


adjustPosition

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

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.adjustPosition


applyOpacity

Protected applyOpacity(context): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.applyOpacity


applyResponsiveStyle

Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

LogBaseTrackHeader.applyResponsiveStyle


changeBaseLayerOrder

changeBaseLayerOrder(overlay, order, anchor?): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.changeBaseLayerOrder


changeChildOrder

changeChildOrder(node, order, anchor?): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.changeChildOrder


changeOverlayOrder

changeOverlayOrder(overlay, order, anchor?): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.changeOverlayOrder


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

LogBaseTrackHeader.checkCollision


clearBaseLayers

clearBaseLayers(disposeBaseLayers?): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.clearBaseLayers


clearChildren

clearChildren(disposeChildren?): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.clearChildren


clearOverlays

clearOverlays(disposeOverlays?): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.clearOverlays


clone

clone(): LogTrackHeader

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

Returns

LogTrackHeader

clone

Overrides

LogBaseTrackHeader.clone


connectStyle

connectStyle(style, type, callback): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.connectStyle


copyConstructor

Protected copyConstructor(src, deepCopy?): LogTrackHeader

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

Returns

LogTrackHeader

this

Overrides

LogBaseTrackHeader.copyConstructor


disconnectStyle

disconnectStyle(style, type, callback): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.disconnectStyle


dispose

dispose(): void

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

Returns

void

Inherited from

LogBaseTrackHeader.dispose


enableClipping

enableClipping(doClip): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.enableClipping


enableEventPropagation

enableEventPropagation(enable): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.enableEventPropagation


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

LogBaseTrackHeader.enumerateNodes


execute

execute(delegate): LogTrackHeader

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

Returns

LogTrackHeader

The result if any or this

Inherited from

LogBaseTrackHeader.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: LogTrackHeader) => T

Returns

T

Inherited from

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

LogBaseTrackHeader.filter


getActiveVisual

getActiveVisual(): LogAbstractVisual

Returns active visual

Returns

LogAbstractVisual


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

LogBaseTrackHeader.getAnimationStyle


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

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

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

LogBaseTrackHeader.getBaseLayers


getBaseLayersCount

getBaseLayersCount(): number

Returns amount of baseLayers

Returns

number

Inherited from

LogBaseTrackHeader.getBaseLayersCount


getBorderFillStyle

getBorderFillStyle(): FillStyle

Gets the border fill style

Returns

FillStyle

style The fill style of the border.

Inherited from

LogBaseTrackHeader.getBorderFillStyle


getBorderLineStyle

getBorderLineStyle(): LineStyle

Gets the border line style

Returns

LineStyle

style The line style of the border.

Inherited from

LogBaseTrackHeader.getBorderLineStyle


getBorderVisibility

getBorderVisibility(): boolean

Gets the header border's visibility.

Returns

boolean

visibility The visibility of the header border.

Inherited from

LogBaseTrackHeader.getBorderVisibility


getBounds

getBounds(): Rect

Returns bounds

Returns

Rect

Inherited from

LogBaseTrackHeader.getBounds


getChild

getChild(i): Node

Return node by index

Parameters

Name Type Description
inumberindex of the node

Returns

Node

Inherited from

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

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

LogBaseTrackHeader.getChildren


getChildrenCount

getChildrenCount(): number

Return number of child nodes

Returns

number

Inherited from

LogBaseTrackHeader.getChildrenCount


getClassName

getClassName(): string

Returns

string

Inherited from

LogBaseTrackHeader.getClassName


getClipStyle

getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

LogBaseTrackHeader.getClipStyle


getContentsArea

getContentsArea(transformation?): Rect

Return area of content. By default it is equal to bounds.

Parameters

Name Type Description
Optional transformationTransformationscene transformation

Returns

Rect

Inherited from

LogBaseTrackHeader.getContentsArea


getContentsTransform

getContentsTransform(): Transformation

Gets transformation

Returns

Transformation

transform

Inherited from

LogBaseTrackHeader.getContentsTransform


getCss

getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

LogBaseTrackHeader.getCss


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

LogBaseTrackHeader.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

LogBaseTrackHeader.getCssClasses


getCssTransform

getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

LogBaseTrackHeader.getCssTransform


getDesiredHeight

getDesiredHeight(): number

Return desired height of the header

Returns

number

Overrides

LogBaseTrackHeader.getDesiredHeight


getDeviceLimits

getDeviceLimits(): Rect

Return device limits

Returns

Rect

Inherited from

LogBaseTrackHeader.getDeviceLimits


getFirstToLast

getFirstToLast(): boolean

Return order of the track child headers

Returns

boolean


getHeaderProvider

getHeaderProvider(): LogVisualHeaderProvider

Returns the current header provider

Returns

LogVisualHeaderProvider

Inherited from

LogBaseTrackHeader.getHeaderProvider


getHoldTitle

getHoldTitle(): HoldTitle

Return track title hold

Returns

HoldTitle


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

LogBaseTrackHeader.getId


getInfiniteMode

getInfiniteMode(): boolean

Return infinity mode flag

Returns

boolean

flag

Inherited from

LogBaseTrackHeader.getInfiniteMode


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

Gets invalidate method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

LogBaseTrackHeader.getInvalidateMethod


getLayoutStyle

getLayoutStyle(): LayoutStyle<string | number>

return desired layout style

Returns

LayoutStyle<string | number>

Inherited from

LogBaseTrackHeader.getLayoutStyle


getLocalTransform

getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

LogBaseTrackHeader.getLocalTransform


getMarginsStyle

getMarginsStyle(): SpaceStyle<string | number>

Return margins style

Returns

SpaceStyle<string | number>

Inherited from

LogBaseTrackHeader.getMarginsStyle


getMergeMicroposition

getMergeMicroposition(): boolean

Return microposition merging

Returns

boolean


getModelLimits

getModelLimits(): Rect

Get models limits

Returns

Rect

Inherited from

LogBaseTrackHeader.getModelLimits


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

LogBaseTrackHeader.getName


getOpacity

getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

LogBaseTrackHeader.getOpacity


getOpacityBlendMode

getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

LogBaseTrackHeader.getOpacityBlendMode


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

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

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

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

LogBaseTrackHeader.getOverlays


getOverlaysCount

getOverlaysCount(): number

Returns amount of overlays

Returns

number

Inherited from

LogBaseTrackHeader.getOverlaysCount


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

LogBaseTrackHeader.getParent


getProperties

getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

An object containing the properties to set

Overrides

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

LogBaseTrackHeader.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

LogBaseTrackHeader.getPropertyKeys


getRenderingFilter

getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

LogBaseTrackHeader.getRenderingFilter


getResponsiveStyle

getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

LogBaseTrackHeader.getResponsiveStyle


getRoot

getRoot(): Node

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

Returns

Node

the root node

Inherited from

LogBaseTrackHeader.getRoot


getScaleScrollStrategy

getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

LogBaseTrackHeader.getScaleScrollStrategy


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

LogBaseTrackHeader.getSceneTransform


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

LogBaseTrackHeader.getTag


getTitleFirst

getTitleFirst(): boolean

Return order of the track title header.

Returns

boolean


getTopToBottom

getTopToBottom(): boolean

Return position of the track child headers

Returns

boolean


getTrack

getTrack(): LogTrack

Return track to create a header

Returns

LogTrack

Inherited from

LogBaseTrackHeader.getTrack


getTraverseMode

getTraverseMode(): TraverseMode

Return children traverse mode

Returns

TraverseMode


getVisible

getVisible(): boolean

Returns track visibility if track is not null, true instead

Returns

boolean

Inherited from

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

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

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

LogBaseTrackHeader.getWorldTransform


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

LogBaseTrackHeader.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

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

LogBaseTrackHeader.hasEventListener


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

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

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

LogBaseTrackHeader.indexOfOverlay


initializeVisualHeaders

Protected initializeVisualHeaders(): LogTrackHeader

Returns

LogTrackHeader

Inherited from

LogBaseTrackHeader.initializeVisualHeaders


insertBaseLayer

insertBaseLayer(index, baseLayer): LogTrackHeader

Insert child baseLayer at specified index

Parameters

Name Type Description
indexnumberspecified index
baseLayerNodea baseLayer to add

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.insertBaseLayer


insertChild

insertChild(index, node): LogTrackHeader

Insert child node at specified index

Parameters

Name Type Description
indexnumberspecified index
nodeNodea child node to add

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.insertChild


insertOverlay

insertOverlay(index, overlay): LogTrackHeader

Insert child overlay at specified index

Parameters

Name Type Description
indexnumberspecified index
overlayNodea overlay to add

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.insertOverlay


invalidate

invalidate(bounds?, force?): LogTrackHeader

Invalidate area of the shape. This method invalidates parent by default. invalidated from parent to root node.

Parameters

Name Type Description
Optional boundsRectbounds of the invalid rectangle in the inner node coordinates
Optional forcebooleantrue if parent should be invalidated immediately if null is provided then cache (if any will be completely refreshed) otherwise only specified rect or node.bounds will be refreshed

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.invalidate


invalidateLayout

invalidateLayout(propagate?): LogTrackHeader

Notify that layout is invalidated. Send event Events.LayoutInvalidated

Parameters

Name Type Description
Optional propagatebooleanpropagate invalidate layout to parent

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.invalidateLayout


invalidateParent

Protected invalidateParent(bounds?, force?): LogTrackHeader

Invalidate parent and notify all listeners. NOTE: Don't keep arguments of the event, because instance can be changed

Fires

Events.Invalidate

Parameters

Name Type Description
Optional boundsRectbounds of the invalid rectangle in the inner node coordinates
Optional forcebooleanforce rendering

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.invalidateParent


isClippingEnabled

isClippingEnabled(): boolean

Returns if clipping is enabled or not for this node.

Returns

boolean

Inherited from

LogBaseTrackHeader.isClippingEnabled


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

LogBaseTrackHeader.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

LogBaseTrackHeader.isEventPropagationEnabled


isHorizontalFlip

isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

Inherited from

LogBaseTrackHeader.isHorizontalFlip


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

LogBaseTrackHeader.isNotificationEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

LogBaseTrackHeader.isSelectable


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

LogBaseTrackHeader.isSilent


isVerticalFlip

isVerticalFlip(): boolean

Return true if the representation is flipped vertically

Returns

boolean

Inherited from

LogBaseTrackHeader.isVerticalFlip


isVisibleTrackHeader

isVisibleTrackHeader(): boolean

Return true if track title is visible

Returns

boolean


moveTo

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

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.moveTo


notify

notify<E>(event, source, args?): LogTrackHeader

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

Name Type Description
eventEtype of event
sourceLogBaseTrackHeadersource who called the event
Optional argsEventMap[E]event arguments

Returns

LogTrackHeader

this

Inherited from

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

LogBaseTrackHeader.notifyRoot


off

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

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

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.off


on

on<E>(type, callback): LogTrackHeader

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

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.on


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

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

LogBaseTrackHeader.onChildRemoved


onParentChanged

Protected onParentChanged(node): LogTrackHeader

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.onParentChanged


onVisibilityChanged

Protected onVisibilityChanged(): void

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

Returns

void

Inherited from

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

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

LogBaseTrackHeader.preRendering


rebuild

rebuild(): LogTrackHeader

Rebuild Track header

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.rebuild


registerAnimationStyle

registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

LogBaseTrackHeader.registerAnimationStyle


removeBaseLayer

removeBaseLayer(baseLayer): LogTrackHeader

Remove child baseLayer

Parameters

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

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.removeBaseLayer


removeChild

removeChild(node, disposeChildren?): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.removeChild


removeCssClass

removeCssClass(cssclass): LogTrackHeader

Removes css class from node

Parameters

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

Returns

LogTrackHeader

Inherited from

LogBaseTrackHeader.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): LogTrackHeader

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.removeInvalidateHandler


removeOverlay

removeOverlay(overlay): LogTrackHeader

Remove child overlay

Parameters

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

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.removeOverlay


render

render(context): void

Render composite node and children

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

LogBaseTrackHeader.render


renderAsync

renderAsync(context, callback): void

Render node in asynchronous mode

Parameters

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

Returns

void

Inherited from

LogBaseTrackHeader.renderAsync


renderBaseLayers

Protected renderBaseLayers(context): LogTrackHeader

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

LogTrackHeader

this

Inherited from

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

LogBaseTrackHeader.renderBaseLayersAsync


renderChildren

Protected renderChildren(context): void

Render children

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

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

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

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

LogBaseTrackHeader.renderContentAsync


renderOverlays

Protected renderOverlays(context): LogTrackHeader

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

LogTrackHeader

this

Inherited from

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

LogBaseTrackHeader.renderOverlaysAsync


rotate

rotate(theta, x, y): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.rotate


scale

scale(xx, yy): LogTrackHeader

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.scale


setActiveVisual

setActiveVisual(activeVisual): LogTrackHeader

Set active visual

Parameters

Name Type Description
activeVisualLogAbstractVisualnew instance of the active visual

Returns

LogTrackHeader

this


setAnimationStyle

setAnimationStyle(animationStyle): LogTrackHeader

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

LogTrackHeader

Inherited from

LogBaseTrackHeader.setAnimationStyle


setBorderFillStyle

setBorderFillStyle(fillStyle, merge?): LogTrackHeader

Sets the border 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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setBorderFillStyle


setBorderLineStyle

setBorderLineStyle(lineStyle, merge?): LogTrackHeader

Sets the border line style

Parameters

Name Type Description
lineStyleTypeThe style in which the line is displayed object can be in format of constructor of LineStyle
Optional mergebooleantrue if you want to merge lineStyle with existing attribute, false by default

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setBorderLineStyle


setBorderVisibility

setBorderVisibility(visible): LogTrackHeader

Sets the border visibility

Parameters

Name Type Description
visiblebooleanThe visibility of the border

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setBorderVisibility


setBounds

setBounds(bounds): LogTrackHeader

Sets bounds of the node in the parent coordinates

Parameters

Name Type Description
boundsRectbounds of the node

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setBounds


setChild

setChild(index, node): LogTrackHeader

Replace child node by index

Parameters

Name Type Description
indexnumberindex of the node
nodeNodenode

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setChild


setClipStyle

setClipStyle(style): LogTrackHeader

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setClipStyle


setCss

setCss(style, merge?): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setCss


setCssClass

setCssClass(name): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setCssClass


setCssTransform

setCssTransform(transform): LogTrackHeader

Set CSS transformation

Parameters

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

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setCssTransform


setFirstToLast

setFirstToLast(firstToLast): LogTrackHeader

Sets order of the track child headers.

Parameters

Name Type Description
firstToLastbooleantrack child order

Returns

LogTrackHeader

this


setHeaderProvider

setHeaderProvider(provider): LogTrackHeader

Sets header provider

Parameters

Name Type Description
providerLogVisualHeaderProviderheader provider

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setHeaderProvider


setHoldTitle

setHoldTitle(holdTitle): LogTrackHeader

Sets track title hold

Parameters

Name Type Description
holdTitleHoldTitleif true then title always display atop all visuals in header even when panning/scrolling header

Returns

LogTrackHeader


setId

setId(id): LogTrackHeader

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setId


setInfiniteMode

setInfiniteMode(infinityMode): LogTrackHeader

Set infinity mode flag to draw composite without collision check

Parameters

Name Type Description
infinityModebooleaninfinity mode flag

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setInfiniteMode


setLocalTransform

setLocalTransform(localTransform, force?): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setMarginsStyle


setMergeMicroposition

setMergeMicroposition(mergeMicroposition): LogTrackHeader

Sets microposition merging. Header merging is enabled by default. The header will try to fit as many micropositioned headers on a line as it can without overlap. If CURVE-1's micropositioning would overlap with CURVE-2, its header is placed on a new row.

Parameters

Name Type Description
mergeMicropositionbooleanmerge micropositioned headers

Returns

LogTrackHeader


setModelLimits

setModelLimits(modelLimits): LogTrackHeader

Sets model limits

Parameters

Name Type Description
modelLimitsRectmodel limits

Returns

LogTrackHeader

Inherited from

LogBaseTrackHeader.setModelLimits


setName

setName(name): LogTrackHeader

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setName


setNotification

setNotification(notify, force?): LogTrackHeader

set notification state

Parameters

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

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setNotification


setOpacity

setOpacity(opacity, blendMode?): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setOpacity


setProperties

setProperties(properties?): LogTrackHeader

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

LogTrackHeader

this

Overrides

LogBaseTrackHeader.setProperties


setProperty

setProperty(name, value): LogTrackHeader

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setProperty


setRenderingFilter

setRenderingFilter(filter): LogTrackHeader

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): LogTrackHeader

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setResponsiveStyle


setScaleScrollStrategy

setScaleScrollStrategy(strategy?): LogTrackHeader

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setScaleScrollStrategy


setSelectable

setSelectable(selectable): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setSelectable


setSilent

setSilent(bool): LogTrackHeader

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setSilent


setTag

setTag(tag): LogTrackHeader

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

Parameters

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

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setTag


setTitleFirst

setTitleFirst(titleFirst): LogTrackHeader

Sets order of the track title header.

Parameters

Name Type Description
titleFirstbooleantrack child order

Returns

LogTrackHeader


setTopToBottom

setTopToBottom(topToBottom): LogTrackHeader

Sets position of the track child headers.

Parameters

Name Type Description
topToBottombooleantrack child order

Returns

LogTrackHeader


setTraverseMode

setTraverseMode(traverseMode): LogTrackHeader

Set children traverse mode

Parameters

Name Type Description
traverseModeTraverseModechildren traverse mode

Returns

LogTrackHeader

this


setVisible

setVisible(value): LogTrackHeader

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setVisible


setVisibleModelLimits

setVisibleModelLimits(visibleModelBounds, deviceBounds?): LogTrackHeader

Set visible model limits

Parameters

Name Type Description
visibleModelBoundsRectvisible model limits or bounds
Optional deviceBoundsRectdevice bounds

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setVisibleModelLimits


setVisibleTrackTitle

setVisibleTrackTitle(visible): LogTrackHeader

Sets visible track title. This method removes all headers and build it again.

Parameters

Name Type Description
visiblebooleandefines track visibility

Returns

LogTrackHeader


setZIndex

setZIndex(value): LogTrackHeader

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.setZIndex


shear

shear(shx, shy): LogTrackHeader

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.shear


toString

toString(): string

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

Returns

string

A string representation

Inherited from

LogBaseTrackHeader.toString


translate

translate(tx, ty): LogTrackHeader

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.translate


unregisterAnimationStyle

unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootAnimatedNoderoot node for node

Returns

void

Inherited from

LogBaseTrackHeader.unregisterAnimationStyle


updateLayout

updateLayout(): LogTrackHeader

Update layout

Returns

LogTrackHeader

Overrides

LogBaseTrackHeader.updateLayout


updateSceneTransformation

updateSceneTransformation(): LogTrackHeader

Update scene transformation

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.updateSceneTransformation


updateState

updateState(regions?, changes?): LogTrackHeader

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

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.updateState


updateTimeStamp

Protected updateTimeStamp(): LogTrackHeader

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

Returns

LogTrackHeader

this

Inherited from

LogBaseTrackHeader.updateTimeStamp


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

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

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

LogBaseTrackHeader.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

LogBaseTrackHeader.getClassName


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

LogBaseTrackHeader.isSceneGraphNotificationEnabled