Last updated

API / geotoolkit / welllog / LogReferenceLine / LogReferenceLine

Class: LogReferenceLine

welllog.LogReferenceLine.LogReferenceLine

Create the representation of a reference line.

Hierarchy

Table of contents

Constructors
Methods
addCssClassaddInvalidateHandlerapplyOpacity
applyResponsiveStylecheckCollisionclone
connectStylecopyConstructordisconnectStyle
disposeenableEventPropagationexecute
filtergetAnimationStylegetBaseName
getBoundsgetClassNamegetClipStyle
getContentsTransformgetCssgetCssClass
getCssClassesgetCssTransformgetDataLimits
getDescriptiongetHeadergetHeaders
getIdgetInvalidateMethodgetLevel
getLineStylegetLocalTransformgetMarginsStyle
getMicroPositionLeftgetMicroPositionRightgetMicroPositionTransformation
getModelLimitsgetNamegetOpacity
getOpacityBlendModegetParentgetProperties
getPropertygetPropertyKeysgetReferenceCurve
getReferenceTypegetRenderingFiltergetResponsiveStyle
getRootgetScaleScrollStrategygetScaledData
getSceneTransformgetTaggetTrack
getValuegetVisiblegetWorldTransform
getZIndexhasCssClasshasEventListener
invalidateinvalidateParentisAutoBounds
isDisposedisEventPropagationEnabledisHorizontalFlip
isNotificationEnabledisSelectableisSilent
notifyoffon
onHeaderSetonMicroPositionChangedonParentChanged
onVisibilityChangedpostRenderingpreRendering
registerAnimationStyleremoveCssClassremoveInvalidateHandler
renderrenderAsyncrenderContent
rotatescalesetAnimationStyle
setAutoBoundssetBaseNamesetBounds
setClipStylesetCsssetCssClass
setCssTransformsetDescriptionsetHeader
setIdsetLevelsetLineStyle
setLocalTransformsetMarginsStylesetMicroPosition
setNamesetNotificationsetOpacity
setPropertiessetPropertysetReferenceCurve
setReferenceTypesetRenderingFiltersetResponsiveStyle
setScaleScrollStrategysetSelectablesetSilent
setTagsetValuesetVisible
setZIndexsheartoString
translateunregisterAnimationStyleupdateSceneTransformation
updateStateupdateTimeStampenableSceneGraphNotification
findParentgetClassNameisSceneGraphNotificationEnabled
Css Properties
Name Type Description
autoboundsbooleanEnables or disables auto bounds
basenamestringThe base name
boundsRectThe rectangle specifying position of the visual in the track. If set, autobounds will be switched off
bounds-heightnumberHeight
bounds-readonlybooleanReadonly
bounds-widthnumberWidth
bounds-xnumberLeft
bounds-ynumberTop
clipstyleClipStyleClipping style
clipstyle-evenoddbooleanTrue if evenodd mode is on ('nonzero' mode otherwise)
clipstyle-geometryGraphicsPathClipping geometry
clipstyle-geometry-boundsRectBounds
clipstyleGraphicsPathClipping style
cssclassstringThe css class name of this node
csscursorstringCSS cursor associated with node
cssstylestringCSS style to be applied to inserted elements
curveLogCurveReference curve
curve-autoboundsbooleanEnables or disables auto bounds
curve-autoupdatebooleanAutomatic update from datasource. If true, curve listens to data changes from source
curve-barlinestylestringValue-bar line style
curve-barlinestyleLineStyleValue-bar line style
curve-barlinestyle-colorstringColor in CSS form
curve-barlinestyle-fillstringOptional fill style to be used to fill lines generated with this style
curve-barlinestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
curve-barlinestyle-fill-colorstringColor in CSS form
curve-barlinestyle-fill-evenoddmodebooleanEven-odd fill mode
curve-barlinestyle-fill-fillpatternPatternPattern
curve-barlinestyle-fill-fillpattern-containernamestringAn optional container name, which creates an image pattern. This parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself
curve-barlinestyle-fill-fillpattern-patternnamestringName of this pattern for indexing
curve-barlinestyle-fill-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
curve-barlinestyle-fill-foregroundstringForeground color
curve-barlinestyle-fill-patternPatternPattern
curve-barlinestyle-linecapCapStyleThe line cap style
curve-barlinestyle-linedashoffsetnumberLine dash offset of dashed line
curve-barlinestyle-linejoinJoinStyleThe line join style
curve-barlinestyle-pixelsnapmodebooleanPixel Snap Mode, default(
curve-barlinestyle-scalablebooleanTrue if width should depend on transformation
curve-barlinestyle-unitstringOptional unit for the width
curve-barlinestyle-widthnumber | stringThe line thickness
curve-basenamestringThe base name
curve-boundsRectThe rectangle specifying position of the visual in the track. If set, autobounds will be switched off
curve-centeronzeroonnegativeminbooleanFlag set to center the limits
curve-cliplimitsmaxnumberMax clipping limits
curve-cliplimitsminnumberMin clipping limits
curve-clippingbooleanFlag to enable clipping
curve-clipstyleClipStyleClipping style
curve-clipstyleGraphicsPathClipping style
curve-cssclassstringThe css class name of this node
curve-csscursorstringCSS cursor associated with node
curve-cssstylestringCSS style to be applied to inserted elements
curve-descriptionstringThe description
curve-displayunitstringDisplay unit
curve-gradientlinestyleLogGradientStyleGradient line style
curve-gradientlinestyle-colorstringColor in CSS form
curve-gradientlinestyle-colorproviderstringColor provider
curve-gradientlinestyle-colorproviderColorProviderColor provider
curve-gradientlinestyle-colorprovider-maxnumber
curve-gradientlinestyle-colorprovider-minnumber
curve-gradientlinestyle-colorprovider-scaleKnownScales
curve-gradientlinestyle-colorrangeRangeColor range (min and max value)
curve-gradientlinestyle-colorrange-highnumberUpper range boundary
curve-gradientlinestyle-colorrange-lownumberLower range boundary
curve-gradientlinestyle-colorrange-maxnumber
curve-gradientlinestyle-colorrange-minnumber
curve-gradientlinestyle-datasourcestringLog data id
curve-gradientlinestyle-evenoddmodebooleanEven-odd fill mode
curve-gradientlinestyle-fillpatternPatternPattern
curve-gradientlinestyle-foregroundstringForeground color
curve-gradientlinestyle-normalizebooleanNormalize data value to color space, default true
curve-gradientlinestyle-patternPatternPattern
curve-gradientlinestyle-renderbackgroundbooleanExtra style parameter for background fill
curve-gradientlinestyle-renderforegroundbooleanExtra style parameter for foreground fill. Normally to render patterns
curve-gradientlinestyle-transparencynumberValue for alpha chanel
curve-hideoverlappedvaluesbooleanHide overlapped value
curve-horizontalflipbooleanHorizontal flip
curve-idstring | numberId of the node, its a unique identifier
curve-interpolationedgeInterpolationEdgeEdge values interpolation type in case of properties.limitstype==LimitsType.Manual
curve-interpolationtypeInterpolationTypeInterpolation type
curve-limitsmaxnumberMax limits value in case of data.limitstype==LimitsType.Manual
curve-limitsminnumberMin limits value in case of data.limitstype==LimitsType.Manual
curve-limitstypeLimitsTypeLimits type
curve-linestylestringLinestyle
curve-linestyleLineStyleLinestyle
curve-localtransformTransformationLocal transformation
curve-localtransform-dxnumberX axis translation
curve-localtransform-dynumberY axis translation
curve-localtransform-xxnumberX scale
curve-localtransform-xynumberXy skew
curve-localtransform-yxnumberYx skew
curve-localtransform-yynumberY scale
curve-marginsnumber | stringIt has properties for specifying the margins for each side
curve-maxwrapsnumberMaximum count of wraps (by default 5)
curve-microposleftnumberLeft micro position
curve-microposrightnumberRight micro position
curve-namestringName of the node. It is often used for debugging purposes or to simplify queries
curve-nullvaluesymbolSymbolShapeNull value symbol
curve-nullvaluesymbol-alignmentAnchorTypeAlignment according to the anchor point
curve-nullvaluesymbol-alignmentAnchorTypeAnchor type of symbol
curve-nullvaluesymbol-axnumberAnchor x position
curve-nullvaluesymbol-aynumberAnchor y position
curve-nullvaluesymbol-cachebooleanSet it to true if you want to cache complex geometry to raster
curve-nullvaluesymbol-clipstyleClipStyleClipping style
curve-nullvaluesymbol-clipstyleGraphicsPathClipping style
curve-nullvaluesymbol-cssclassstringThe css class name of this node
curve-nullvaluesymbol-csscursorstringCSS cursor associated with node
curve-nullvaluesymbol-cssstylestringCSS style to be applied to inserted elements
curve-nullvaluesymbol-fillstylestringStyle applied on fill
curve-nullvaluesymbol-fillstyleFillStyleStyle applied on fill
curve-nullvaluesymbol-heightnumberShape height
curve-nullvaluesymbol-idstring | numberId of the node, its a unique identifier
curve-nullvaluesymbol-ispointingupbooleanDefines whether the shape is always pointing up
curve-nullvaluesymbol-layoutstyleLayoutStyleLayout style to specify how to lay out shape
curve-nullvaluesymbol-layoutstyle-constraintSizeConstraintLayout constrains
curve-nullvaluesymbol-layoutstyle-flexgrownumberNumber specifying how much the item will grow relative to the rest of the items inside the same container
curve-nullvaluesymbol-layoutstyle-flexshrinknumberNumber specifying how much the item will shrink relative to the rest of the items inside the same container
curve-nullvaluesymbol-layoutstyle-floatstringFloat position
curve-nullvaluesymbol-layoutstyle-positionstringLayout position
curve-nullvaluesymbol-layoutstyle-sizenumber | stringLayout size
curve-nullvaluesymbol-linestylestringStyle applied on outline
curve-nullvaluesymbol-linestyleLineStyleStyle applied on outline
curve-nullvaluesymbol-localtransformTransformationLocal transformation
curve-nullvaluesymbol-marginsnumber | stringIt has properties for specifying the margins for each side
curve-nullvaluesymbol-maxdimensionDimensionMaximum size for rendering
curve-nullvaluesymbol-maxdimension-heightnumberHeight of dimension
curve-nullvaluesymbol-maxdimension-widthnumberWidth of dimension or properties
curve-nullvaluesymbol-mindimensionDimensionMinimum size for rendering
curve-nullvaluesymbol-namestringName of the node. It is often used for debugging purposes or to simplify queries
curve-nullvaluesymbol-opacitynumberNode opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context
curve-nullvaluesymbol-opacityblendmodeBlendModeNode opacity mode to blend it
curve-nullvaluesymbol-painterstringA function with has parameters: symbol, box, context
curve-nullvaluesymbol-painterpropertiesanySymbol's painter's properties
curve-nullvaluesymbol-preserveaspectratiobooleanPreserve aspect ratio of the anchored shape
curve-nullvaluesymbol-preservereadingorientationbooleanPreserve reading orientation for local transform
curve-nullvaluesymbol-preserverightanglebooleanPreserve right angle for local transformation
curve-nullvaluesymbol-rotationanglenumberRotation angle at anchor
curve-nullvaluesymbol-scalescrollstrategyScaleScrollStrategyScale scroll strategy
curve-nullvaluesymbol-scalescrollstrategy-enabledbooleanEnable flag
curve-nullvaluesymbol-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
curve-nullvaluesymbol-sizeisindevicespacebooleanIs coordinate in device space
curve-nullvaluesymbol-taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
curve-nullvaluesymbol-transformstringAdditional CSS transformation applied to node or 'none'
curve-nullvaluesymbol-transformTransformationAdditional CSS transformation applied to node or 'none'
curve-nullvaluesymbol-useminmaxdimensionsbooleanUse the min max dimensions to limit visual size
curve-nullvaluesymbol-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
curve-nullvaluesymbol-widthnumberShape width
curve-nullvaluesymbol-z-indexnumberDefine node z-index
curve-nullvaluesymbolvisiblebooleanFlag to change visibility of null value symbol
curve-opacitynumberNode opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context
curve-opacityblendmodeBlendModeNode opacity mode to blend it
curve-optimizationbooleanOptimization flags
curve-outofrangevaluesbooleanOutofrangevalues flag
curve-scalescrollstrategyScaleScrollStrategyScale scroll strategy
curve-scaletypeScaleTypeValues scale type
curve-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
curve-symbolSymbolShapeSymbol to be used
curve-symboldecimationdistancenumberSymbol decimation distance
curve-symboldecimationstepnumberSymbol decimation step or level
curve-symbolgapnumberSymbol gap
curve-symbolgapDimensionSymbol gap
curve-taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
curve-textautoalignmentbooleanAutomatic text alignment for text values, which intersects border of the track
curve-textautoalignmentoffsetnumberText offset from anchor for automatic text alignment
curve-textautoalignmentoffsetPointText offset from anchor for automatic text alignment
curve-textautoalignmentoffset-xnumberX coordinate
curve-textautoalignmentoffset-ynumberY coordinate
curve-textdecimationstepnumberText decimation step
curve-textreferenceTextReferenceType of the text to be put on the track
curve-textstylestringText style
curve-textstyleTextStyleText style
curve-textstyle-alignmentAlignmentStyleAlignment
curve-textstyle-autosizebooleanAuto font size on high definition display
curve-textstyle-backgroundstringBackground style
curve-textstyle-backgroundFillStyleBackground style
curve-textstyle-baselineBaseLineStyleBase line
curve-textstyle-colorstringColor in CSS form
curve-textstyle-fillFillStyleText fill style
curve-textstyle-fontstringFont see
curve-textstyle-fonturlstringThe place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword
curve-textstyle-lineheightstring | numberLine height
curve-textstyle-multilinebooleanAllow multi-line text
curve-textstyle-outlinestringOutline style
curve-textstyle-outlineLineStyleOutline style
curve-textstyle-overflowwrapOverflowWrapStyleOverflow wrap
curve-textstyle-strikethroughstringStrikethrough style
curve-textstyle-strikethroughLineStyleStrikethrough style
curve-textstyle-textoverflowTextOverflowStyleText overflow
curve-textstyle-underlinestringUnderline style
curve-textstyle-underlineLineStyleUnderline style
curve-textstyle-underlineoffsetstring | numberUnderline offset distance
curve-textstyle-whitespaceWhiteSpaceStyleWhite space
curve-textstyle-wordbreakWordBreakStyleWord break
curve-transformstringAdditional CSS transformation applied to node or 'none'
curve-transformTransformationAdditional CSS transformation applied to node or 'none'
curve-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
curve-wrappingbooleanFlag to enable wrapping based on if you want to see the clipped part of the track or not
curve-z-indexnumberDefine node z-index
descriptionstringThe description
idstring | numberId of the node, its a unique identifier
levelnumberCurrent level of wrap interpolation
linestylestringLinestyle
linestyleLineStyleLinestyle
localtransformTransformationLocal transformation
marginsnumber | stringIt has properties for specifying the margins for each side
microposleftnumberLeft micro position
microposrightnumberRight micro position
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
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
transformstringAdditional CSS transformation applied to node or 'none'
transformTransformationAdditional CSS transformation applied to node or 'none'
typeReferenceTypeReference model type
valuenumberCurrent value in track coordinates. by default from 0 to 1
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
z-indexnumberDefine node z-index

Contents

Constructors

new LogReferenceLine(options)

new LogReferenceLine(options?)

Constructor

Parameters

Name Type Description
Optional optionsnumber | Optionsvalue in track coordinates. by default from 0 to 1 or properties object

Overrides

LogPointSet.constructor

Methods

addCssClass

addCssClass(cssclass): LogReferenceLine

Adds new css class to node

Parameters

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

Returns

LogReferenceLine

this

Inherited from

LogPointSet.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): LogReferenceLine

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LogReferenceLine

