API / geotoolkit / welllog / LogLithology / LogLithology

Class: LogLithology

welllog.LogLithology.LogLithology

Welllog Lithology is a visual that fills a pattern between a set of depth ranges and two reference lines defined by LogPointSet
Users can define their own patterns for lithology fills.

Example

// This example shows how to create discontinuous range in lithology
import {LogLithology} from '@int/geotoolkit/welllog/LogLithology';
import {TrackType} from '@int/geotoolkit/welllog/TrackType';
import {PatternFactory} from '@int/geotoolkit/attributes/PatternFactory';
import {FillStyle} from '@int/geotoolkit/attributes/FillStyle';
const linearTrack = widget.addTrack(TrackType.LinearTrack);
const depths = [128, 200, NaN, 320, 360];

const headerTitles = ['chert', 'lime'];

const fillStyles = [
new FillStyle('green', PatternFactory.getInstance().getPattern(headerTitles[0]), 'lightgreen'),
new FillStyle('yellow', PatternFactory.getInstance().getPattern(headerTitles[1]))
];

const lithology = new LogLithology({
'depths': depths,
'fillstyles': fillStyles,
'titles': headerTitles
});
linearTrack.addChild(lithology);

Hierarchy

Table of contents

Constructors
Methods
addCssClassaddInvalidateHandlerapplyOpacity
applyResponsiveStylecheckCollisionclone
connectStylecopyConstructordisconnectStyle
disposedrawBackgroundenableEventPropagation
executefiltergetAnimationStyle
getBaseNamegetBorderModegetBounds
getClassNamegetClipStylegetContentsTransform
getCssgetCssClassgetCssClasses
getCssTransformgetCurve1getCurve2
getDataLimitsgetDepthsgetDescription
getEllipsisOptionsgetFillStylegetFillStyles
getFillTypegetHeadergetHeaders
getIdgetIdsgetInvalidateMethod
getLabelFillModegetLabelFillStylegetLeftFillStyle
getLineStylegetLineStylesgetLineTypes
getLocalTransformgetMarginsStylegetMicroPositionLeft
getMicroPositionRightgetMicroPositionTransformationgetMinHeightForLabel
getModelLimitsgetNamegetNameOrientation
getNameVisiblegetNamesgetNegativeFillStyle
getOpacitygetOpacityBlendModegetParent
getPositiveFillStylegetPropertiesgetProperty
getPropertyKeysgetRenderingFiltergetResponsiveStyle
getRightFillStylegetRootgetScaleScrollStrategy
getScaledDatagetSceneTransformgetShowEllipsis
getTaggetTextgetTextExpand
getTextPositiongetTextSizeModegetTextStyle
getTextStylesgetTitlesgetTrack
getVisiblegetWorldTransformgetZIndex
hasCssClasshasEventListenerhitTest
invalidateinvalidateParentisAutoBounds
isDisposedisEventPropagationEnabledisHorizontalFlip
isNotificationEnabledisSelectableisSilent
notifyoffon
onHeaderSetonMicroPositionChangedonParentChanged
onVisibilityChangedpostRenderingpreRendering
registerAnimationStyleremoveCssClassremoveInvalidateHandler
renderrenderAsyncrenderContent
renderDepthRangerenderInternalrotate
scalesetAnimationStylesetAutoBounds
setBaseNamesetBorderModesetBounds
setClipStylesetCsssetCssClass
setCssTransformsetCurve1setCurve2
setDepthssetDescriptionsetEllipsisOptions
setFillStylesetFillStylessetFillType
setHeadersetIdsetIds
setLabelFillModesetLabelFillStylesetLeftFillStyle
setLineStylesetLineStylessetLineTypes
setLocalTransformsetMarginsStylesetMicroPosition
setMinHeightForLabelsetNamesetNameOrientation
setNameVisiblesetNamessetNegativeFillStyle
setNotificationsetOpacitysetPositiveFillStyle
setPropertiessetPropertysetRenderingFilter
setResponsiveStylesetRightFillStylesetScaleScrollStrategy
setSelectablesetShowEllipsissetSilent
setTagsetTextsetTextExpand
setTextPositionsetTextSizeModesetTextStyle
setTextStylessetTitlessetVisible
setZIndexsheartoString
translateunregisterAnimationStyleupdateSceneTransformation
updateStateupdateTimeStampenableSceneGraphNotification
findParentgetClassNamegetShortFillType
isSceneGraphNotificationEnabled
Css Properties
Name Type Description
autoboundsbooleanEnables or disables auto bounds
basenamestringThe base name
bordermodeBorderModeMode for how to draw border around lithology
boundsRectThe rectangle specifying position of the visual in the track. If set, autobounds will be switched off
bounds-heightnumberHeight
bounds-readonlybooleanReadonly
bounds-widthnumberWidth
bounds-xnumberLeft
bounds-ynumberTop
clipstyleClipStyleClipping style
clipstyle-evenoddbooleanTrue if evenodd mode is on ('nonzero' mode otherwise)
clipstyle-geometryGraphicsPathClipping geometry
clipstyle-geometry-boundsRectBounds
clipstyleGraphicsPathClipping style
cssclassstringThe css class name of this node
csscursorstringCSS cursor associated with node
cssstylestringCSS style to be applied to inserted elements
curve1numberLeft point set
curve1LogCurveLeft point set
curve1-autoboundsbooleanEnables or disables auto bounds
curve1-autoupdatebooleanAutomatic update from datasource. If true, curve listens to data changes from source
curve1-barlinestylestringValue-bar line style
curve1-barlinestyleLineStyleValue-bar line style
curve1-barlinestyle-colorstringColor in CSS form
curve1-barlinestyle-fillstringOptional fill style to be used to fill lines generated with this style
curve1-barlinestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
curve1-barlinestyle-fill-colorstringColor in CSS form
curve1-barlinestyle-fill-evenoddmodebooleanEven-odd fill mode
curve1-barlinestyle-fill-fillpatternPatternPattern
curve1-barlinestyle-fill-fillpattern-containernamestringAn optional container name, which creates an image pattern. This parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself
curve1-barlinestyle-fill-fillpattern-patternnamestringName of this pattern for indexing
curve1-barlinestyle-fill-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
curve1-barlinestyle-fill-foregroundstringForeground color
curve1-barlinestyle-fill-patternPatternPattern
curve1-barlinestyle-linecapCapStyleThe line cap style
curve1-barlinestyle-linedashoffsetnumberLine dash offset of dashed line
curve1-barlinestyle-linejoinJoinStyleThe line join style
curve1-barlinestyle-pixelsnapmodebooleanPixel Snap Mode, default(
curve1-barlinestyle-scalablebooleanTrue if width should depend on transformation
curve1-barlinestyle-unitstringOptional unit for the width
curve1-barlinestyle-widthnumber | stringThe line thickness
curve1-basenamestringThe base name
curve1-boundsRectThe rectangle specifying position of the visual in the track. If set, autobounds will be switched off
curve1-centeronzeroonnegativeminbooleanFlag set to center the limits
curve1-cliplimitsmaxnumberMax clipping limits
curve1-cliplimitsminnumberMin clipping limits
curve1-clippingbooleanFlag to enable clipping
curve1-clipstyleClipStyleClipping style
curve1-clipstyleGraphicsPathClipping style
curve1-cssclassstringThe css class name of this node
curve1-csscursorstringCSS cursor associated with node
curve1-cssstylestringCSS style to be applied to inserted elements
curve1-descriptionstringThe description
curve1-displayunitstringDisplay unit
curve1-gradientlinestyleLogGradientStyleGradient line style
curve1-gradientlinestyle-colorstringColor in CSS form
curve1-gradientlinestyle-colorproviderstringColor provider
curve1-gradientlinestyle-colorproviderColorProviderColor provider
curve1-gradientlinestyle-colorprovider-maxnumber
curve1-gradientlinestyle-colorprovider-minnumber
curve1-gradientlinestyle-colorprovider-scaleKnownScales
curve1-gradientlinestyle-colorrangeRangeColor range (min and max value)
curve1-gradientlinestyle-colorrange-highnumberUpper range boundary
curve1-gradientlinestyle-colorrange-lownumberLower range boundary
curve1-gradientlinestyle-colorrange-maxnumber
curve1-gradientlinestyle-colorrange-minnumber
curve1-gradientlinestyle-datasourcestringLog data id
curve1-gradientlinestyle-evenoddmodebooleanEven-odd fill mode
curve1-gradientlinestyle-fillpatternPatternPattern
curve1-gradientlinestyle-foregroundstringForeground color
curve1-gradientlinestyle-normalizebooleanNormalize data value to color space, default true
curve1-gradientlinestyle-patternPatternPattern
curve1-gradientlinestyle-renderbackgroundbooleanExtra style parameter for background fill
curve1-gradientlinestyle-renderforegroundbooleanExtra style parameter for foreground fill. Normally to render patterns
curve1-gradientlinestyle-transparencynumberValue for alpha chanel
curve1-hideoverlappedvaluesbooleanHide overlapped value
curve1-horizontalflipbooleanHorizontal flip
curve1-idstring | numberId of the node, its a unique identifier
curve1-interpolationedgeInterpolationEdgeEdge values interpolation type in case of properties.limitstype==LimitsType.Manual
curve1-interpolationtypeInterpolationTypeInterpolation type
curve1-limitsmaxnumberMax limits value in case of data.limitstype==LimitsType.Manual
curve1-limitsminnumberMin limits value in case of data.limitstype==LimitsType.Manual
curve1-limitstypeLimitsTypeLimits type
curve1-linestylestringLinestyle
curve1-linestyleLineStyleLinestyle
curve1-localtransformTransformationLocal transformation
curve1-localtransform-dxnumberX axis translation
curve1-localtransform-dynumberY axis translation
curve1-localtransform-xxnumberX scale
curve1-localtransform-xynumberXy skew
curve1-localtransform-yxnumberYx skew
curve1-localtransform-yynumberY scale
curve1-marginsnumber | stringIt has properties for specifying the margins for each side
curve1-maxwrapsnumberMaximum count of wraps (by default 5)
curve1-microposleftnumberLeft micro position
curve1-microposrightnumberRight micro position
curve1-namestringName of the node. It is often used for debugging purposes or to simplify queries
curve1-nullvaluesymbolSymbolShapeNull value symbol
curve1-nullvaluesymbol-alignmentAnchorTypeAlignment according to the anchor point
curve1-nullvaluesymbol-alignmentAnchorTypeAnchor type of symbol
curve1-nullvaluesymbol-axnumberAnchor x position
curve1-nullvaluesymbol-aynumberAnchor y position
curve1-nullvaluesymbol-cachebooleanSet it to true if you want to cache complex geometry to raster
curve1-nullvaluesymbol-clipstyleClipStyleClipping style
curve1-nullvaluesymbol-clipstyleGraphicsPathClipping style
curve1-nullvaluesymbol-cssclassstringThe css class name of this node
curve1-nullvaluesymbol-csscursorstringCSS cursor associated with node
curve1-nullvaluesymbol-cssstylestringCSS style to be applied to inserted elements
curve1-nullvaluesymbol-fillstylestringStyle applied on fill
curve1-nullvaluesymbol-fillstyleFillStyleStyle applied on fill
curve1-nullvaluesymbol-heightnumberShape height
curve1-nullvaluesymbol-idstring | numberId of the node, its a unique identifier
curve1-nullvaluesymbol-ispointingupbooleanDefines whether the shape is always pointing up
curve1-nullvaluesymbol-layoutstyleLayoutStyleLayout style to specify how to lay out shape
curve1-nullvaluesymbol-layoutstyle-constraintSizeConstraintLayout constrains
curve1-nullvaluesymbol-layoutstyle-flexgrownumberNumber specifying how much the item will grow relative to the rest of the items inside the same container
curve1-nullvaluesymbol-layoutstyle-flexshrinknumberNumber specifying how much the item will shrink relative to the rest of the items inside the same container
curve1-nullvaluesymbol-layoutstyle-floatstringFloat position
curve1-nullvaluesymbol-layoutstyle-positionstringLayout position
curve1-nullvaluesymbol-layoutstyle-sizenumber | stringLayout size
curve1-nullvaluesymbol-linestylestringStyle applied on outline
curve1-nullvaluesymbol-linestyleLineStyleStyle applied on outline
curve1-nullvaluesymbol-localtransformTransformationLocal transformation
curve1-nullvaluesymbol-marginsnumber | stringIt has properties for specifying the margins for each side
curve1-nullvaluesymbol-maxdimensionDimensionMaximum size for rendering
curve1-nullvaluesymbol-maxdimension-heightnumberHeight of dimension
curve1-nullvaluesymbol-maxdimension-widthnumberWidth of dimension or properties
curve1-nullvaluesymbol-mindimensionDimensionMinimum size for rendering
curve1-nullvaluesymbol-namestringName of the node. It is often used for debugging purposes or to simplify queries
curve1-nullvaluesymbol-opacitynumberNode opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context
curve1-nullvaluesymbol-opacityblendmodeBlendModeNode opacity mode to blend it
curve1-nullvaluesymbol-painterstringA function with has parameters: symbol, box, context
curve1-nullvaluesymbol-painterpropertiesanySymbol's painter's properties
curve1-nullvaluesymbol-preserveaspectratiobooleanPreserve aspect ratio of the anchored shape
curve1-nullvaluesymbol-preservereadingorientationbooleanPreserve reading orientation for local transform
curve1-nullvaluesymbol-preserverightanglebooleanPreserve right angle for local transformation
curve1-nullvaluesymbol-rotationanglenumberRotation angle at anchor
curve1-nullvaluesymbol-scalescrollstrategyScaleScrollStrategyScale scroll strategy
curve1-nullvaluesymbol-scalescrollstrategy-enabledbooleanEnable flag
curve1-nullvaluesymbol-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
curve1-nullvaluesymbol-sizeisindevicespacebooleanIs coordinate in device space
curve1-nullvaluesymbol-taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
curve1-nullvaluesymbol-transformstringAdditional CSS transformation applied to node or 'none'
curve1-nullvaluesymbol-transformTransformationAdditional CSS transformation applied to node or 'none'
curve1-nullvaluesymbol-useminmaxdimensionsbooleanUse the min max dimensions to limit visual size
curve1-nullvaluesymbol-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
curve1-nullvaluesymbol-widthnumberShape width
curve1-nullvaluesymbol-z-indexnumberDefine node z-index
curve1-nullvaluesymbolvisiblebooleanFlag to change visibility of null value symbol
curve1-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
curve1-opacityblendmodeBlendModeNode opacity mode to blend it
curve1-optimizationbooleanOptimization flags
curve1-outofrangevaluesbooleanOutofrangevalues flag
curve1-scalescrollstrategyScaleScrollStrategyScale scroll strategy
curve1-scaletypeScaleTypeValues scale type
curve1-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
curve1-symbolSymbolShapeSymbol to be used
curve1-symboldecimationdistancenumberSymbol decimation distance
curve1-symboldecimationstepnumberSymbol decimation step or level
curve1-symbolgapnumberSymbol gap
curve1-symbolgapDimensionSymbol gap
curve1-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
curve1-textautoalignmentbooleanAutomatic text alignment for text values, which intersects border of the track
curve1-textautoalignmentoffsetnumberText offset from anchor for automatic text alignment
curve1-textautoalignmentoffsetPointText offset from anchor for automatic text alignment
curve1-textautoalignmentoffset-xnumberX coordinate
curve1-textautoalignmentoffset-ynumberY coordinate
curve1-textdecimationstepnumberText decimation step
curve1-textreferenceTextReferenceType of the text to be put on the track
curve1-textstylestringText style
curve1-textstyleTextStyleText style
curve1-textstyle-alignmentAlignmentStyleAlignment
curve1-textstyle-autosizebooleanAuto font size on high definition display
curve1-textstyle-backgroundstringBackground style
curve1-textstyle-backgroundFillStyleBackground style
curve1-textstyle-baselineBaseLineStyleBase line
curve1-textstyle-colorstringColor in CSS form
curve1-textstyle-fillFillStyleText fill style
curve1-textstyle-fontstringFont see
curve1-textstyle-fonturlstringThe place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword
curve1-textstyle-lineheightstring | numberLine height
curve1-textstyle-multilinebooleanAllow multi-line text
curve1-textstyle-outlinestringOutline style
curve1-textstyle-outlineLineStyleOutline style
curve1-textstyle-overflowwrapOverflowWrapStyleOverflow wrap
curve1-textstyle-strikethroughstringStrikethrough style
curve1-textstyle-strikethroughLineStyleStrikethrough style
curve1-textstyle-textoverflowTextOverflowStyleText overflow
curve1-textstyle-underlinestringUnderline style
curve1-textstyle-underlineLineStyleUnderline style
curve1-textstyle-underlineoffsetstring | numberUnderline offset distance
curve1-textstyle-whitespaceWhiteSpaceStyleWhite space
curve1-textstyle-wordbreakWordBreakStyleWord break
curve1-transformstringAdditional CSS transformation applied to node or 'none'
curve1-transformTransformationAdditional CSS transformation applied to node or 'none'
curve1-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
curve1-wrappingbooleanFlag to enable wrapping based on if you want to see the clipped part of the track or not
curve1-z-indexnumberDefine node z-index
curve1LogReferenceLineLeft point set
curve1-autoboundsbooleanEnables or disables auto bounds
curve1-basenamestringThe base name
curve1-boundsRectThe rectangle specifying position of the visual in the track. If set, autobounds will be switched off
curve1-clipstyleClipStyleClipping style
curve1-clipstyleGraphicsPathClipping style
curve1-cssclassstringThe css class name of this node
curve1-csscursorstringCSS cursor associated with node
curve1-cssstylestringCSS style to be applied to inserted elements
curve1-curveLogCurveReference curve
curve1-descriptionstringThe description
curve1-idstring | numberId of the node, its a unique identifier
curve1-levelnumberCurrent level of wrap interpolation
curve1-linestylestringLinestyle
curve1-linestyleLineStyleLinestyle
curve1-localtransformTransformationLocal transformation
curve1-marginsnumber | stringIt has properties for specifying the margins for each side
curve1-microposleftnumberLeft micro position
curve1-microposrightnumberRight micro position
curve1-namestringName of the node. It is often used for debugging purposes or to simplify queries
curve1-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
curve1-opacityblendmodeBlendModeNode opacity mode to blend it
curve1-scalescrollstrategyScaleScrollStrategyScale scroll strategy
curve1-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
curve1-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
curve1-transformstringAdditional CSS transformation applied to node or 'none'
curve1-transformTransformationAdditional CSS transformation applied to node or 'none'
curve1-typeReferenceTypeReference model type
curve1-valuenumberCurrent value in track coordinates. by default from 0 to 1
curve1-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
curve1-z-indexnumberDefine node z-index
curve2numberRight point set
curve2LogCurveRight point set
curve2LogReferenceLineRight point set
descriptionstringThe description
fillstylestringFillstyle
fillstyleFillStyleFillstyle
filltypeFillTypeFilltype
idstring | numberId of the node, its a unique identifier
labelfillmodeLabelFillModeMode for how to back the name text
labelfillstylestringLabel fill style used if mode is set to SINGLECOLOR
labelfillstyleFillStyleLabel fill style used if mode is set to SINGLECOLOR
leftnumberLeft points set or number between 0 and 1
leftLogCurveLeft points set or number between 0 and 1
leftLogReferenceLineLeft points set or number between 0 and 1
leftfillstylestringFillstyle for left part
leftfillstyleFillStyleFillstyle for left part
linestylestringLinestyle
linestyleLineStyleLinestyle
localtransformTransformationLocal transformation
marginsnumber | stringIt has properties for specifying the margins for each side
microposleftnumberLeft micro position
microposrightnumberRight micro position
minheightforlabelnumberMin height where display of label can be turned off
namestringName of the node. It is often used for debugging purposes or to simplify queries
nameorientationNameOrientationLithology name orientation
namevisiblebooleanNames visibility flag
negativefillstylestringFill style to be used to fill negative areas
negativefillstyleFillStyleFill style to be used to fill negative areas
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
positivefillstylestringFill style to be used to positive areas
positivefillstyleFillStyleFill style to be used to positive areas
rightnumberRight point set or number between 0 and 1
rightLogCurveRight point set or number between 0 and 1
rightLogReferenceLineRight point set or number between 0 and 1
rightfillstylestringFillstyle for right part
rightfillstyleFillStyleFillstyle for right part
scalescrollstrategyScaleScrollStrategyScale scroll strategy
selectablebooleanSelectable node, a boolean to determine if selection should consider this node
taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
textstringName of the lithology
textellipsisbooleanEllipsis flag
textexpandbooleanAuto expand lithology rect to fit text flag
textpositionAnchorTypeDefine text anchor type inside the text area
textsizemodeSizeModeEnum of size modes
textstylestringThe text style
textstyleTextStyleThe text style
transformstringAdditional CSS transformation applied to node or 'none'
transformTransformationAdditional CSS transformation applied to node or 'none'
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
z-indexnumberDefine node z-index

Contents

Constructors

new LogLithology(depths, left, right, fillStyles, names, titles, labelfillstyle, labelfillmode, nameorientation)

new LogLithology(depths?, left?, right?, fillStyles?, names?, titles?, labelfillstyle?, labelfillmode?, nameorientation?)

Constructor

Parameters

Name Type Description
Optional depthsnumber | number[] | LogPointSet | Optionsan array of the depths or properties object
Optional leftLogCurve | LogReferenceLineleft points set
Optional rightLogCurve | LogReferenceLineright point set
Optional fillStylesType[]fill styles
Optional namesstring[]array of the names
Optional titlesstring[]array for the header titles
Optional labelfillstyleTypelabel fill style used if mode is set to SINGLECOLOR
Optional labelfillmodeLabelFillModemode for how to back the name text
Optional nameorientationNameOrientationlithology name orientation

Overrides

LogFill.constructor

Methods

addCssClass

addCssClass(cssclass): LogLithology

Adds new css class to node

Parameters

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

Returns

LogLithology

this

Inherited from

LogFill.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): LogLithology

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LogLithology

