Last updated

API / geotoolkit / welllog / header / LogCurveVisualHeader / LogCurveVisualHeader

Class: LogCurveVisualHeader

header.LogCurveVisualHeader.LogCurveVisualHeader

Define visual to render curve header

Deprecated

4.0. Use AdaptiveLogCurveVisualHeader instead.

Hierarchy

Table of contents

Constructors
Methods
addCssClassaddInvalidateHandlerapplyOpacity
applyResponsiveStylecalculateDesiredHeightcheckCollision
checkTextSizecloneconnectStyle
copyConstructordisconnectStyledispose
drawBorderdrawRoundedBoxdrawText
enableEventPropagationexecutefillBorder
filtergetAnimationStylegetBorderLineStyle
getBoundsgetClassNamegetClipStyle
getContentsAreagetContentsTransformgetCss
getCssClassgetCssClassesgetCssTransform
getDesiredHeightgetDisplayDepthgetDisplayMarkerDepth
getDisplayModegetDisplayStringgetDisplayValue
getDisplayValueTextStylegetFillStylegetHighlightOptions
getIdgetInlinegetInvalidateMethod
getIsPointingUpgetLayoutStylegetLineStyle
getLocalTransformgetMarginsStylegetMaxValueFormat
getMinValueFormatgetModelLimitsgetName
getOpacitygetOpacityBlendModegetPaddingStyle
getParentgetPropertiesgetProperty
getPropertyKeysgetRenderingFiltergetResponsiveStyle
getRootgetScaleScrollStrategygetSceneTransform
getSymbolgetTaggetTextBoundingBox
getTextShapeHelpergetTextStylegetValueFormat
getVisiblegetVisualgetWorldTransform
getZIndexhasCssClasshasEventListener
invalidateinvalidateLayoutinvalidateParent
isAutoBoundsisDisposedisEventPropagationEnabled
isHorizontalFlipisNotificationEnabledisSelectable
isSilentnotifyoff
ononParentChangedonVisibilityChanged
onVisualChangedonVisualChangingonVisualStateChanged
postRenderingpreRenderingregisterAnimationStyle
removeCssClassremoveInvalidateHandlerrender
renderAsyncrotatescale
setAnimationStylesetAutoBoundssetBorderLineStyle
setBoundssetClipStylesetCss
setCssClasssetCssTransformsetDesiredHeight
setDisplayModesetDisplayStringsetDisplayValueTextStyle
setFillStylesetHighlightOptionssetHorizontalFlip
setIdsetInlinesetIsPointingUp
setLayoutStylesetLineStylesetLocalTransform
setMarginsStylesetMaxValueFormatsetMinValueFormat
setModelLimitssetNamesetNotification
setOpacitysetPaddingStylesetProperties
setPropertysetRenderingFiltersetResponsiveStyle
setScaleScrollStrategysetSelectablesetSilent
setSymbolsetTagsetTextStyle
setVisiblesetVisualsetZIndex
sheartoStringtranslate
unregisterAnimationStyleupdateGeometryupdateSceneTransformation
updateStateupdateTimeStampenableSceneGraphNotification
findParentgetClassNamegetDesiredHeight
isSceneGraphNotificationEnabled
Css Properties
Name Type Description
autoboundsbooleanAutomatic calculation of header size on or off
borderlinestylestringBorder line style
borderlinestyleLineStyleBorder line style
borderlinestyle-colorstringColor in CSS form
borderlinestyle-fillstringOptional fill style to be used to fill lines generated with this style
borderlinestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
borderlinestyle-fill-colorstringColor in CSS form
borderlinestyle-fill-evenoddmodebooleanEven-odd fill mode
borderlinestyle-fill-fillpatternPatternPattern
borderlinestyle-fill-fillpattern-containernamestringAn optional container name, which creates an image pattern. This parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself
borderlinestyle-fill-fillpattern-patternnamestringName of this pattern for indexing
borderlinestyle-fill-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
borderlinestyle-fill-foregroundstringForeground color
borderlinestyle-fill-patternPatternPattern
borderlinestyle-linecapCapStyleThe line cap style
borderlinestyle-linedashoffsetnumberLine dash offset of dashed line
borderlinestyle-linejoinJoinStyleThe line join style
borderlinestyle-pixelsnapmodebooleanPixel Snap Mode, default(
borderlinestyle-scalablebooleanTrue if width should depend on transformation
borderlinestyle-unitstringOptional unit for the width
borderlinestyle-widthnumber | stringThe line thickness
boundsRectBounds of the curve in the parent coordinates
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
depthnumberDepth
displaymodestringDisplay mode
displaystringstringDisplay string
displayvaluetextstylestringText style of the displayed value
displayvaluetextstyleTextStyleText style of the displayed value
displayvaluetextstyle-alignmentAlignmentStyleAlignment
displayvaluetextstyle-autosizebooleanAuto font size on high definition display
displayvaluetextstyle-backgroundstringBackground style
displayvaluetextstyle-backgroundFillStyleBackground style
displayvaluetextstyle-baselineBaseLineStyleBase line
displayvaluetextstyle-colorstringColor in CSS form
displayvaluetextstyle-fillFillStyleText fill style
displayvaluetextstyle-fontstringFont see
displayvaluetextstyle-fonturlstringThe place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword
displayvaluetextstyle-lineheightstring | numberLine height
displayvaluetextstyle-multilinebooleanAllow multi-line text
displayvaluetextstyle-outlinestringOutline style
displayvaluetextstyle-outlineLineStyleOutline style
displayvaluetextstyle-overflowwrapOverflowWrapStyleOverflow wrap
displayvaluetextstyle-strikethroughstringStrikethrough style
displayvaluetextstyle-strikethroughLineStyleStrikethrough style
displayvaluetextstyle-textoverflowTextOverflowStyleText overflow
displayvaluetextstyle-underlinestringUnderline style
displayvaluetextstyle-underlineLineStyleUnderline style
displayvaluetextstyle-underlineoffsetstring | numberUnderline offset distance
displayvaluetextstyle-whitespaceWhiteSpaceStyleWhite space
displayvaluetextstyle-wordbreakWordBreakStyleWord break
fillstylestringThe fill style
fillstyleFillStyleThe fill style
horizontalflipbooleanFlip horizontal from right to left
idstring | numberId of the node, its a unique identifier
inlinebooleanDraw inline or no
ispointingupbooleanDefines whether the text is always pointing up
layoutstyleLayoutStyleLayoutstyle
layoutstyle-constraintSizeConstraintLayout constrains
layoutstyle-flexgrownumberNumber specifying how much the item will grow relative to the rest of the items inside the same container
layoutstyle-flexshrinknumberNumber specifying how much the item will shrink relative to the rest of the items inside the same container
layoutstyle-floatstringFloat position
layoutstyle-positionstringLayout position
layoutstyle-sizenumber | stringLayout size
linestylestringThe line style
linestyleLineStyleThe line style
localtransformTransformationLocal transformation
localtransform-dxnumberX axis translation
localtransform-dynumberY axis translation
localtransform-xxnumberX scale
localtransform-xynumberXy skew
localtransform-yxnumberYx skew
localtransform-yynumberY scale
marginsnumber | stringIt has properties for specifying the margins for each side
maxvalueformatNumberFormatNumber format
maxvalueformat-fulllocalebooleanSpecify format how to provide locale
maxvalueformat-grouplengthnumberSpecify group length of numbers
maxvalueformat-localestringFormat locale
maxvalueformat-localeLocaleFormat locale
maxvalueformat-locale-localestringThe name of the locale
maxvalueformat-locale-numberformatNumberFormatInfoDefines number format
maxvalueformat-locale-numberformat-decstringDefines decimal symbol
maxvalueformat-locale-numberformat-groupstringDefines group symbol
maxvalueformat-locale-numberformat-infinitystringDefines infinity text
maxvalueformat-locale-numberformat-negstringDefines negative symbol
maxvalueformat-maximumfractiondigitsnumberSpecify maximum fraction digits
maxvalueformat-minimumfractiondigitsnumberSpecify minimum fraction digits, have to be less or equal to maximumfractiondigits
maxvalueformat-roundbooleanRound number
minvalueformatNumberFormatNumber format
modellimitsRectDesired model 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
paddingnumber | stringIt has properties for specifying the padding for each side
scalescrollstrategyScaleScrollStrategyScale scroll strategy
scalescrollstrategy-enabledbooleanEnable flag
selectablebooleanSelectable node, a boolean to determine if selection should consider this node
symbolSymbolShapeSymbol to be displayed
symbol-alignmentAnchorTypeAlignment according to the anchor point
symbol-alignmentAnchorTypeAnchor type of symbol
symbol-axnumberAnchor x position
symbol-aynumberAnchor y position
symbol-cachebooleanSet it to true if you want to cache complex geometry to raster
symbol-clipstyleClipStyleClipping style
symbol-clipstyleGraphicsPathClipping style
symbol-cssclassstringThe css class name of this node
symbol-csscursorstringCSS cursor associated with node
symbol-cssstylestringCSS style to be applied to inserted elements
symbol-fillstylestringStyle applied on fill
symbol-fillstyleFillStyleStyle applied on fill
symbol-heightnumberShape height
symbol-idstring | numberId of the node, its a unique identifier
symbol-ispointingupbooleanDefines whether the shape is always pointing up
symbol-layoutstyleLayoutStyleLayout style to specify how to lay out shape
symbol-linestylestringStyle applied on outline
symbol-linestyleLineStyleStyle applied on outline
symbol-localtransformTransformationLocal transformation
symbol-marginsnumber | stringIt has properties for specifying the margins for each side
symbol-maxdimensionDimensionMaximum size for rendering
symbol-maxdimension-heightnumberHeight of dimension
symbol-maxdimension-widthnumberWidth of dimension or properties
symbol-mindimensionDimensionMinimum size for rendering
symbol-namestringName of the node. It is often used for debugging purposes or to simplify queries
symbol-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
symbol-opacityblendmodeBlendModeNode opacity mode to blend it
symbol-painterstringA function with has parameters: symbol, box, context
symbol-painterpropertiesanySymbol's painter's properties
symbol-preserveaspectratiobooleanPreserve aspect ratio of the anchored shape
symbol-preservereadingorientationbooleanPreserve reading orientation for local transform
symbol-preserverightanglebooleanPreserve right angle for local transformation
symbol-rotationanglenumberRotation angle at anchor
symbol-scalescrollstrategyScaleScrollStrategyScale scroll strategy
symbol-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
symbol-sizeisindevicespacebooleanIs coordinate in device space
symbol-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
symbol-transformstringAdditional CSS transformation applied to node or 'none'
symbol-transformTransformationAdditional CSS transformation applied to node or 'none'
symbol-useminmaxdimensionsbooleanUse the min max dimensions to limit visual size
symbol-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
symbol-widthnumberShape width
symbol-z-indexnumberDefine node z-index
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
textstylestringThe text style
textstyleTextStyleThe text style
transformstringAdditional CSS transformation applied to node or 'none'
transformTransformationAdditional CSS transformation applied to node or 'none'
valueformatNumberFormatNumber format for value
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
z-indexnumberDefine node z-index

Contents

Constructors

new LogCurveVisualHeader(options)

new LogCurveVisualHeader(options?)

Parameters

Name Type Description
Optional optionsLogCurve | Optionsvisual for the header or properties object

Overrides

LogVisualHeader<LogCurve>.constructor

Methods

addCssClass

addCssClass(cssclass): LogCurveVisualHeader

Adds new css class to node

Parameters

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

Returns

LogCurveVisualHeader

Inherited from

LogVisualHeader.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): LogCurveVisualHeader

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.addInvalidateHandler