this

Inherited from

LogPointSet.addInvalidateHandler


applyOpacity

Protected applyOpacity(context): LogReferenceLine

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

LogReferenceLine

this

Inherited from

LogPointSet.applyOpacity


applyResponsiveStyle

Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

LogPointSet.applyResponsiveStyle


checkCollision

checkCollision(context): boolean

Check culling. Returns true if object is inside of renderable area

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

Inherited from

LogPointSet.checkCollision


clone

clone(): LogReferenceLine

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

Returns

LogReferenceLine

clone

Overrides

LogPointSet.clone


connectStyle

connectStyle(style, type, callback): LogReferenceLine

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

LogReferenceLine

this

Inherited from

LogPointSet.connectStyle


copyConstructor

Protected copyConstructor(src, deepCopy?): LogReferenceLine

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

Returns

LogReferenceLine

this

Inherited from

LogPointSet.copyConstructor


disconnectStyle

disconnectStyle(style, type, callback): LogReferenceLine

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

LogReferenceLine

this

Inherited from

LogPointSet.disconnectStyle


dispose

dispose(): void

Disposes this node, once disposes a node should not be used anymore.
Clear all listeners, and disconnect styles to avoid memory leaks.
Also aggressively 'cleanup' this node by setting some of its members to null.

Returns