this

Inherited from

LogFill.addInvalidateHandler


applyOpacity

Protected applyOpacity(context): LogLithology

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

LogLithology

this

Inherited from

LogFill.applyOpacity


applyResponsiveStyle

Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

LogFill.applyResponsiveStyle


checkCollision

checkCollision(context): boolean

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

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

Inherited from

LogFill.checkCollision


clone

clone(): LogLithology

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

Returns

LogLithology

clone

Overrides

LogFill.clone


connectStyle

connectStyle(style, type, callback): LogLithology

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

LogLithology

this

Inherited from

LogFill.connectStyle


copyConstructor

Protected copyConstructor(src, deepCopy?): LogLithology

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

Returns

LogLithology

this

Overrides

LogFill.copyConstructor


disconnectStyle

disconnectStyle(style, type, callback): LogLithology

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

LogLithology

this

Inherited from

LogFill.disconnectStyle


dispose

dispose(): void

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

Returns

void

Inherited from

LogFill.dispose


drawBackground

Protected drawBackground(context, index): Rect | GraphicsPath

Parameters

Name Type
contextRenderingContext
indexnumber

Returns

Rect | GraphicsPath

Protected drawBackground(context, index, depthTop?, depthBottom?): Rect | GraphicsPath

Parameters

Name Type
contextRenderingContext
indexnumber
Optional depthTopnumber
Optional depthBottomnumber