applyOpacity

Protected applyOpacity(context): LogCurveVisualHeader

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

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.applyOpacity


applyResponsiveStyle

Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

LogVisualHeader.applyResponsiveStyle


calculateDesiredHeight

Protected calculateDesiredHeight(width?): number

Return header desired height

Parameters

Name Type Description
Optional widthnumberwidth to fit elements in case wrapping

Returns

number

Inherited from

LogVisualHeader.calculateDesiredHeight


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

LogVisualHeader.checkCollision


checkTextSize

checkTextSize(context, text, maxLen): string

Returns biggest text in specified width

Parameters

Name Type Description
contextRenderingContextRendering Context
textstringText to calculate the size for
maxLennumbermax length available for the text

Returns

string

Inherited from

LogVisualHeader.checkTextSize


clone

clone(): LogCurveVisualHeader

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

Returns

LogCurveVisualHeader

clone

Overrides

LogVisualHeader.clone


connectStyle

connectStyle(style, type, callback): LogCurveVisualHeader

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

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.connectStyle


copyConstructor

Protected copyConstructor(src, deepCopy?): LogCurveVisualHeader

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

Returns

LogCurveVisualHeader

this

Overrides

LogVisualHeader.copyConstructor


disconnectStyle

disconnectStyle(style, type, callback): LogCurveVisualHeader

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

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.disconnectStyle