void

Inherited from

LogPointSet.dispose


enableEventPropagation

enableEventPropagation(enable): LogReferenceLine

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

LogReferenceLine

this

Inherited from

LogPointSet.enableEventPropagation


execute

execute(delegate): LogReferenceLine

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

Returns

LogReferenceLine

The result if any or this

Inherited from

LogPointSet.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: LogReferenceLine) => T

Returns

T

Inherited from

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

LogPointSet.filter


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

LogPointSet.getAnimationStyle


getBaseName

getBaseName(): string

Returns the base name

Returns

string

The base name

Inherited from

LogPointSet.getBaseName


getBounds

getBounds(): Rect

Return bound in the parent coordinates

Returns

Rect

Inherited from

LogPointSet.getBounds


getClassName

getClassName(): string

Returns

string

Inherited from

LogPointSet.getClassName


getClipStyle

getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

LogPointSet.getClipStyle


getContentsTransform

getContentsTransform(): Transformation

Retrieves the world transformation of the spatial

Returns

Transformation

Inherited from

LogPointSet.getContentsTransform


getCss

getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

LogPointSet.getCss


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

LogPointSet.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

LogPointSet.getCssClasses


getCssTransform

getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

LogPointSet.getCssTransform


getDataLimits

getDataLimits(fullLimits): Rect