Returns

Rect | GraphicsPath

Protected drawBackground(context, index, depthTop, depthBottom, isTopOverlapped, isBottomOverlapped): Rect | GraphicsPath

Parameters

Name Type
contextRenderingContext
indexnumber
depthTopnumber
depthBottomnumber
isTopOverlappedboolean
isBottomOverlappedboolean

Returns

Rect | GraphicsPath


enableEventPropagation

enableEventPropagation(enable): LogLithology

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

LogLithology

this

Inherited from

LogFill.enableEventPropagation


execute

execute(delegate): LogLithology

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

Returns

LogLithology

The result if any or this

Inherited from

LogFill.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: LogLithology) => T

Returns

T

Inherited from

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

LogFill.filter


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

LogFill.getAnimationStyle


getBaseName

getBaseName(): string

Returns the base name

Returns

string

The base name

Inherited from

LogFill.getBaseName


getBorderMode

getBorderMode(): BorderMode

Returns current border mode

Returns

BorderMode

mode


getBounds

getBounds(): Rect

Gets bounds

Returns

Rect

Inherited from

LogFill.getBounds


getClassName

getClassName(): string

Returns

string

Inherited from

LogFill.getClassName


getClipStyle

getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

LogFill.getClipStyle


getContentsTransform

getContentsTransform(): Transformation