dispose

dispose(): void

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

Returns

void

Inherited from

LogVisualHeader.dispose


drawBorder

drawBorder(context, borderLineStyle?, modelLimits?): LogCurveVisualHeader

Stroke border with specified

Parameters

Name Type Description
contextRenderingContextRendering Context
Optional borderLineStyleLineStylethe LineStyle for the border
Optional modelLimitsRectthe border bounds

Returns

LogCurveVisualHeader

Inherited from

LogVisualHeader.drawBorder


drawRoundedBox

Protected drawRoundedBox(context, bounds, options?): LogCurveVisualHeader

Parameters

Name Type
contextRenderingContext
boundsRect
Optional optionsObject
Optional options.fillstyleFillStyle
Optional options.linestyleLineStyle
Optional options.radiusnumber

Returns

LogCurveVisualHeader

Inherited from

LogVisualHeader.drawRoundedBox


drawText

Protected drawText(context, x?, y?, text?, style?, alignment?, theta?, maxSize?): void

for internal use only, make text always readable

Parameters

Name Type Description
contextRenderingContextrendering context
Optional xnumberx position to place text
Optional ynumbery position to place text
Optional textstringtext to be displayed
Optional styleTextStyletext style
Optional alignmentAnchorTypealignment for placement of text
Optional thetanumberof rotation
Optional maxSizenumber | Dimensionmax size or width