Return meaning data limits

Parameters

Name Type Description
fullLimitsbooleandefault value is false

Returns

Rect

Overrides

LogPointSet.getDataLimits


getDescription

getDescription(): string

Gets the description

Returns

string

The description

Inherited from

LogPointSet.getDescription


getHeader

getHeader(name): LogVisualHeader<Node>

Return the header registered by the name

Parameters

Name Type Description
namestringheader name

Returns

LogVisualHeader<Node>

header

Inherited from

LogPointSet.getHeader


getHeaders

getHeaders(): Record<string, LogVisualHeader<Node>>

Return an object that contains all headers registered with the visual

Returns

Record<string, LogVisualHeader<Node>>

headers

Inherited from

LogPointSet.getHeaders


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

LogPointSet.getId


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

Gets invalidate method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

LogPointSet.getInvalidateMethod


getLevel

getLevel(): number

Returns level of wrap interpolation

Returns

number

level of wrap interpolation


getLineStyle

getLineStyle(): LineStyle

Returns line style

Returns

LineStyle

Inherited from

LogPointSet.getLineStyle


getLocalTransform

getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

LogPointSet.getLocalTransform


getMarginsStyle

getMarginsStyle(): SpaceStyle<string | number>

Return margins style

Returns

SpaceStyle<string | number>