Retrieves the world transformation of the spatial

Returns

Transformation

Inherited from

LogFill.getContentsTransform


getCss

getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

LogFill.getCss


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

LogFill.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

LogFill.getCssClasses


getCssTransform

getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

LogFill.getCssTransform


getCurve1

getCurve1(): LogCurve | LogReferenceLine

Returns a point set to fill from

Returns

LogCurve | LogReferenceLine

Inherited from

LogFill.getCurve1


getCurve2

getCurve2(): LogCurve | LogReferenceLine

Returns a point set to fill to

Returns

LogCurve | LogReferenceLine

Inherited from

LogFill.getCurve2


getDataLimits

getDataLimits(fullLimits?): Rect

return meaning data limits

Parameters

Name Type Description
Optional fullLimitsbooleandefault value is false

Returns

Rect

Inherited from

LogFill.getDataLimits


getDepths

getDepths(): number[]

Returns depths

Returns

number[]


getDescription

getDescription(): string

Gets the description

Returns

string

The description

Inherited from

LogFill.getDescription


getEllipsisOptions

getEllipsisOptions(): EllipsisOptions

Returns ellipsis options

Returns

EllipsisOptions

ellipsis options


getFillStyle

getFillStyle(): FillStyle

Return fill style

Returns

FillStyle