Returns

void

Inherited from

LogVisualHeader.drawText


enableEventPropagation

enableEventPropagation(enable): LogCurveVisualHeader

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

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.enableEventPropagation


execute

execute(delegate): LogCurveVisualHeader

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

Returns

LogCurveVisualHeader

The result if any or this

Inherited from

LogVisualHeader.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: LogCurveVisualHeader) => T

Returns

T

Inherited from

LogVisualHeader.execute


fillBorder

fillBorder(context, fillStyle?, modelLimits?): LogCurveVisualHeader

Draws a rectangle at the model limits and fill it with specified fillStyle

Parameters

Name Type Description
contextRenderingContextRendering Context
Optional fillStyleFillStyleFill Style for the rectangle
Optional modelLimitsRectrectangle bounds

Returns

LogCurveVisualHeader

Inherited from

LogVisualHeader.fillBorder


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

LogVisualHeader.filter


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

LogVisualHeader.getAnimationStyle


getBorderLineStyle

getBorderLineStyle(): LineStyle

Gets border line style

Returns

LineStyle

Inherited from

LogVisualHeader.getBorderLineStyle


getBounds

getBounds(): Rect

Return bound in the parent coordinates

Returns

Rect

Inherited from

LogVisualHeader.getBounds


getClassName

getClassName(): string

Returns

string

Inherited from

LogVisualHeader.getClassName


getClipStyle

getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

LogVisualHeader.getClipStyle


getContentsArea

getContentsArea(transformation?): Rect

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

Parameters

Name Type Description
Optional transformationTransformationscene transformation

Returns

Rect

Inherited from

LogVisualHeader.getContentsArea


getContentsTransform

getContentsTransform(): Transformation

Return transformation from model to bounds

Returns

Transformation

Inherited from

LogVisualHeader.getContentsTransform


getCss

getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

LogVisualHeader.getCss


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

LogVisualHeader.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

LogVisualHeader.getCssClasses


getCssTransform

getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

LogVisualHeader.getCssTransform


getDesiredHeight

getDesiredHeight(width?): number

Return header desired height

Parameters

Name Type Description
Optional widthnumberwidth to fit elements in case wrapping