Inherited from

LogPointSet.getMarginsStyle


getMicroPositionLeft

getMicroPositionLeft(): number

Returns micro position left

Returns

number

Inherited from

LogPointSet.getMicroPositionLeft


getMicroPositionRight

getMicroPositionRight(): number

Returns micro position right

Returns

number

Inherited from

LogPointSet.getMicroPositionRight


getMicroPositionTransformation

Protected getMicroPositionTransformation(): Transformation

Returns micro position transformation

Returns

Transformation

micro position transformation

Inherited from

LogPointSet.getMicroPositionTransformation


getModelLimits

getModelLimits(): Rect

Return model limits

Returns

Rect

Overrides

LogPointSet.getModelLimits


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

LogPointSet.getName


getOpacity

getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

LogPointSet.getOpacity


getOpacityBlendMode

getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

LogPointSet.getOpacityBlendMode


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

LogPointSet.getParent


getProperties

getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

properties object

Overrides

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

LogPointSet.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

LogPointSet.getPropertyKeys


getReferenceCurve

getReferenceCurve(): LogCurve

Returns reference curve

Returns

LogCurve

reference curve


getReferenceType

getReferenceType(): ReferenceType

Returns the current value model type

Returns

ReferenceType


getRenderingFilter

getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

LogPointSet.getRenderingFilter