Inherited from

LogFill.getFillStyle


getFillStyles

getFillStyles(): FillStyle[]

Returns array of fillstyles

Returns

FillStyle[]


getFillType

getFillType(): FillType

Gets the fill type

Returns

FillType

Inherited from

LogFill.getFillType


getHeader

getHeader(name): LogVisualHeader<Node>

Return the header registered by the name

Parameters

Name Type Description
namestringheader name

Returns

LogVisualHeader<Node>

header

Inherited from

LogFill.getHeader


getHeaders

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

Return an object that contains all headers registered with the visual

Returns

Record<string, LogVisualHeader<Node>>

headers

Inherited from

LogFill.getHeaders


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

LogFill.getId


getIds

getIds(): (string | number)[]

Gets an array of range identifiers

Returns

(string | number)[]


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

Gets invalidate method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

LogFill.getInvalidateMethod


getLabelFillMode

getLabelFillMode(): LabelFillMode

Returns Label fill mode

Returns

LabelFillMode


getLabelFillStyle

getLabelFillStyle(): FillStyle

Returns label fill style used if the mode is set to SINGLECOLOR

Returns

FillStyle


getLeftFillStyle

getLeftFillStyle(): FillStyle

Returns fill style to be used to fill left (positive) areas

Returns

FillStyle

Inherited from

LogFill.getLeftFillStyle


getLineStyle

getLineStyle(): LineStyle

Returns line style

Returns

LineStyle

Inherited from

LogFill.getLineStyle


getLineStyles

getLineStyles(): LineStyle[]

Returns array of linestyles

Returns

LineStyle[]


getLineTypes

getLineTypes(): LineType[]

Return Lithology Line Types

Returns

LineType[]


getLocalTransform

getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

LogFill.getLocalTransform


getMarginsStyle

getMarginsStyle(): SpaceStyle<string | number>

Return margins style

Returns

SpaceStyle<string | number>

Inherited from

LogFill.getMarginsStyle


getMicroPositionLeft

getMicroPositionLeft(): number

Returns micro position left

Returns

number

Inherited from