Returns

number

Inherited from

LogVisualHeader.getDesiredHeight


getDisplayDepth

getDisplayDepth(): number

Returns the displayed depth value

Returns

number

Inherited from

LogVisualHeader.getDisplayDepth


getDisplayMarkerDepth

getDisplayMarkerDepth(): number

Return marker depth to be used to display value. By default it is nan and value is not displayed

Returns

number


getDisplayMode

getDisplayMode(): string | string[]

Returns the displayed mode value

Returns

string | string[]

Inherited from

LogVisualHeader.getDisplayMode


getDisplayString

getDisplayString(): string

Returns the displayed value

Returns

string

displayString

Inherited from

LogVisualHeader.getDisplayString


getDisplayValue

getDisplayValue(): number

Gets value at last, first or custom depth position

Returns

number

Overrides

LogVisualHeader.getDisplayValue


getDisplayValueTextStyle

getDisplayValueTextStyle(): TextStyle

Return a current text style for displayed value

Returns

TextStyle


getFillStyle

getFillStyle(): FillStyle

Return fill style

Returns

FillStyle

Inherited from

LogVisualHeader.getFillStyle


getHighlightOptions

getHighlightOptions(): HighlightOptions

Returns highlight options

Returns

HighlightOptions

highlight options

Inherited from

LogVisualHeader.getHighlightOptions


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

LogVisualHeader.getId


getInline

getInline(): boolean

gets inline mode

Returns

boolean


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

Gets invalidate method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

LogVisualHeader.getInvalidateMethod


getIsPointingUp

getIsPointingUp(): boolean

Returns true if the text is always pointing up

Returns

boolean

true if the text is always pointing up

Inherited from

LogVisualHeader.getIsPointingUp


getLayoutStyle

getLayoutStyle(): LayoutStyle<string | number>

Return desired layout style

Returns

LayoutStyle<string | number>

Inherited from

LogVisualHeader.getLayoutStyle


getLineStyle

getLineStyle(): LineStyle

Return line style

Returns

LineStyle

Inherited from

LogVisualHeader.getLineStyle


getLocalTransform

getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

LogVisualHeader.getLocalTransform


getMarginsStyle

getMarginsStyle(): SpaceStyle<string | number>

Return margins style

Returns

SpaceStyle<string | number>

Inherited from

LogVisualHeader.getMarginsStyle


getMaxValueFormat

getMaxValueFormat(): NumberFormat

Returns the number formatter for the max value

Returns

NumberFormat


getMinValueFormat

getMinValueFormat(): NumberFormat

Returns the number formatter for the min value

Returns

NumberFormat


getModelLimits

getModelLimits(): Rect

Return model limits

Returns

Rect

Inherited from

LogVisualHeader.getModelLimits


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

LogVisualHeader.getName


getOpacity

getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

LogVisualHeader.getOpacity


getOpacityBlendMode

getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

LogVisualHeader.getOpacityBlendMode


getPaddingStyle

getPaddingStyle(): SpaceStyle<string | number>

Return padding style

Returns

SpaceStyle<string | number>

padding

Inherited from

LogVisualHeader.getPaddingStyle


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

LogVisualHeader.getParent


getProperties

getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

properties object

Overrides

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

LogVisualHeader.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

LogVisualHeader.getPropertyKeys


getRenderingFilter

getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

LogVisualHeader.getRenderingFilter


getResponsiveStyle

getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

LogVisualHeader.getResponsiveStyle


getRoot

getRoot(): Node

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

Returns

Node

the root node

Inherited from

LogVisualHeader.getRoot


getScaleScrollStrategy

getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

LogVisualHeader.getScaleScrollStrategy


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

LogVisualHeader.getSceneTransform


getSymbol

getSymbol(): SymbolShape

Gets symbol

Returns

SymbolShape


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

LogVisualHeader.getTag


getTextBoundingBox

Protected getTextBoundingBox(context, x?, y?, text?, style?, alignment?, theta?): Rect

Returns bounding box of the text

Parameters

Name Type Description
contextRenderingContextrendering context
Optional xnumberx position to place text
Optional ynumbery position to place text
Optional textstringtext to be displayed
Optional styleTextStyletext style
Optional alignmentAnchorTypealignment for placement of text
Optional thetanumberof rotation

