Skip to content
Last updated

API / geotoolkit / welllog / LogAbstractVisual / LogAbstractVisual

Class: LogAbstractVisual

welllog.LogAbstractVisual.LogAbstractVisual

This represents a parent class of all well log visuals. LogVisuals are shapes that are considered by the WelllogJS toolkit as 'top level' shapes. The LogHeader and LogFooters for those visuals are created by the toolkit. <br> Some advanced features like the Widget's SelectionTool will ignore any shape that is not a Visual. This class defines the parent class that needs to be inherited from, to benefit from those features.<br> Most common WellLog shapes already inherit from this class, like LogCurve, LogTrack, etc.

Hierarchy

Table of contents

Constructors
  • [new LogAbstractVisual(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.welllog.logabstractvisual.logabstractvisual.md#new logabstractvisual(options))
Methods
addCssClassaddInvalidateHandlerapplyOpacity
applyResponsiveStylecheckCollisionclone
connectStylecopyConstructordisconnectStyle
disposeenableEventPropagationexecute
filtergetAnimationStylegetBaseName
getBoundsgetClassNamegetClipStyle
getContentsTransformgetCssgetCssClass
getCssClassesgetCssTransformgetDataLimits
getDescriptiongetHeadergetHeaders
getIdgetInvalidateMethodgetLineStyle
getLocalTransformgetMarginsStylegetMicroPositionLeft
getMicroPositionRightgetMicroPositionTransformationgetModelLimits
getNamegetOpacitygetOpacityBlendMode
getParentgetPropertiesgetProperty
getPropertyKeysgetRenderingFiltergetResponsiveStyle
getRootgetScaleScrollStrategygetSceneTransform
getTaggetTrackgetVisible
getWorldTransformgetZIndexhasCssClass
hasEventListenerinvalidateinvalidateParent
isAutoBoundsisDisposedisEventPropagationEnabled
isHorizontalFlipisNotificationEnabledisSelectable
isSilentnotifyoff
ononHeaderSetonMicroPositionChanged
onParentChangedonVisibilityChangedpostRendering
preRenderingregisterAnimationStyleremoveCssClass
removeInvalidateHandlerrenderrenderAsync
renderContentrotatescale
setAnimationStylesetAutoBoundssetBaseName
setBoundssetClipStylesetCss
setCssClasssetCssTransformsetDescription
setHeadersetIdsetLineStyle
setLocalTransformsetMarginsStylesetMicroPosition
setNamesetNotificationsetOpacity
setParentsetPropertiessetProperty
setRenderingFiltersetResponsiveStylesetScaleScrollStrategy
setSelectablesetSilentsetTag
setVisiblesetZIndexshear
toStringtranslateunregisterAnimationStyle
updateSceneTransformationupdateStateupdateTimeStamp
enableSceneGraphNotificationfindParentgetClassName
isSceneGraphNotificationEnabled
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 (&#x27;nonzero&#x27; 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
descriptionstringThe description
idstring | numberId of the node, its a unique identifier
linestylestringLinestyle
linestyleLineStyleLinestyle
linestyle-colorstringColor in CSS form
linestyle-fillstringOptional fill style to be used to fill lines generated with this style
linestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
linestyle-fill-colorstringColor in CSS form
linestyle-fill-evenoddmodebooleanEven-odd fill mode
linestyle-fill-fillpatternPatternPattern
linestyle-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
linestyle-fill-fillpattern-patternnamestringName of this pattern for indexing
linestyle-fill-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
linestyle-fill-foregroundstringForeground color
linestyle-fill-patternPatternPattern
linestyle-linecapCapStyleThe line cap style
linestyle-linedashoffsetnumberLine dash offset of dashed line
linestyle-linejoinJoinStyleThe line join style
linestyle-pixelsnapmodebooleanPixel Snap Mode, default(
linestyle-scalablebooleanTrue if width should depend on transformation
linestyle-unitstringOptional unit for the width
linestyle-widthnumber | stringThe line thickness
localtransformTransformationLocal transformation
localtransform-dxnumberX axis translation
localtransform-dynumberY axis translation
localtransform-xxnumberX scale
localtransform-xynumberXy skew
localtransform-yxnumberYx skew
localtransform-yynumberY scale
marginsnumber | stringIt has properties for specifying the margins for each side
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
scalescrollstrategy-enabledbooleanEnable flag
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 &#x27;none&#x27;
transformTransformationAdditional CSS transformation applied to node or &#x27;none&#x27;
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
z-indexnumberDefine node z-index

Contents

Constructors

new LogAbstractVisual(options)

• Protected new LogAbstractVisual(options?)

Constructor

Parameters

Name Type Description
Optional optionsOptionsAn object containing the properties to set

Overrides

AbstractNode.constructor

Methods

addCssClass

▸ addCssClass(cssclass): LogAbstractVisual

Adds new css class to node

Parameters

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

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.addCssClass


addInvalidateHandler

▸ addInvalidateHandler(handler): LogAbstractVisual

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.addInvalidateHandler


applyOpacity

▸ Protected applyOpacity(context): LogAbstractVisual

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

LogAbstractVisual

this

Inherited from

AbstractNode.applyOpacity


applyResponsiveStyle

▸ Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

AbstractNode.applyResponsiveStyle


checkCollision

▸ checkCollision(context): boolean

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

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

Overrides

AbstractNode.checkCollision


clone

▸ clone(): Node

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

Returns

Node

clone

Inherited from

AbstractNode.clone


connectStyle

▸ connectStyle(style, type, callback): LogAbstractVisual

Connects style.<br> <br> This convenience method subscribes a listener to given style for the specified type.<br> 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&gt;function to be called

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.connectStyle


copyConstructor

▸ Protected copyConstructor(src, deepCopy): LogAbstractVisual

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

Parameters

Name Type Description
srcLogAbstractVisualSource to copy from
deepCopybooleandeep copy

Returns

LogAbstractVisual

this

Overrides

AbstractNode.copyConstructor


disconnectStyle

▸ disconnectStyle(style, type, callback): LogAbstractVisual

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

Parameters

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

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.disconnectStyle


dispose

▸ dispose(): void

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

Returns

void

Inherited from

AbstractNode.dispose


enableEventPropagation

▸ enableEventPropagation(enable): LogAbstractVisual

Enable event propagation from the node hierarchy from bottom to top <p> 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. </p>

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) =&gt; {
// Got notifications from all children of parent group
});
childGroup.invalidate();

Parameters

Name Type Description
enablebooleanenable

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.enableEventPropagation


execute

▸ execute(delegate): LogAbstractVisual

Executes delegate and return the result. It allows us to keep all initialization calls in one place, <br> 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: LogAbstractVisual) => voidFunction to execute

Returns

LogAbstractVisual

The result if any or this

Inherited from

AbstractNode.execute

▸ execute<T&gt;(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: LogAbstractVisual) => T

Returns

T

Inherited from

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

AbstractNode.filter


getAnimationStyle

▸ getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

AbstractNode.getAnimationStyle


getBaseName

▸ getBaseName(): string

Returns the base name

Returns

string

The base name


getBounds

▸ getBounds(): Rect

Returns bounds in the parent coordinates

Returns

Rect


getClassName

▸ getClassName(): string

Returns

string

Inherited from

AbstractNode.getClassName


getClipStyle

▸ getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

AbstractNode.getClipStyle


getContentsTransform

▸ getContentsTransform(): Transformation

Retrieves the world transformation of the spatial

Returns

Transformation


getCss

▸ getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

AbstractNode.getCss


getCssClass

▸ getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

AbstractNode.getCssClass


getCssClasses

▸ getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

AbstractNode.getCssClasses


getCssTransform

▸ getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

AbstractNode.getCssTransform


getDataLimits

▸ getDataLimits(fullLimits?): Rect

Return meaning data limits

Parameters

Name Type Description
Optional fullLimitsbooleandefault value is false

Returns

Rect


getDescription

▸ getDescription(): string

Gets the description

Returns

string

The description


getHeader

▸ getHeader(name): LogVisualHeader<Node&gt;

Return the header registered by the name

Parameters

Name Type Description
namestringheader name

Returns

LogVisualHeader<Node&gt;

header


getHeaders

▸ getHeaders(): Record<string, LogVisualHeader<Node&gt;&gt;

Return an object that contains all headers registered with the visual

Returns

Record<string, LogVisualHeader<Node&gt;&gt;

headers


getId

▸ getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

AbstractNode.getId


getInvalidateMethod

▸ Protected getInvalidateMethod(): AttributeCallback<EventDispatcher&gt;

Gets invalidate method

Returns

AttributeCallback<EventDispatcher&gt;

method to invalidate this object

Inherited from

AbstractNode.getInvalidateMethod


getLineStyle

▸ getLineStyle(): LineStyle

Returns line style

Returns

LineStyle


getLocalTransform

▸ getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

AbstractNode.getLocalTransform


getMarginsStyle

▸ getMarginsStyle(): SpaceStyle<string | number&gt;

Return margins style

Returns

SpaceStyle<string | number&gt;

Inherited from

AbstractNode.getMarginsStyle


getMicroPositionLeft

▸ getMicroPositionLeft(): number

Returns micro position left

Returns

number


getMicroPositionRight

▸ getMicroPositionRight(): number

Returns micro position right

Returns

number


getMicroPositionTransformation

▸ Protected getMicroPositionTransformation(): Transformation

Returns micro position transformation

Returns

Transformation

micro position transformation


getModelLimits

▸ getModelLimits(): Rect

Returns parent model limits

Returns

Rect


getName

▸ getName(): string

Returns the node name

Returns

string

The node name

Inherited from

AbstractNode.getName


getOpacity

▸ getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

AbstractNode.getOpacity


getOpacityBlendMode

▸ getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

AbstractNode.getOpacityBlendMode


getParent

▸ getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

AbstractNode.getParent


getProperties

▸ getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

An object containing the properties

Overrides

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

AbstractNode.getProperty


getPropertyKeys

▸ getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

AbstractNode.getPropertyKeys


getRenderingFilter

▸ getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

AbstractNode.getRenderingFilter


getResponsiveStyle

▸ getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

AbstractNode.getResponsiveStyle


getRoot

▸ getRoot(): Node

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

Returns

Node

the root node

Inherited from

AbstractNode.getRoot


getScaleScrollStrategy

▸ getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

AbstractNode.getScaleScrollStrategy


getSceneTransform

▸ getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

AbstractNode.getSceneTransform


getTag

▸ getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

AbstractNode.getTag


getTrack

▸ getTrack(): ITrack

Returns parent track if LogTrack

Returns

ITrack


getVisible

▸ getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

AbstractNode.getVisible


getWorldTransform

▸ getWorldTransform(): Transformation

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

Returns

Transformation

Overrides

AbstractNode.getWorldTransform


getZIndex

▸ getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

AbstractNode.getZIndex


hasCssClass

▸ hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

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

AbstractNode.hasEventListener


invalidate

▸ invalidate(bounds?, force?): LogAbstractVisual

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

LogAbstractVisual

this

Inherited from

AbstractNode.invalidate


invalidateParent

▸ invalidateParent(bounds?, force?): LogAbstractVisual

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

LogAbstractVisual

this

Overrides

AbstractNode.invalidateParent


isAutoBounds

▸ isAutoBounds(): boolean

Returns auto bounds value

Returns

boolean


isDisposed

▸ isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

AbstractNode.isDisposed


isEventPropagationEnabled

▸ isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

AbstractNode.isEventPropagationEnabled


isHorizontalFlip

▸ isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

horizontal flip


isNotificationEnabled

▸ isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

AbstractNode.isNotificationEnabled


isSelectable

▸ isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

AbstractNode.isSelectable


isSilent

▸ isSilent(): boolean

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

Returns

boolean

Inherited from

AbstractNode.isSilent


notify

▸ notify<E&gt;(type, source, args?): LogAbstractVisual

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

LogAbstractVisual

this

Overrides

AbstractNode.notify


off

▸ off<E&gt;(type?, callback?): LogAbstractVisual

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

Returns

LogAbstractVisual

this

Overrides

AbstractNode.off


on

▸ on<E&gt;(type, callback): LogAbstractVisual

Attach listener on event that will be called whenever the specified event is delivered to the target <p> If the callback function is already in the list of event listeners for this target, the function is not added a second time. </p> <p> 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. </p>

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event or property
callback(eventType: E, sender: LogAbstractVisual, args: EventMap[E]) => voidto be called

Returns

LogAbstractVisual

this

Overrides

AbstractNode.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&gt;the header instance
Optional silentbooleansilent node to avoid sending events that header is created

Returns

void


onMicroPositionChanged

▸ Protected onMicroPositionChanged(): LogAbstractVisual

calls when microPosition has been changed

Returns

LogAbstractVisual

this


onParentChanged

▸ Protected onParentChanged(node): LogAbstractVisual

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.onParentChanged


onVisibilityChanged

▸ Protected onVisibilityChanged(): void

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

Returns

void

Inherited from

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

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

AbstractNode.preRendering


registerAnimationStyle

▸ registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

AbstractNode.registerAnimationStyle


removeCssClass

▸ removeCssClass(cssclass): LogAbstractVisual

Removes css class from node

Parameters

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

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.removeCssClass


removeInvalidateHandler

▸ removeInvalidateHandler(handler): LogAbstractVisual

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.removeInvalidateHandler


render

▸ render(context): void

Renders node

Parameters

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

Returns

void

Overrides

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

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


rotate

▸ rotate(theta, x, y): LogAbstractVisual

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

LogAbstractVisual

this

Inherited from

AbstractNode.rotate


scale

▸ scale(xx, yy): LogAbstractVisual

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.scale


setAnimationStyle

▸ setAnimationStyle(animationStyle): LogAbstractVisual

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

LogAbstractVisual

Inherited from

AbstractNode.setAnimationStyle


setAutoBounds

▸ setAutoBounds(enable): LogAbstractVisual

Enables or disables auto bounds. If auto bounds is enabled then it equals to parent model limits

Parameters

Name Type Description
enablebooleanEnables or disables auto bounds

Returns

LogAbstractVisual

this


setBaseName

▸ setBaseName(name): LogAbstractVisual

Sets base name of the visual

Parameters

Name Type Description
namestringThe base name

Returns

LogAbstractVisual

this


setBounds

▸ setBounds(bounds): LogAbstractVisual

Sets bounds of the visual in the parent coordinates and sets up auto bounds to false

Parameters

Name Type Description
boundsRectthe rectangle specifying position of the visual in the track.

Returns

LogAbstractVisual

this


setClipStyle

▸ setClipStyle(style): LogAbstractVisual

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.setClipStyle


setCss

▸ setCss(style, merge?): LogAbstractVisual

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

LogAbstractVisual

this

Inherited from

AbstractNode.setCss


setCssClass

▸ setCssClass(name): LogAbstractVisual

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

LogAbstractVisual

this

Inherited from

AbstractNode.setCssClass


setCssTransform

▸ setCssTransform(transform): LogAbstractVisual

Set CSS transformation

Parameters

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

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.setCssTransform


setDescription

▸ setDescription(description): LogAbstractVisual

Sets the description

Parameters

Name Type Description
descriptionstringThe visual description

Returns

LogAbstractVisual

this


setHeader

▸ setHeader(name, headerInstance, silent?): LogAbstractVisual

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&gt;the header instance
Optional silentbooleansilent node to avoid sending events that header is created

Returns

LogAbstractVisual

this


setId

▸ setId(id): LogAbstractVisual

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.setId


setLineStyle

▸ setLineStyle(lineStyle, merge?): LogAbstractVisual

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

LogAbstractVisual

this


setLocalTransform

▸ setLocalTransform(localTransform, force?): LogAbstractVisual

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

LogAbstractVisual

this

Inherited from

AbstractNode.setLocalTransform


setMarginsStyle

▸ setMarginsStyle(margins, merge?): LogAbstractVisual

Sets margins style

Parameters

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

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.setMarginsStyle


setMicroPosition

▸ setMicroPosition(left, right): LogAbstractVisual

Sets micro position (0 - 1). It allows application code to display the visual in a subarea of the track.<br> 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

LogAbstractVisual

this


setName

▸ setName(name): LogAbstractVisual

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.setName


setNotification

▸ setNotification(notify, force?): LogAbstractVisual

set notification state

Parameters

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

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.setNotification


setOpacity

▸ setOpacity(opacity, blendMode?): LogAbstractVisual

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

LogAbstractVisual

this

Inherited from

AbstractNode.setOpacity


setParent

▸ setParent(parent): LogAbstractVisual

Sets parent node. Don't call this method directly. It is internal method.

Parameters

Name Type Description
parentNodea parent node

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.setParent


setProperties

▸ setProperties(properties?): LogAbstractVisual

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

LogAbstractVisual

this

Overrides

AbstractNode.setProperties


setProperty

▸ setProperty(name, value): LogAbstractVisual

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.setProperty


setRenderingFilter

▸ setRenderingFilter(filter): LogAbstractVisual

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.setRenderingFilter


setResponsiveStyle

▸ setResponsiveStyle(style): LogAbstractVisual

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.setResponsiveStyle


setScaleScrollStrategy

▸ setScaleScrollStrategy(strategy?): LogAbstractVisual

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.setScaleScrollStrategy


setSelectable

▸ setSelectable(selectable): LogAbstractVisual

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

LogAbstractVisual

this

Inherited from

AbstractNode.setSelectable


setSilent

▸ setSilent(bool): LogAbstractVisual

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.setSilent


setTag

▸ setTag(tag): LogAbstractVisual

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

Parameters

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

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.setTag


setVisible

▸ setVisible(value): LogAbstractVisual

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.setVisible


setZIndex

▸ setZIndex(value): LogAbstractVisual

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.setZIndex


shear

▸ shear(shx, shy): LogAbstractVisual

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.shear


toString

▸ toString(): string

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

Returns

string

A string representation

Inherited from

AbstractNode.toString


translate

▸ translate(tx, ty): LogAbstractVisual

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.translate


unregisterAnimationStyle

▸ unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

AbstractNode.unregisterAnimationStyle


updateSceneTransformation

▸ updateSceneTransformation(): LogAbstractVisual

Update scene transformation

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.updateSceneTransformation


updateState

▸ updateState(regions?, changes?): LogAbstractVisual

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

LogAbstractVisual

this

Inherited from

AbstractNode.updateState


updateTimeStamp

▸ Protected updateTimeStamp(): LogAbstractVisual

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

Returns

LogAbstractVisual

this

Inherited from

AbstractNode.updateTimeStamp


enableSceneGraphNotification

▸ Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

AbstractNode.enableSceneGraphNotification


findParent

▸ Static findParent<T&gt;(node, classType, filter?): InstanceType<T&gt;

Find root of the node with specified type

Type parameters

NameType
Textends Constructor<any&gt;

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&gt;

Inherited from

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

AbstractNode.findParent


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

AbstractNode.getClassName


isSceneGraphNotificationEnabled

▸ Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

AbstractNode.isSceneGraphNotificationEnabled