LogFill.getMicroPositionLeft


getMicroPositionRight

getMicroPositionRight(): number

Returns micro position right

Returns

number

Inherited from

LogFill.getMicroPositionRight


getMicroPositionTransformation

Protected getMicroPositionTransformation(): Transformation

Returns micro position transformation

Returns

Transformation

micro position transformation

Inherited from

LogFill.getMicroPositionTransformation


getMinHeightForLabel

getMinHeightForLabel(): number

Return minimum height for label

Returns

number


getModelLimits

getModelLimits(): Rect

Returns null

Returns

Rect

Inherited from

LogFill.getModelLimits


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

LogFill.getName


getNameOrientation

getNameOrientation(): NameOrientation

Returns name orientation

Returns

NameOrientation


getNameVisible

getNameVisible(): boolean

Returns name visibility flag

Returns

boolean


getNames

getNames(): string[]

Returns lithology names

Returns

string[]


getNegativeFillStyle

getNegativeFillStyle(): FillStyle

Returns fill style to be used to fill negative areas

Returns

FillStyle

Inherited from

LogFill.getNegativeFillStyle


getOpacity

getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

LogFill.getOpacity


getOpacityBlendMode

getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

LogFill.getOpacityBlendMode


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

LogFill.getParent


getPositiveFillStyle

getPositiveFillStyle(): FillStyle

Returns fill style to be used to fill positive areas

Returns

FillStyle

Inherited from

LogFill.getPositiveFillStyle


getProperties

getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

properties object

Overrides

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

LogFill.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

LogFill.getPropertyKeys


getRenderingFilter

getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

LogFill.getRenderingFilter


getResponsiveStyle

getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

LogFill.getResponsiveStyle


getRightFillStyle

getRightFillStyle(): FillStyle

Returns fill style to be used to fill right (negative) areas

Returns

FillStyle

Inherited from

LogFill.getRightFillStyle


getRoot

getRoot(): Node

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

Returns

Node

the root node

Inherited from

LogFill.getRoot


getScaleScrollStrategy

getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

LogFill.getScaleScrollStrategy


getScaledData

getScaledData(): AbstractScaledData

Gets the visual's scaled data

Returns

AbstractScaledData

(the implementation returns null).

Inherited from

LogFill.getScaledData


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

LogFill.getSceneTransform


getShowEllipsis

getShowEllipsis(): boolean

Returns ellipsis flag

Returns

boolean

ellipsis flag


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

LogFill.getTag


getText

getText(): string

Returns text

Returns

string

text


getTextExpand

getTextExpand(): boolean

Returns true if text can expand lithology bounds

Returns

boolean

returns textExpand


getTextPosition

getTextPosition(): AnchorType

Returns text position inside the text area

Returns

AnchorType

returns anchor type


getTextSizeMode

getTextSizeMode(): SizeMode

Returns how the size is computed

Returns

SizeMode

returns textSizeMode


getTextStyle

getTextStyle(): TextStyle

Return text style

Returns

TextStyle


getTextStyles

getTextStyles(): TextStyle[]

Returns list of the text styles for the lithology

Returns

TextStyle[]


getTitles

getTitles(): string[]

Returns lithology titles

Returns

string[]


getTrack

getTrack(): ITrack

Returns parent track if LogTrack

Returns

ITrack

Inherited from

LogFill.getTrack


getVisible

getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

LogFill.getVisible


getWorldTransform

getWorldTransform(): Transformation

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

Returns

Transformation

Inherited from

LogFill.getWorldTransform


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

LogFill.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

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

LogFill.hasEventListener


hitTest

hitTest(area, radius?): Hits

Hit test in device coordinates

Parameters

Name Type Description
areaPoint | Rectthe device area or position
Optional radiusnumberthe selection radius

Returns

Hits


invalidate

invalidate(bounds?, force?): LogLithology

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

LogLithology

this

Inherited from

LogFill.invalidate


invalidateParent

invalidateParent(bounds?, force?): LogLithology

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

LogLithology

this

Inherited from

LogFill.invalidateParent


isAutoBounds

isAutoBounds(): boolean

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

Returns

boolean

Inherited from

LogFill.isAutoBounds


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

LogFill.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

LogFill.isEventPropagationEnabled


isHorizontalFlip

isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

horizontal flip

Inherited from

LogFill.isHorizontalFlip


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

LogFill.isNotificationEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

LogFill.isSelectable


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

LogFill.isSilent


notify

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

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

LogLithology

this

Inherited from

LogFill.notify


off

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

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

Returns

LogLithology

this

Inherited from

LogFill.off


on

on<E>(type, callback): LogLithology

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

Returns

LogLithology

this

Inherited from

LogFill.on


onHeaderSet

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

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

Parameters

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

Returns

void

Inherited from

LogFill.onHeaderSet


onMicroPositionChanged

Protected onMicroPositionChanged(): LogLithology

calls when microPosition has been changed

Returns

LogLithology

this

Inherited from

LogFill.onMicroPositionChanged


onParentChanged

Protected onParentChanged(node): LogLithology

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

LogLithology

this

Inherited from

LogFill.onParentChanged


onVisibilityChanged

Protected onVisibilityChanged(): void

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

Returns

void

Inherited from

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

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

LogFill.preRendering


registerAnimationStyle

registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

LogFill.registerAnimationStyle


removeCssClass

removeCssClass(cssclass): LogLithology

Removes css class from node

Parameters

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

Returns

LogLithology

this

Inherited from

LogFill.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): LogLithology

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LogLithology

this

Inherited from

LogFill.removeInvalidateHandler


render

render(context): void

Renders node

Parameters

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

Returns

void

Inherited from

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

LogFill.renderAsync


renderContent

Protected renderContent(context): void