Returns

Rect

Inherited from

LogVisualHeader.getTextBoundingBox


getTextShapeHelper

Protected getTextShapeHelper(x?, y?, text?, textStyle?, alignment?): Text

Return text shape helper instance

Parameters

Name Type Description
Optional xnumberx coordinate
Optional ynumbery coordinate
Optional textstringtext to display
Optional textStyleTypea new shape text style
Optional alignmentAnchorTypeanchor alignment

Returns

Text

text shape helper

Inherited from

LogVisualHeader.getTextShapeHelper


getTextStyle

getTextStyle(): TextStyle

Return a current text style

Returns

TextStyle

Inherited from

LogVisualHeader.getTextStyle


getValueFormat

getValueFormat(): NumberFormat

Returns the number formatter for the value

Returns

NumberFormat


getVisible

getVisible(): boolean

Return visibility of the header

Returns

boolean

true if header itself and associated LogVisual is visible

Inherited from

LogVisualHeader.getVisible


getVisual

getVisual(): LogCurve

Gets visual to be used to render header

Returns

LogCurve

visual

Inherited from

LogVisualHeader.getVisual


getWorldTransform

getWorldTransform(): Transformation

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

Returns

Transformation

Inherited from

LogVisualHeader.getWorldTransform


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

LogVisualHeader.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

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

LogVisualHeader.hasEventListener


invalidate

invalidate(bounds?, force?): LogCurveVisualHeader

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

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.invalidate


invalidateLayout

invalidateLayout(propagate?): LogCurveVisualHeader

Notify that layout is invalidated. Send event Events.LayoutInvalidated

Parameters

Name Type Description
Optional propagatebooleanpropagate invalidate layout to parent

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.invalidateLayout


invalidateParent

Protected invalidateParent(bounds?, force?): LogCurveVisualHeader

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

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.invalidateParent


isAutoBounds

isAutoBounds(): boolean

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

Deprecated

since 4.1, use .getLayoutStyle instead

Returns

boolean

Inherited from

LogVisualHeader.isAutoBounds


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

LogVisualHeader.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

LogVisualHeader.isEventPropagationEnabled


isHorizontalFlip

isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

horizontal flip

Inherited from

LogVisualHeader.isHorizontalFlip


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

LogVisualHeader.isNotificationEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

LogVisualHeader.isSelectable


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

LogVisualHeader.isSilent


notify

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

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event
sourceLogVisualHeader<Node>source who called the event
Optional argsEventMap[E]event arguments

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.notify


off

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

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

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.off


on

on<E>(type, callback): LogCurveVisualHeader

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

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.on


onParentChanged

Protected onParentChanged(node): LogCurveVisualHeader

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.onParentChanged


onVisibilityChanged

Protected onVisibilityChanged(): void

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

Returns

void

Inherited from

LogVisualHeader.onVisibilityChanged


onVisualChanged

Protected onVisualChanged(): void

This method is called if visual is changed. Send event Events.VisualChanged

Returns

void

Inherited from

LogVisualHeader.onVisualChanged


onVisualChanging

Protected onVisualChanging(): void

This method is called if visual is changing.

Returns

void

Inherited from

LogVisualHeader.onVisualChanging


onVisualStateChanged

Protected onVisualStateChanged(type, source): void

Parameters

Name Type
typeEvents | Events
sourceLogCurve

Returns

void

Inherited from

LogVisualHeader.onVisualStateChanged


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

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

LogVisualHeader.preRendering


registerAnimationStyle

registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

LogVisualHeader.registerAnimationStyle


removeCssClass

removeCssClass(cssclass): LogCurveVisualHeader

Removes css class from node

Parameters

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

Returns

LogCurveVisualHeader

Inherited from

LogVisualHeader.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): LogCurveVisualHeader

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.removeInvalidateHandler


render

render(inputContext): void

Renders node

Parameters

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

Returns

void

Overrides

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

LogVisualHeader.renderAsync


rotate

rotate(theta, x, y): LogCurveVisualHeader

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

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.rotate


scale

scale(xx, yy): LogCurveVisualHeader

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.scale


setAnimationStyle