getResponsiveStyle

getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

LogPointSet.getResponsiveStyle


getRoot

getRoot(): Node

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

Returns

Node

the root node

Inherited from

LogPointSet.getRoot


getScaleScrollStrategy

getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

LogPointSet.getScaleScrollStrategy


getScaledData

getScaledData(): AbstractScaledData

Gets the visual's scaled data

Returns

AbstractScaledData

(the implementation returns null).

Inherited from

LogPointSet.getScaledData


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

LogPointSet.getSceneTransform


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

LogPointSet.getTag


getTrack

getTrack(): ITrack

Returns parent track if LogTrack

Returns

ITrack

Inherited from

LogPointSet.getTrack


getValue

getValue(): number

Returns the current value

Returns

number


getVisible

getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

LogPointSet.getVisible


getWorldTransform

getWorldTransform(): Transformation

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

Returns

Transformation

Inherited from

LogPointSet.getWorldTransform


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

LogPointSet.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

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

LogPointSet.hasEventListener


invalidate

invalidate(bounds?, force?): LogReferenceLine

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

LogReferenceLine

this

Inherited from

LogPointSet.invalidate


invalidateParent

invalidateParent(bounds?, force?): LogReferenceLine

Invalidate bounds

Parameters

Name Type Description
Optional boundsRectmodel bounds
Optional forcebooleanforce if null is provided then cache (if any will be completely refreshed) otherwise only specified rect or node.bounds will be refreshed

Returns

LogReferenceLine

this

Inherited from

LogPointSet.invalidateParent


isAutoBounds

isAutoBounds(): boolean

Enable automatic bounds. If auto bounds is enabled then it equals to parent model limits

Returns

boolean

Inherited from

LogPointSet.isAutoBounds


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

LogPointSet.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

LogPointSet.isEventPropagationEnabled


isHorizontalFlip

isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

horizontal flip

Inherited from

LogPointSet.isHorizontalFlip


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

LogPointSet.isNotificationEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

LogPointSet.isSelectable


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

LogPointSet.isSilent


notify

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

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

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

Returns

LogReferenceLine

this

Inherited from

LogPointSet.notify


off

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

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

Returns

LogReferenceLine

this

Inherited from

LogPointSet.off


on

on<E>(type, callback): LogReferenceLine

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

Returns

LogReferenceLine

this

Inherited from

LogPointSet.on


onHeaderSet

Protected onHeaderSet(name, headerInstance, silent?): void

This method is called if header is set. Send event Events.HeaderSet