Renders node content

Parameters

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

Returns

void

Inherited from

LogFill.renderContent


renderDepthRange

Protected renderDepthRange(context, fromDepth, toDepth, clipByDepth?, index?): void

Render depth range

Parameters

Name Type Description
contextRenderingContextcontext
fromDepthnumberfrom
toDepthnumberto
Optional clipByDepthboolean
Optional indexnumber

Returns

void

Overrides

LogFill.renderDepthRange


renderInternal

Protected renderInternal(localContext): LogLithology

Render internal

Parameters

Name Type Description
localContextRenderingContextlocal context

Returns

LogLithology

this

Inherited from

LogFill.renderInternal


rotate

rotate(theta, x, y): LogLithology

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

LogLithology

this

Inherited from

LogFill.rotate


scale

scale(xx, yy): LogLithology

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

LogLithology

this

Inherited from

LogFill.scale


setAnimationStyle

setAnimationStyle(animationStyle): LogLithology

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

LogLithology

Inherited from

LogFill.setAnimationStyle


setAutoBounds

setAutoBounds(enable): LogLithology

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

Parameters

Name Type Description
enablebooleanEnable or disable auto bounds

Returns

LogLithology

this

Inherited from

LogFill.setAutoBounds


setBaseName

setBaseName(name): LogLithology

Sets base name of the visual

Parameters

Name Type Description
namestringThe base name

Returns

LogLithology

this

Inherited from

LogFill.setBaseName


setBorderMode

setBorderMode(mode): LogLithology

Set border mode

Parameters

Name Type Description
modeBorderModeborder mode

Returns

LogLithology

this


setBounds

setBounds(bounds): LogLithology

Sets bounds of the point set in the parent coordinates false

Parameters

Name Type Description
boundsRectbounds of the point set

Returns

LogLithology

this

Inherited from

LogFill.setBounds


setClipStyle

setClipStyle(style): LogLithology

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

LogLithology

this

Inherited from

LogFill.setClipStyle


setCss

setCss(style, merge?): LogLithology

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

LogLithology

this

Inherited from

LogFill.setCss


setCssClass

setCssClass(name): LogLithology

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

LogLithology

this

Inherited from

LogFill.setCssClass


setCssTransform

setCssTransform(transform): LogLithology

Set CSS transformation

Parameters

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

Returns

LogLithology

this

Inherited from

LogFill.setCssTransform


setCurve1

setCurve1(curve): LogLithology

Sets point set to fill from

Parameters

Name Type Description
curvenumber | LogCurve | LogReferenceLinea point set or number to fill from

Returns

LogLithology

this

Inherited from

LogFill.setCurve1


setCurve2

setCurve2(curve): LogLithology

Sets point set to fill to

Parameters

Name Type Description
curvenumber | LogCurve | LogReferenceLinea point set or number to fill to

Returns

LogLithology

this

Inherited from

LogFill.setCurve2


setDepths

setDepths(depths): LogLithology

Sets depths intervals

Parameters

Name Type Description
depthsnumber[]depths intervals

Returns

LogLithology

this


setDescription

setDescription(description): LogLithology

Sets the description

Parameters

Name Type Description
descriptionstringThe visual description

Returns

LogLithology

this

Inherited from

LogFill.setDescription


setEllipsisOptions

setEllipsisOptions(options): LogLithology

Set ellipsis options

Parameters

Name Type Description
optionsEllipsisOptionsellipsis options

Returns

LogLithology

this


setFillStyle

setFillStyle(fillStyle, merge?): LogLithology

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

LogLithology

Inherited from

LogFill.setFillStyle


setFillStyles

setFillStyles(fillStyles): LogLithology

Sets array of fillstyles

Parameters

Name Type Description
fillStylesType[]array of fillstyles

Returns

LogLithology

this


setFillType

setFillType(fillType): LogLithology

Sets the fill type

Parameters

Name Type Description
fillTypeFillTypeenum of filltype

Returns

LogLithology

Inherited from

LogFill.setFillType


setHeader

setHeader(name, headerInstance, silent?): LogLithology

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

Throws

if header name is null

Parameters

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

Returns

LogLithology

this

Inherited from

LogFill.setHeader


setId

setId(id): LogLithology

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

LogLithology

this

Inherited from

LogFill.setId


setIds

setIds(ids): LogLithology

Sets an array of range identifiers

Parameters

Name Type
ids(string | number)[]

Returns

LogLithology


setLabelFillMode

setLabelFillMode(mode): LogLithology

Sets text backing mode

Parameters

Name Type Description
modeLabelFillModeLabel fill mode

Returns

LogLithology

this


setLabelFillStyle

setLabelFillStyle(fillstyle): LogLithology

sets the label fill style used if the mode is set to SINGLECOLOR

Parameters

Name Type Description
fillstyleTypelabel fill style

Returns

LogLithology

this


setLeftFillStyle

setLeftFillStyle(fillStyle, merge?): LogLithology

Sets left (positive) 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

LogLithology

Inherited from

LogFill.setLeftFillStyle


setLineStyle

setLineStyle(lineStyle, merge?): LogLithology

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

LogLithology

this

Inherited from

LogFill.setLineStyle


setLineStyles

setLineStyles(lineStyles): LogLithology

Sets array of line styles

Parameters

Name Type Description
lineStylesType[]array of line styles

Returns

LogLithology

this


setLineTypes

setLineTypes(lineTypes?): LogLithology

Sets lithology line types

Parameters

Name Type Description
Optional lineTypesLineType[]array for the line type

Returns

LogLithology


setLocalTransform

setLocalTransform(localTransform, force?): LogLithology

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

LogLithology

this

Inherited from

LogFill.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): LogLithology

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

LogLithology

this

Inherited from