setAnimationStyle(animationStyle): LogCurveVisualHeader

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

LogCurveVisualHeader

Inherited from

LogVisualHeader.setAnimationStyle


setAutoBounds

setAutoBounds(enable): LogCurveVisualHeader

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

Deprecated

since 4.1, use .setLayoutStyle instead

Parameters

Name Type Description
enablebooleanEnable or disable auto bounds

Returns

LogCurveVisualHeader

Inherited from

LogVisualHeader.setAutoBounds


setBorderLineStyle

setBorderLineStyle(lineStyle, merge?): LogCurveVisualHeader

Sets border line style

Parameters

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

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setBorderLineStyle


setBounds

setBounds(bounds): LogCurveVisualHeader

Sets bounds of the curve in the parent coordinates and set up auto bounds false

Parameters

Name Type Description
boundsRectbounds of the curve in the parent coordinates

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setBounds


setClipStyle

setClipStyle(style): LogCurveVisualHeader

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setClipStyle


setCss

setCss(style, merge?): LogCurveVisualHeader

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

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setCss


setCssClass

setCssClass(name): LogCurveVisualHeader

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

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setCssClass


setCssTransform

setCssTransform(transform): LogCurveVisualHeader

Set CSS transformation

Parameters

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

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setCssTransform


setDesiredHeight

setDesiredHeight(value, silent?): LogCurveVisualHeader

Sets desired height of the header as a layoutable object

Parameters

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

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setDesiredHeight


setDisplayMode

setDisplayMode(displayMode): LogCurveVisualHeader

Sets the displayed mode value

Parameters

Name Type Description
displayModestring | string[]header display mode

Returns

LogCurveVisualHeader

Inherited from

LogVisualHeader.setDisplayMode


setDisplayString

setDisplayString(displayString): LogCurveVisualHeader

Sets the displayed value

Parameters

Name Type Description
displayStringstringthe displayed value

Returns

LogCurveVisualHeader

Inherited from

LogVisualHeader.setDisplayString


setDisplayValueTextStyle

setDisplayValueTextStyle(textStyle, merge?): LogCurveVisualHeader

Sets a current text style for displayed value

Parameters

Name Type Description
textStyleTypea new shape text style
Optional mergebooleantrue if you want to merge textStyle with existing attribute, false by default

Returns

LogCurveVisualHeader

this


setFillStyle

setFillStyle(fillStyle, merge?): LogCurveVisualHeader

Sets fill style

Parameters

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

Returns

LogCurveVisualHeader

Inherited from

LogVisualHeader.setFillStyle


setHighlightOptions

setHighlightOptions(options): LogCurveVisualHeader

Set highlight options

Parameters

Name Type Description
optionsHighlightOptionshighlight options

Returns

LogCurveVisualHeader

Inherited from

LogVisualHeader.setHighlightOptions


setHorizontalFlip

setHorizontalFlip(enable): LogCurveVisualHeader

Set horizontal flip of the representation

Parameters

Name Type Description
enablebooleanenable flip flag, if it is null [default] header try to use same property from associated visual

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setHorizontalFlip


setId

setId(id): LogCurveVisualHeader

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setId


setInline

setInline(inline): LogCurveVisualHeader

Sets inline mode

Parameters

Name Type Description
inlinebooleanmode to draw everything in one line

Returns

LogCurveVisualHeader

this


setIsPointingUp

setIsPointingUp(isPointingUp): LogCurveVisualHeader

Sets whether the text is always pointing up.

Parameters

Name Type Description
isPointingUpbooleanflag setting whether the text is always pointing up

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setIsPointingUp


setLayoutStyle

setLayoutStyle(layoutStyle, merge?): LogCurveVisualHeader

Specify desired layout style

Parameters

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

Returns

LogCurveVisualHeader

Inherited from

LogVisualHeader.setLayoutStyle


setLineStyle

setLineStyle(lineStyle, merge?): LogCurveVisualHeader

Sets a line style

Parameters

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

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setLineStyle


setLocalTransform

setLocalTransform(localTransform, force?): LogCurveVisualHeader

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

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): LogCurveVisualHeader

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

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setMarginsStyle


setMaxValueFormat

setMaxValueFormat(format): LogCurveVisualHeader