Parameters

Name Type Description
namestringof the container. The 'header' and 'footer' is used.
headerInstanceLogVisualHeader<Node>the header instance
Optional silentbooleansilent node to avoid sending events that header is created

Returns

void

Inherited from

LogPointSet.onHeaderSet


onMicroPositionChanged

Protected onMicroPositionChanged(): LogReferenceLine

calls when microPosition has been changed

Returns

LogReferenceLine

this

Inherited from

LogPointSet.onMicroPositionChanged


onParentChanged

Protected onParentChanged(node): LogReferenceLine

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

LogReferenceLine

this

Inherited from

LogPointSet.onParentChanged


onVisibilityChanged

Protected onVisibilityChanged(): void

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

Returns

void

Inherited from

LogPointSet.onVisibilityChanged


postRendering

Protected postRendering(context): void

To be called after rendering. Call this method if you override method render

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

LogPointSet.postRendering


preRendering

Protected preRendering(context): void

Occurs before rendering this method sets clipping by default. Call this method if you override method render

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

LogPointSet.preRendering


registerAnimationStyle

registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

LogPointSet.registerAnimationStyle


removeCssClass

removeCssClass(cssclass): LogReferenceLine

Removes css class from node

Parameters

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

Returns

LogReferenceLine

this

Inherited from

LogPointSet.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): LogReferenceLine

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LogReferenceLine

this

Inherited from

LogPointSet.removeInvalidateHandler


render

render(context): void

Renders node

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node

Returns

void

Inherited from

LogPointSet.render


renderAsync

renderAsync(context, callback): void

Render node in asynchronous mode. Default implementation creates call method "render" inside

Parameters

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

Returns

void

Inherited from

LogPointSet.renderAsync


renderContent

Protected renderContent(context): void

Renders node content

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node

Returns

void

Inherited from

LogPointSet.renderContent


rotate

rotate(theta, x, y): LogReferenceLine

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

LogReferenceLine

this

Inherited from

LogPointSet.rotate


scale

scale(xx, yy): LogReferenceLine

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

LogReferenceLine

this

Inherited from

LogPointSet.scale


setAnimationStyle

setAnimationStyle(animationStyle): LogReferenceLine

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

LogReferenceLine

Inherited from

LogPointSet.setAnimationStyle


setAutoBounds

setAutoBounds(enable): LogReferenceLine

Enable or disable auto bounds If auto bounds is enabled then it equals to parent model limits

Parameters

Name Type Description
enablebooleanEnable or disable auto bounds

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setAutoBounds


setBaseName

setBaseName(name): LogReferenceLine

Sets base name of the visual

Parameters

Name Type Description
namestringThe base name

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setBaseName


setBounds

setBounds(bounds): LogReferenceLine

Sets bounds of the point set in the parent coordinates false

Parameters

Name Type Description
boundsRectbounds of the point set

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setBounds


setClipStyle

setClipStyle(style): LogReferenceLine

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setClipStyle


setCss

setCss(style, merge?): LogReferenceLine

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

LogReferenceLine

this

Inherited from

LogPointSet.setCss


setCssClass

setCssClass(name): LogReferenceLine

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

LogReferenceLine

this

Inherited from

LogPointSet.setCssClass


setCssTransform

setCssTransform(transform): LogReferenceLine

Set CSS transformation

Parameters

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

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setCssTransform


setDescription

setDescription(description): LogReferenceLine

Sets the description

Parameters

Name Type Description
descriptionstringThe visual description

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setDescription


setHeader

setHeader(name, headerInstance, silent?): LogReferenceLine

Sets header instance with specified name. This name usually defines header or footer.

Throws

if header name is null

Parameters

Name Type Description
namestringof the container. The 'header' and 'footer' is used.
headerInstanceLogVisualHeader<Node>the header instance
Optional silentbooleansilent node to avoid sending events that header is created

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setHeader


setId

setId(id): LogReferenceLine

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setId


setLevel

setLevel(level): LogReferenceLine

Set level of wrap interpolation