LogFill.setMarginsStyle


setMicroPosition

setMicroPosition(left, right): LogLithology

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

Example

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

Parameters

Name Type Description
leftnumberleft position
rightnumberright position

Returns

LogLithology

this

Inherited from

LogFill.setMicroPosition


setMinHeightForLabel

setMinHeightForLabel(min): LogLithology

Sets minimum height for label

Parameters

Name Type Description
minnumbermin height for label ( used to decide when to turn off display of label)

Returns

LogLithology

this


setName

setName(name): LogLithology

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

LogLithology

this

Inherited from

LogFill.setName


setNameOrientation

setNameOrientation(nameorientation): LogLithology

Set name orientation

Parameters

Name Type Description
nameorientationNameOrientationname orientation

Returns

LogLithology


setNameVisible

setNameVisible(namevisible): LogLithology

Set name visibility flag

Parameters

Name Type Description
namevisiblebooleanname visibility flag

Returns

LogLithology


setNames

setNames(names): LogLithology

Sets lithology names

Parameters

Name Type Description
namesstring[]lithology names

Returns

LogLithology

this


setNegativeFillStyle

setNegativeFillStyle(fillStyle, merge?): LogLithology

Sets negative 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

LogLithology

Inherited from

LogFill.setNegativeFillStyle


setNotification

setNotification(notify, force?): LogLithology

set notification state

Parameters

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

Returns

LogLithology

this

Inherited from

LogFill.setNotification


setOpacity

setOpacity(opacity, blendMode?): LogLithology

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

LogLithology

this

Inherited from

LogFill.setOpacity


setPositiveFillStyle

setPositiveFillStyle(fillStyle, merge?): LogLithology

Sets positive 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

LogLithology

Inherited from

LogFill.setPositiveFillStyle


setProperties

setProperties(properties?): LogLithology

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

LogLithology

this

Overrides

LogFill.setProperties


setProperty

setProperty(name, value): LogLithology

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

LogLithology

this

Inherited from

LogFill.setProperty


setRenderingFilter

setRenderingFilter(filter): LogLithology

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

LogLithology

this

Inherited from

LogFill.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): LogLithology

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

LogLithology

this

Inherited from

LogFill.setResponsiveStyle


setRightFillStyle

setRightFillStyle(fillStyle, merge?): LogLithology

Sets right (negative) 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

LogLithology

Inherited from

LogFill.setRightFillStyle


setScaleScrollStrategy

setScaleScrollStrategy(strategy?): LogLithology

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

LogLithology

this

Inherited from

LogFill.setScaleScrollStrategy


setSelectable

setSelectable(selectable): LogLithology

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

LogLithology

this

Inherited from

LogFill.setSelectable


setShowEllipsis

setShowEllipsis(showTextEllipsis): LogLithology

Set show ellipsis

Parameters

Name Type Description
showTextEllipsisbooleanshow ellipses

Returns

LogLithology

this


setSilent

setSilent(bool): LogLithology

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

LogLithology

this

Inherited from

LogFill.setSilent


setTag

setTag(tag): LogLithology

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

Parameters

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

Returns

LogLithology

this

Inherited from

LogFill.setTag


setText

setText(text): LogLithology

Sets text

Parameters

Name Type Description
textstringSets text to be displayed

Returns

LogLithology

this


setTextExpand

setTextExpand(textExpand): LogLithology

Sets text expand mode

Parameters

Name Type Description
textExpandbooleantext expand flag, true if text can expand lithology bounds

Returns

LogLithology

this


setTextPosition

setTextPosition(anchorType): LogLithology

Specifies text position inside the text area

Parameters

Name Type Description
anchorTypeAnchorTypeanchor type

Returns

LogLithology

this


setTextSizeMode

setTextSizeMode(textSizeMode): LogLithology

Sets how text size is computed

Parameters

Name Type Description
textSizeModeSizeModeEnum of size modes

Returns

LogLithology

this


setTextStyle

setTextStyle(textStyle, merge?): LogLithology

Sets 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

LogLithology

this


setTextStyles

setTextStyles(textStyles): LogLithology

Sets text styles list for the text labels

Parameters

Name Type Description
textStylesType[]a new shape text style

Returns

LogLithology

this


setTitles

setTitles(titles): LogLithology

Sets lithology titles

Parameters

Name Type Description
titlesstring[]track header titles

Returns

LogLithology

this


setVisible

setVisible(value): LogLithology

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

LogLithology

this

Inherited from

LogFill.setVisible


setZIndex

setZIndex(value): LogLithology

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

LogLithology

this

Inherited from

LogFill.setZIndex


shear

shear(shx, shy): LogLithology

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

LogLithology

this

Inherited from

LogFill.shear


toString

toString(): string

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

Returns

string

A string representation

Inherited from

LogFill.toString


translate

translate(tx, ty): LogLithology

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

LogLithology

this

Inherited from

LogFill.translate


unregisterAnimationStyle

unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

LogFill.unregisterAnimationStyle


updateSceneTransformation

updateSceneTransformation(): LogLithology

Update scene transformation

Returns

LogLithology

this

Inherited from

LogFill.updateSceneTransformation


updateState

updateState(regions?, changes?): LogLithology

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

LogLithology

this

Inherited from

LogFill.updateState


updateTimeStamp

Protected updateTimeStamp(): LogLithology

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

Returns

LogLithology

this

Inherited from

LogFill.updateTimeStamp


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

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

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

LogFill.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

LogFill.getClassName


getShortFillType

Static getShortFillType(filltype): FillType

manipulator for filltype aliases

Parameters

Name Type Description
filltypestringfilltype

Returns

FillType

Inherited from

LogFill.getShortFillType


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

LogFill.isSceneGraphNotificationEnabled