Sets the number formatter for the max value

Parameters

Name Type Description
formatNumberFormatnumber formatter

Returns

LogCurveVisualHeader

this


setMinValueFormat

setMinValueFormat(format): LogCurveVisualHeader

Sets the number formatter for the min value

Parameters

Name Type Description
formatNumberFormatnumber formatter

Returns

LogCurveVisualHeader

this


setModelLimits

setModelLimits(modelLimits): LogCurveVisualHeader

Sets model limits

Parameters

Name Type Description
modelLimitsRectdesired model Limits

Returns

LogCurveVisualHeader

Inherited from

LogVisualHeader.setModelLimits


setName

setName(name): LogCurveVisualHeader

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setName


setNotification

setNotification(notify, force?): LogCurveVisualHeader

set notification state

Parameters

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

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setNotification


setOpacity

setOpacity(opacity, blendMode?): LogCurveVisualHeader

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

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setOpacity


setPaddingStyle

setPaddingStyle(paddingStyle, merge?): LogCurveVisualHeader

Sets padding style

Parameters

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

Returns

LogCurveVisualHeader

Inherited from

LogVisualHeader.setPaddingStyle


setProperties

setProperties(properties?): LogCurveVisualHeader

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

LogCurveVisualHeader

this

Overrides

LogVisualHeader.setProperties


setProperty

setProperty(name, value): LogCurveVisualHeader

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setProperty


setRenderingFilter

setRenderingFilter(filter): LogCurveVisualHeader

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): LogCurveVisualHeader

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setResponsiveStyle


setScaleScrollStrategy

setScaleScrollStrategy(strategy?): LogCurveVisualHeader

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setScaleScrollStrategy


setSelectable

setSelectable(selectable): LogCurveVisualHeader

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

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setSelectable


setSilent

setSilent(bool): LogCurveVisualHeader

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setSilent


setSymbol

setSymbol(symbol): LogCurveVisualHeader

Sets symbol to be used

Parameters

Name Type Description
symbolSymbolShapesymbol to be used

Returns

LogCurveVisualHeader

this


setTag

setTag(tag): LogCurveVisualHeader

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

Parameters

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

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setTag


setTextStyle

setTextStyle(textStyle, merge?): LogCurveVisualHeader

Sets a current text style

Parameters

Name Type Description
textStyleTypea new shape text style
Optional mergebooleantrue if you want to merge textStyle with existing attribute, false by default

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setTextStyle


setVisible

setVisible(value): LogCurveVisualHeader

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setVisible


setVisual

setVisual(visual): LogCurveVisualHeader

Parameters

Name Type
visualLogCurve

Returns

LogCurveVisualHeader

Inherited from

LogVisualHeader.setVisual


setZIndex

setZIndex(value): LogCurveVisualHeader

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.setZIndex


shear

shear(shx, shy): LogCurveVisualHeader

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.shear


toString

toString(): string

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

Returns

string

A string representation

Inherited from

LogVisualHeader.toString


translate

translate(tx, ty): LogCurveVisualHeader

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.translate


unregisterAnimationStyle

unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

LogVisualHeader.unregisterAnimationStyle


updateGeometry

Protected updateGeometry(): LogCurveVisualHeader

Returns

LogCurveVisualHeader

Inherited from

LogVisualHeader.updateGeometry


updateSceneTransformation

updateSceneTransformation(): LogCurveVisualHeader

Update scene transformation

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.updateSceneTransformation


updateState

updateState(regions?, changes?): LogCurveVisualHeader

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

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.updateState


updateTimeStamp

Protected updateTimeStamp(): LogCurveVisualHeader

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

Returns

LogCurveVisualHeader

this

Inherited from

LogVisualHeader.updateTimeStamp


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

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

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

LogVisualHeader.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

LogVisualHeader.getClassName


getDesiredHeight

Static getDesiredHeight(header, width?): number

Return header desired content height with padding

Parameters

Name Type Description
headerLogVisualHeader<Node>header instance
Optional widthnumberavailable width, for header, to calculate required height

Returns

number

Inherited from

LogVisualHeader.getDesiredHeight


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

LogVisualHeader.isSceneGraphNotificationEnabled