Parameters

Name Type Description
levelnumberlevel of wrap interpolation

Returns

LogReferenceLine

this


setLineStyle

setLineStyle(lineStyle, merge?): LogReferenceLine

Sets 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

LogReferenceLine

this

Inherited from

LogPointSet.setLineStyle


setLocalTransform

setLocalTransform(localTransform, force?): LogReferenceLine

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

LogReferenceLine

this

Inherited from

LogPointSet.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): LogReferenceLine

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

LogReferenceLine

this

Inherited from

LogPointSet.setMarginsStyle


setMicroPosition

setMicroPosition(left, right): LogReferenceLine

Sets micro position (0 - 1). It allows application code to display the visual in a subarea of the track.
By default log visuals uses all space of the trace in the horizontal direction, but micro position allows to place log visual in the specified position of the track in horizontal direction. See example below

Example

// The following code places curve 20% from left and 20% from right.
curve.setMicroPosition(0.2,0.8);

Parameters

Name Type Description
leftnumberleft position
rightnumberright position

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setMicroPosition


setName

setName(name): LogReferenceLine

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setName


setNotification

setNotification(notify, force?): LogReferenceLine

set notification state

Parameters

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

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setNotification


setOpacity

setOpacity(opacity, blendMode?): LogReferenceLine

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

LogReferenceLine

this

Inherited from

LogPointSet.setOpacity


setProperties

setProperties(properties?): LogReferenceLine

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

LogReferenceLine

Overrides

LogPointSet.setProperties


setProperty

setProperty(name, value): LogReferenceLine

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setProperty


setReferenceCurve

setReferenceCurve(curve): LogReferenceLine

Set reference curve

Parameters

Name Type Description
curveLogCurvereference curve

Returns

LogReferenceLine

this


setReferenceType

setReferenceType(valueType): LogReferenceLine

Set the current value model type

Parameters

Name Type Description
valueTypeReferenceTypevalue model type

Returns

LogReferenceLine

this


setRenderingFilter

setRenderingFilter(filter): LogReferenceLine

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): LogReferenceLine

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setResponsiveStyle


setScaleScrollStrategy

setScaleScrollStrategy(strategy?): LogReferenceLine

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setScaleScrollStrategy


setSelectable

setSelectable(selectable): LogReferenceLine

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

LogReferenceLine

this

Inherited from

LogPointSet.setSelectable


setSilent

setSilent(bool): LogReferenceLine

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setSilent


setTag

setTag(tag): LogReferenceLine

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

Parameters

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

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setTag


setValue

setValue(value): LogReferenceLine

Sets the current value

Parameters

Name Type Description
valuenumbervalue in track coordinates. by default from 0 to 1.

Returns

LogReferenceLine

this


setVisible

setVisible(value): LogReferenceLine

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setVisible


setZIndex

setZIndex(value): LogReferenceLine

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

LogReferenceLine

this

Inherited from

LogPointSet.setZIndex


shear

shear(shx, shy): LogReferenceLine

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

LogReferenceLine

this

Inherited from

LogPointSet.shear


toString

toString(): string

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

Returns

string

A string representation

Inherited from

LogPointSet.toString


translate

translate(tx, ty): LogReferenceLine

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

LogReferenceLine

this

Inherited from

LogPointSet.translate


unregisterAnimationStyle

unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

LogPointSet.unregisterAnimationStyle


updateSceneTransformation

updateSceneTransformation(): LogReferenceLine

Update scene transformation

Returns

LogReferenceLine

this

Inherited from

LogPointSet.updateSceneTransformation


updateState

updateState(regions?, changes?): LogReferenceLine

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

LogReferenceLine

this

Inherited from

LogPointSet.updateState


updateTimeStamp

Protected updateTimeStamp(): LogReferenceLine

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

Returns

LogReferenceLine

this

Inherited from

LogPointSet.updateTimeStamp


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

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

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

LogPointSet.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

LogPointSet.getClassName


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

LogPointSet.isSceneGraphNotificationEnabled