Last updated

API / geotoolkit / welllog / widgets / WellLogWidget / WellLogWidget

Class: WellLogWidget

widgets.WellLogWidget.WellLogWidget

The WellLog widget is a widget that is specialized for well related data. It uses classes from the WellLog toolkit internally.
The main way to configure and customize the default look and feel of the widget is by using the different setProperties() function in the constructor.
The widget content can be manipulated through add/remove/get-Track() and the Track content can be controlled through track.add/remove/get-Child() as shown in example below.
Similarly all supported well data (track, index track, log curves, log fills, log2d, markers etc) can be manipulated.
Widget has header, footer containers to display tracks and visuals headers and track container to display tracks. The widget provides built-in support for Time/Depth modes, Resizing headers and footers, Selection and highlighting, Track resizing.

The Default tools include:

  • Horizontal scrollbar
  • Vertical scrollbars (header, tracks, footer)
  • Panning
  • Zoom
  • Pinching
  • Crosshair
  • Header/Footer splitters (for resizing)
  • Track splitters (for resizing)
  • Rubberband (for rubberband Zoom)
  • Selection
  • drag-and-drop (for drag'n drop track or curve)

Example

// Create the Widget
import {WellLogWidget} from '@int/geotoolkit/welllog/widgets/WellLogWidget';
import {TrackType} from '@int/geotoolkit/welllog/TrackType';
const widget = new WellLogWidget({
'horizontalscrollable': false,
'verticalscrollable': true,
'trackcontainer': {
'border': {'visible': false}
},
'border': {'visible': false}
})
widget.addTrack(TrackType.IndexTrack);

Example

// Adding a curve to the widget.
import {LogCurve} from '@int/geotoolkit/welllog/LogCurve';
widget.addTrack(TrackType.LinearTrack)
.addChild([
new LogCurve(curveData)
.setLineStyle('green', 1))
]);

Example

import {Events as AbstractScrollEvents} from '@int/geotoolkit/controls/tools/scroll/AbstractScroll';
import {Events as PanningEvents} from '@int/geotoolkit/controls/tools/Panning';
// Capture a scroll event when the user uses the scroll tab or mouse wheel.
widget.getToolByName('TrackPanning')
.on(PanningEvents.onPanning, (evt, sender, eventArgs) => {
...
});
widget.getToolByName('HorizontalPlotScroll')
.on(AbstractScrollEvents.onScroll, (evt, sender, eventArgs) => {
...
});

Example

// Resizing WellLogWidget.
// It has two parts. The first one is resizing of the plot, which is a container of any widget and shapes and the second step is resizing of widgets inside of container.
// To change the size of the widget you need to call 'setBounds' method of the widget. The method of the plot 'setSize' will change a plot size.
// It is better to use automatic way to change size of the widget based on plot. The following steps will describe this approach:
// step2: When you create a plot you specify canvas and widget like this:
import {Plot} from '@int/geotoolkit/plot/Plot';
import {Group} from '@int/geotoolkit/scene/Group';
import {CssLayout} from '@int/geotoolkit/layout/CssLayout';
// step1: After you create a widget you specify location inside the plot using layout style like this:
const widget = new WellLogWidget({
'horizontalscrollable': false,
'verticalscrollable': true,
'trackcontainer': {
'border': {'visible': false}
},
'border': {'visible': false}
'track' : {
'header' : {
'visibletracktitle' : true,
'titlefirst' : true,
'firsttolast' : false,
'toptobottom' : false,
'holdtitle' : HoldTitle.Top
},
'footer' :  {
'visibletracktitle' : true,
'titlefirst' : true,
'firsttolast' : false,
'toptobottom' : true,
'holdtitle' : HoldTitle.None
}
},
})
.setLayoutStyle({
'left': 0,
'top': 0,
'right': 0,
'bottom': 0
});
// This setLayoutStyle tells that widgets will occupy whole plot area.
const widgetPlot = new Plot({
'canvasElement': canvas,
'root': new Group()
.setAutoModelLimitsMode(true)
.setLayout(new CssLayout())   // plot will resize children using CssLayout.
.addChild(widget),
'autoSize': false,
'autoRootBounds': true
});
// Now if you change a plot size then the size of widget will be changed automatically, so to resize widget you need just to call:
plot.setSize(width, height);

Example

// To modify the height of headers container simply do the following while initializing the widget.
const widget = new WellLogWidget({
'header': {
'height': 200
}
})

Example

// ..or If you are using CSS then
import {CssStyle} from '@int/geotoolkit/css/CssStyle';
const css = [
'.WellLogWidget {',
'   header-height: 200;',
'}',
].join('\n');
widget.setCss(new CssStyle({'css': css}));
// CSS styles can be used to change other properties also. Please refer to the CSS properties section to see which properties can be changed.

Example

// To add widget header:
import {Text} from '@int/geotoolkit/scene/shapes/Text';
const widget = new WellLogWidget({
'annotations': {
'north': [
new Text({'text': 'Title'}).setLayoutStyle({ 'height': 20 })
]
},
'annotationssizes': {
'north': 100
}
});

Example

// To change tracks' size manually use method WellLogWidget.setTrackWidth:
wellLogWidget.setTrackWidth(150, track); // 150 is the width, if track is null then width will be applied to all tracks.

Example

// To set CSS style to hover and highlight
// specify cssclass name
const widget = new WellLogWidget({
'highlight': {
'cssclass': 'highlight'
});
// sets CSS properties for highlighting and hover for curve
widget.setCss(new CssStyle(
{
'css': [
'.geotoolkit.welllog.LogCurve:hover {',
'   linestyle-width: 3;',
'}',
'.geotoolkit.welllog.LogCurve:highlight {',
'   linestyle-width: 3;',
'}'
].join('')
}));

Example

// If you need to change style of visual checks and remove 'hover' and 'highlight' CSS class from it like this:
import {PseudoClass} from '@int/geotoolkit/css/CssStyle';
...
var hasHover = selectedVisual.hasCssClass(PseudoClass.Hover);
var hasHighlight = selectedVisual.hasCssClass(PseudoClass.Highlight);
// Remove class to restore original styles
if (hasHover || hasHighlight) {
selectedVisual.removeCssClass([PseudoClass.Hover, PseudoClass.Highlight]);
}
selectedVisual.setLineStyle(newStyle);
if (hasHover) {
selectedVisual.addCssClass(PseudoClass.Hover);
}
if (hasHighlight) {
selectedVisual.addCssClass(PseudoClass.Highlight);
}

Hierarchy

Implements

Table of contents

Constructors
Methods
addBaseLayeraddChildaddCssClass
addInvalidateHandleraddOverlayaddTrack
adjustPositionapplyOpacityapplyResponsiveStyle
beginExportchangeBaseLayerOrderchangeChildOrder
changeOverlayOrderchangeTrackOrdercheckCollision
clearBaseLayersclearCacheclearChildren
clearOverlaysclearTracksclone
connectconnectStyleconnectTool
copyConstructordisconnectStyledisconnectTool
disposedrawBorderenableClipping
enableEventPropagationenablePickingChildrenendExport
enumerateNodesexecuteexportToPdf
filterfitToHeightfitToWidth
forEachVisualgetAnimationStylegetAnnotation
getAutoModelLimitsModegetAutoModelLimitsStrategygetBaseLayer
getBaseLayersgetBaseLayersCountgetBounds
getCachegetChildgetChildren
getChildrenCountgetClassNamegetClipStyle
getContentOrientationgetContentsAreagetContentsTransform
getCssgetCssClassgetCssClasses
getCssTransformgetDatagetDataBinding
getDepthLimitsgetDepthLimitsOptionsgetDepthMarkers
getDepthScalegetDesiredHeightgetDesiredWidth
getDeviceLimitsgetDeviceUnitgetExportElement
getFillStylegetFooterContainergetFooterHeight
getFooterScrollVisiblegetHeaderContainergetHeaderHeight
getHeaderScrollVisiblegetHighlightFillStylegetHighlightLineStyle
getIdgetIndexTypegetIndexUnit
getInfiniteModegetInvalidateMethodgetLayout
getLayoutStylegetLineStylegetLocalTransform
getMarginsStylegetMarkerFillStylegetMarkerLineStyle
getMarkerSymbolgetModelLimitsgetName
getOpacitygetOpacityBlendModegetOptions
getOrientationgetOverlaygetOverlayAt
getOverlayLayergetOverlaysgetOverlaysCount
getPaddingStylegetParentgetPreferredSize
getPropertiesgetPropertygetPropertyKeys
getRenderingFiltergetResponsiveStylegetRoot
getScaleScrollStrategygetScaleUnitgetSceneTransform
getSelectedTracksgetSelectedVisualsgetTag
getToolgetToolByNamegetToolByType
getTrackgetTrackAtgetTrackAtPosition
getTrackContainergetTrackFactorygetTrackFooter
getTrackHeadergetTrackIndexgetTrackManipulatorLayer
getTrackOptionsgetTrackRenderDirectiongetTracks
getTracksCountgetTracksSizegetVisible
getVisibleDepthLimitsgetVisibleDeviceLimitsgetVisibleModelLimits
getWorldTransformgetZIndexhasCssClass
hasEventListenerhighlightVisualhighlightVisualHeader
indexOfBaseLayerindexOfChildindexOfOverlay
indexOfTrackinitializeToolsinsertBaseLayer
insertChildinsertOverlayinsertTrack
invalidateinvalidateLayoutinvalidateParent
isAttachedHeadersisClippingEnabledisDisposed
isEventPropagationEnabledisHorizontalFlipisLayoutInvalidated
isNotificationEnabledisPickingChildrenEnabledisSelectable
isSilentisVerticalFliplistToolsNames
loadTemplatemoveTonotify
notifyRootoffon
onBoundsChangedonChildAddedonChildRemoved
onParentChangedonVisibilityChangedpanToTrack
postRenderingpreRenderingrebuild
registerAnimationStyleremoveBaseLayerremoveChild
removeCssClassremoveInvalidateHandlerremoveOverlay
removeTrackrenderrenderAsync
renderBackgroundrenderBaseLayersrenderBaseLayersAsync
renderChildrenrenderChildrenAsyncrenderContent
renderContentAsyncrenderOverlaysrenderOverlaysAsync
resumeUpdaterotatesaveTemplate
scalescrollToIndexsetAnimationStyle
setAnnotationSizesetAttachedHeaderssetAutoModelLimitsMode
setAutoModelLimitsStrategysetAxisHeaderTypesetBounds
setCachesetChildsetClipStyle
setContentOrientationsetCsssetCssClass
setCssTransformsetDatasetDataBinding
setDepthLimitssetDepthLimitsOptionssetDepthMarkers
setDepthScalesetDesiredHeightsetDesiredWidth
setDeviceUnitsetFillStylesetFooterHeight
setFooterScrollVisiblesetHeaderHeightsetHeaderScrollVisible
setHighlightFillStylesetHighlightLineStylesetHorizontalFlip
setIdsetIndexTypesetIndexUnit
setInfiniteModesetLayoutsetLayoutInvalidated
setLayoutStylesetLineStylesetLocalTransform
setMarginsStylesetMarkerFillStylesetMarkerLineStyle
setMarkerSymbolsetModelLimitssetName
setNodeFiltersetNotificationsetOpacity
setOptionssetOrientationsetPaddingStyle
setPropertiessetPropertysetRenderingFilter
setResponsiveStylesetScaleScrollStrategysetSelectable
setSilentsetTagsetTool
setTrackFactorysetTrackOptionssetTrackRenderDirection
setTrackWidthsetVerticalFlipsetVisible
setVisibleDepthLimitssetVisibleModelLimitssetZIndex
shearsuspendUpdatetoString
translateunregisterAnimationStyleupdateData
updateFooterupdateHeaderupdateLayout
updateSceneTransformationupdateScrollPositionsupdateState
updateSuspendedupdateTimeStampenableSceneGraphNotification
findParentgetClassNameisSceneGraphNotificationEnabled
Css Properties
Name Type Description
borderBorderOptionsDefines properties for widget outer border
border-bordersVisibleBorders visibility option
border-borders-bottombooleanVisibility of bottom part
border-borders-leftbooleanVisibility of left part
border-borders-rightbooleanVisibility of right part
border-borders-topbooleanVisibility of top part
border-colorstringColor of border
border-linestylestringBorder line style
border-linestyleLineStyleBorder line style
border-linestyle-colorstringColor in CSS form
border-linestyle-fillstringOptional fill style to be used to fill lines generated with this style
border-linestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
border-linestyle-fill-colorstringColor in CSS form
border-linestyle-fill-evenoddmodebooleanEven-odd fill mode
border-linestyle-fill-fillpatternPatternPattern
border-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
border-linestyle-fill-fillpattern-patternnamestringName of this pattern for indexing
border-linestyle-fill-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
border-linestyle-fill-foregroundstringForeground color
border-linestyle-fill-patternPatternPattern
border-linestyle-linecapCapStyleThe line cap style
border-linestyle-linedashoffsetnumberLine dash offset of dashed line
border-linestyle-linejoinJoinStyleThe line join style
border-linestyle-pixelsnapmodebooleanPixel Snap Mode, default(
border-linestyle-scalablebooleanTrue if width should depend on transformation
border-linestyle-unitstringOptional unit for the width
border-linestyle-widthnumber | stringThe line thickness
border-visiblebooleanVisibility of the border
depthlimitsoptionsDepthLimitsOptionsDepth limits options
depthlimitsoptions-neatlimitsbooleanAuto neat depth limits
depthlimitsoptions-typeDepthLimitsTypesDepth limits type
deviceunitstringPrimary device unit
directionTrackRenderDirectionSet track render direction
gridlinestylestringGrid line style
gridlinestyleLineStyleGrid line style
horizontalscrollablebooleanDefines if plot displays horizontal scrollbars
indentnumberIndent between tracks
indextypeIndexTypePrimary index types
indexunitstringPrimary index unit
markerMarkerOptionsMarker options
marker-datetimeformatOptionsDate time format in case if track container scale unit belongs to 'time'
marker-datetimeformat-formatstringDate time format
marker-datetimeformat-timezoneTimeZoneTime zone
marker-enabledinterpolatedvaluesbooleanDisplay symbol for interpolated values
marker-fillstylestringMarker shape fill style
marker-fillstyleFillStyleMarker shape fill style
marker-indexvisiblebooleanVisibility of the marker index value label
marker-labelvisiblebooleanVisibility of the marker shape label
marker-linestylestringMarker shape line style
marker-linestyleLineStyleMarker shape line style
marker-symbolSymbolShapeSymbol to use as depth index marker
marker-symbol-alignmentAnchorTypeAlignment according to the anchor point
marker-symbol-alignmentAnchorTypeAnchor type of symbol
marker-symbol-axnumberAnchor x position
marker-symbol-aynumberAnchor y position
marker-symbol-cachebooleanSet it to true if you want to cache complex geometry to raster
marker-symbol-clipstyleClipStyleClipping style
marker-symbol-clipstyle-evenoddbooleanTrue if evenodd mode is on ('nonzero' mode otherwise)
marker-symbol-clipstyle-geometryGraphicsPathClipping geometry
marker-symbol-clipstyle-geometry-boundsRectBounds
marker-symbol-clipstyle-geometry-bounds-heightnumberHeight
marker-symbol-clipstyle-geometry-bounds-readonlybooleanReadonly
marker-symbol-clipstyle-geometry-bounds-widthnumberWidth
marker-symbol-clipstyle-geometry-bounds-xnumberLeft
marker-symbol-clipstyle-geometry-bounds-ynumberTop
marker-symbol-clipstyleGraphicsPathClipping style
marker-symbol-cssclassstringThe css class name of this node
marker-symbol-csscursorstringCSS cursor associated with node
marker-symbol-cssstylestringCSS style to be applied to inserted elements
marker-symbol-fillstylestringStyle applied on fill
marker-symbol-fillstyleFillStyleStyle applied on fill
marker-symbol-heightnumberShape height
marker-symbol-idstring | numberId of the node, its a unique identifier
marker-symbol-ispointingupbooleanDefines whether the shape is always pointing up
marker-symbol-layoutstyleLayoutStyleLayout style to specify how to lay out shape
marker-symbol-layoutstyle-constraintSizeConstraintLayout constrains
marker-symbol-layoutstyle-flexgrownumberNumber specifying how much the item will grow relative to the rest of the items inside the same container
marker-symbol-layoutstyle-flexshrinknumberNumber specifying how much the item will shrink relative to the rest of the items inside the same container
marker-symbol-layoutstyle-floatstringFloat position
marker-symbol-layoutstyle-positionstringLayout position
marker-symbol-layoutstyle-sizenumber | stringLayout size
marker-symbol-linestylestringStyle applied on outline
marker-symbol-linestyleLineStyleStyle applied on outline
marker-symbol-localtransformTransformationLocal transformation
marker-symbol-localtransform-dxnumberX axis translation
marker-symbol-localtransform-dynumberY axis translation
marker-symbol-localtransform-xxnumberX scale
marker-symbol-localtransform-xynumberXy skew
marker-symbol-localtransform-yxnumberYx skew
marker-symbol-localtransform-yynumberY scale
marker-symbol-marginsnumber | stringIt has properties for specifying the margins for each side
marker-symbol-maxdimensionDimensionMaximum size for rendering
marker-symbol-maxdimension-heightnumberHeight of dimension
marker-symbol-maxdimension-widthnumberWidth of dimension or properties
marker-symbol-mindimensionDimensionMinimum size for rendering
marker-symbol-namestringName of the node. It is often used for debugging purposes or to simplify queries
marker-symbol-opacitynumberNode opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context
marker-symbol-opacityblendmodeBlendModeNode opacity mode to blend it
marker-symbol-painterstringA function with has parameters: symbol, box, context
marker-symbol-painterpropertiesanySymbol's painter's properties
marker-symbol-preserveaspectratiobooleanPreserve aspect ratio of the anchored shape
marker-symbol-preservereadingorientationbooleanPreserve reading orientation for local transform
marker-symbol-preserverightanglebooleanPreserve right angle for local transformation
marker-symbol-rotationanglenumberRotation angle at anchor
marker-symbol-scalescrollstrategyScaleScrollStrategyScale scroll strategy
marker-symbol-scalescrollstrategy-enabledbooleanEnable flag
marker-symbol-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
marker-symbol-sizeisindevicespacebooleanIs coordinate in device space
marker-symbol-taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
marker-symbol-transformstringAdditional CSS transformation applied to node or 'none'
marker-symbol-transformTransformationAdditional CSS transformation applied to node or 'none'
marker-symbol-useminmaxdimensionsbooleanUse the min max dimensions to limit visual size
marker-symbol-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
marker-symbol-widthnumberShape width
marker-symbol-z-indexnumberDefine node z-index
orientationOrientationSet orientation of the well log widget
rangeRangeMin and max depth range
range-highnumberUpper range boundary
range-lownumberLower range boundary
range-maxnumber
range-minnumber
timezoneTimeZoneTime zone for time axis
timezoneoffsetnumberTime zone offset for date time axis
verticalscrollableboolean
verticalscrollablebooleanDefines if plot displays vertical scrollbars
viewcachebooleanDefine view cache for tracks

Contents

Constructors

new WellLogWidget(options)

new WellLogWidget(options?)

Create WellLogWidget

Parameters

Name Type Description
Optional optionsOptionsoptions to pass

Overrides

BaseWidget.constructor

Methods

addBaseLayer

addBaseLayer(baseLayer): WellLogWidget

Add baseLayer to container

Parameters

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

Returns

WellLogWidget

this

Inherited from

BaseWidget.addBaseLayer


addChild

addChild(node): WellLogWidget

Add a child node

Parameters

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

Returns

WellLogWidget

this

Inherited from

BaseWidget.addChild


addCssClass

addCssClass(cssclass): WellLogWidget

Adds new css class to node

Parameters

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

Returns

WellLogWidget

this

Inherited from

BaseWidget.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): WellLogWidget

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

WellLogWidget

this

Inherited from

BaseWidget.addInvalidateHandler


addOverlay

addOverlay(overlay): WellLogWidget

Add overlay to container

Parameters

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

Returns

WellLogWidget

this

Inherited from

BaseWidget.addOverlay


addTrack

addTrack(track): StackedTrack

Add a track

Parameters

Name Type Description
trackStackedTracktrack type

Returns

StackedTrack

addTrack(track): LogTrack

Add a track

Example

import {TrackType} from '@int/geotoolkit/welllog/TrackType';
widget.addTrack(TrackType.LinearTrack);

Example

// index tracks has 'INDEX_TRACK' css class defined, so it can be used to modify style with css:
widget.getTrackContainer().setCss('*[cssclass="INDEX_TRACK"] { visible: false; }');
// or differ it from another tracks:
if (track.getCssClass() === 'INDEX_TRACK') {
// do smth
}

Parameters

Name Type Description
trackInsertTracktrack or tracks to insert

Returns

LogTrack

track to be added. if multiple tracks wree passed to this method, only the fisrt one will be returnes


adjustPosition

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

Adjust position of node to specified area

Parameters

Name Type Description
Optional areaRectspecified area. Default to Parent Model Limits
Optional vAlignstringvertical alignment. It can be "top", "bottom", "center". Defaults to "top".
Optional hAlignstringhorizontal alignment It can be "left", "right", "center". Defaults to "left".

Returns

WellLogWidget

this

Inherited from

BaseWidget.adjustPosition


applyOpacity

Protected applyOpacity(context): WellLogWidget

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

WellLogWidget

this

Inherited from

BaseWidget.applyOpacity


applyResponsiveStyle

Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

BaseWidget.applyResponsiveStyle


beginExport

beginExport(): WellLogWidget

Prepares object before exporting and saving state

Returns

WellLogWidget

this

Implementation of

IExportable.beginExport


changeBaseLayerOrder

changeBaseLayerOrder(overlay, order, anchor?): WellLogWidget

Changes the z-order of the baseLayer.

Parameters

Name Type Description
overlayNode
orderNodeOrderposition to be added
Optional anchorNodeanchor node to specify changeOrder with respect to this node

Returns

WellLogWidget

this

Inherited from

BaseWidget.changeBaseLayerOrder


changeChildOrder

changeChildOrder(node, order, anchor?): WellLogWidget

changes the z-order of the nodes being rendered.

Parameters

Name Type Description
nodeNodeany child added in the Composite node
orderNodeOrderposition to be added
Optional anchorNodeanchor node to specify changeOrder with respect to this node

Returns

WellLogWidget

this

Inherited from

BaseWidget.changeChildOrder


changeOverlayOrder

changeOverlayOrder(overlay, order, anchor?): WellLogWidget

Changes the z-order of the overlay.

Parameters

Name Type Description
overlayNodechild overlay
orderNodeOrderposition to be added
Optional anchorNodeanchor node to specify changeOrder with respect to this node

Returns

WellLogWidget

this

Inherited from

BaseWidget.changeOverlayOrder


changeTrackOrder

changeTrackOrder(track, order, anchor?): WellLogWidget

changes the layout order of the tracks being rendered.

Parameters

Name Type Description
trackLogTrackchild track in the WellLogWidget
orderNodeOrderposition to be added
Optional anchorLogTrackanchor track to specify changeOrder with respect to this track

Returns

WellLogWidget

this


checkCollision

checkCollision(context): boolean

Check culling Returns true if object is inside of renderable area

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

true if node is collided

Inherited from

BaseWidget.checkCollision


clearBaseLayers

clearBaseLayers(disposeBaseLayers?): WellLogWidget

Remove all child baseLayers from group

Parameters

Name Type Description
Optional disposeBaseLayersbooleanautomatically dispose baseLayers. If it is true then method dispose is called for each baseLayer, false by default

Returns

WellLogWidget

this

Inherited from

BaseWidget.clearBaseLayers


clearCache

clearCache(): WellLogWidget

Clear cache

Returns

WellLogWidget

this

Inherited from

BaseWidget.clearCache


clearChildren

clearChildren(disposeChildren?): WellLogWidget

Remove all child nodes from this composite group

Parameters

Name Type Description
Optional disposeChildrenbooleanautomatically dispose children. If it is true then method dispose is called for each child.

Returns

WellLogWidget

this

Inherited from

BaseWidget.clearChildren


clearOverlays

clearOverlays(disposeOverlays?): WellLogWidget

Remove all child overlays from group

Parameters

Name Type Description
Optional disposeOverlaysbooleanautomatically dispose overlays. If it is true then method dispose is called for each overlay, false by default

Returns

WellLogWidget

this

Inherited from

BaseWidget.clearOverlays


clearTracks

clearTracks(disposeTracks?): WellLogWidget

Remove all tracks from this widget

Parameters

Name Type Description
Optional disposeTracksbooleanautomatically dispose tracks. If it is true then method dispose is called for each track.

Returns

WellLogWidget

this


clone

clone(): Group<Node>

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

Returns

Group<Node>

clone

Inherited from

BaseWidget.clone


connect

connect(object, orientation?): WellLogWidget

Synchronizes axis or group with a track container model

Parameters

Name Type Description
objectAxis | Group<Node>object to connect to the central component
Optional orientationOrientationmodel orientation

Returns

WellLogWidget


connectStyle

connectStyle(style, type, callback): WellLogWidget

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

WellLogWidget

this

Inherited from

BaseWidget.connectStyle


connectTool

connectTool(tool): WellLogWidget

Connect a new tool with a toolname to the widget

Parameters

Name Type Description
toolAbstractTool | AbstractTool[]tool associated with the widget

Returns

WellLogWidget

this

Inherited from

BaseWidget.connectTool


copyConstructor

Protected copyConstructor(src, deepCopy?): WellLogWidget

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
srcGroup<Node>Source to copy from
Optional deepCopybooleandeep copy

Returns

WellLogWidget

this

Inherited from

BaseWidget.copyConstructor


disconnectStyle

disconnectStyle(style, type, callback): WellLogWidget

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

WellLogWidget

this

Inherited from

BaseWidget.disconnectStyle


disconnectTool

disconnectTool(tool): WellLogWidget

Disconnect the tool from the widget

Parameters

Name Type Description
toolAbstractTool | AbstractTool[]tool to disconnect

Returns

WellLogWidget

this

Inherited from

BaseWidget.disconnectTool


dispose

dispose(): void

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

Returns

void

Inherited from

BaseWidget.dispose


drawBorder

Protected drawBorder(localContext, bounds?): WellLogWidget

Draws a rectangle at the bounding box (in parent coordinates)

Parameters

Name Type Description
localContextRenderingContextThe local rendering context
Optional boundsRectgroup bounds

Returns

WellLogWidget

this

Inherited from

BaseWidget.drawBorder


enableClipping

enableClipping(doClip): WellLogWidget

Enables or disables clipping of this node. If enabled, shapes will not be rendered outside of its bounds.

Parameters

Name Type Description
doClipbooleanenable clipping on this node

Returns

WellLogWidget

this

Inherited from

BaseWidget.enableClipping


enableEventPropagation

enableEventPropagation(enable): WellLogWidget

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

WellLogWidget

this

Inherited from

BaseWidget.enableEventPropagation


enablePickingChildren

enablePickingChildren(enable): WellLogWidget

Enables or disables picking children

Parameters

Name Type Description
enablebooleanenable picking children

Returns

WellLogWidget

this

Inherited from

BaseWidget.enablePickingChildren


endExport

endExport(): void

Used to restore object's state after exporting

Returns

void

Implementation of

IExportable.endExport


enumerateNodes

enumerateNodes(callback, target?): void

Executes a provided function once for each child node

Parameters

Name Type Description
callbackCallback<Node>provided function
Optional targetQueryBuilder<any>target to pass to callback as a second parameter

Returns

void

Inherited from

BaseWidget.enumerateNodes


execute

execute(delegate): WellLogWidget

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

Returns

WellLogWidget

The result if any or this

Inherited from

BaseWidget.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: WellLogWidget) => T

Returns

T

Inherited from

BaseWidget.execute


exportToPdf

exportToPdf(options?): Promise<IWritable>

Exports the widget content as a PDF file, user has option to select the scale of track in pdf.

Parameters

Name Type Description
Optional optionsExportToPdfOptionsoption to specify paper parameters and header and footer

Returns

Promise<IWritable>

promise with output stream


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

BaseWidget.filter


fitToHeight

fitToHeight(height?): WellLogWidget

Display the whole scene graph. Resets the zoom level/scale to fit the whole tracks height in the visible area

Parameters

Name Type Description
Optional heightnumberoptional height to fit to

Returns

WellLogWidget

this


fitToWidth

fitToWidth(width?): WellLogWidget

Resize widget width to fit it in visible area

Example

widget.addTrack(TrackType.IndexTrack)
// declare width constraints for particular track
.setLayoutStyle({
'minwidth': 50,
'maxwidth': 50
});
widget.addTrack(TrackType.LinearTrack);
...
widget.fitToWidth();

Parameters

Name Type Description
Optional widthnumberoptional width to fit to

Returns

WellLogWidget

this


forEachVisual

forEachVisual(callback): void

Enumerate each visual in track container

Parameters

Name Type Description
callback(item: Node) => voidcallback method

Returns

void


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

BaseWidget.getAnimationStyle


getAnnotation

getAnnotation(location): Group<Node>

Gets annotation at specified location

Parameters

Name Type Description
locationstringEnum of annotation locations used to specify direction to insert

Returns

Group<Node>


getAutoModelLimitsMode

getAutoModelLimitsMode(): boolean

Get Model Limits Logics to use when no Model Limits have been set set to true: will use parents width and height, starting at 0 set to false: will use parents bounds

Returns

boolean

mode

Inherited from

BaseWidget.getAutoModelLimitsMode


getAutoModelLimitsStrategy

getAutoModelLimitsStrategy(): ModelLimitsStrategy

Get Model Limits Logics Strategy

Returns

ModelLimitsStrategy

strategy

Inherited from

BaseWidget.getAutoModelLimitsStrategy


getBaseLayer

getBaseLayer(index): Node

Return baseLayer at specified index

Parameters

Name Type Description
indexnumberindex at which to get the baseLayer for

Returns

Node

track

Inherited from

BaseWidget.getBaseLayer


getBaseLayers

getBaseLayers<S>(predicate, modify?): Iterator<Node>

Return iterator by baseLayers nodes

Type parameters

NameType
Sextends Node<S>

Parameters

Name Type Description
predicate(value: Node) => value is Sa filter function
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node>

Inherited from

BaseWidget.getBaseLayers

getBaseLayers(filter?, modify?): Iterator<Node>

Returns an iterator for child baseLayers. The iterator does not support adding or deleting items from overlays by default. If it is necessary to modify a collection of overlays, pass true as the last parameter.

Example

// Gets a writable iterator
const it = node.getOverlays(null, true);

Parameters

Name Type Description
Optional filter(node: Node) => booleanA filter function. Returns all overlays if null.
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node>

An iterator for child overlays.

Inherited from

BaseWidget.getBaseLayers


getBaseLayersCount

getBaseLayersCount(): number

Returns amount of baseLayers

Returns

number

Inherited from

BaseWidget.getBaseLayersCount


getBounds

getBounds(): Rect

Get the bounds in the parents model space. If bounds are not set, then parent model limits are used.

Returns

Rect

current bounds

Inherited from

BaseWidget.getBounds


getCache

getCache(): Cache

Return cache strategy to be used to cache children nodes

Returns

Cache

cache

Inherited from

BaseWidget.getCache


getChild

getChild(i): Node

Return node by index

Parameters

Name Type Description
inumberindex of the node

Returns

Node

Inherited from

BaseWidget.getChild


getChildren

getChildren<S>(predicate, modify?): Iterator<S>

Return iterator by child nodes

Type parameters

NameType
Sextends Node<S>

Parameters

Name Type Description
predicate(value: Node) => value is Sa filter function
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<S>

Inherited from

BaseWidget.getChildren

getChildren(filter?, modify?): Iterator<Node>

Returns an iterator for child nodes. The iterator does not support adding or deleting items from children by default. If it is necessary to modify a collection of children, pass true as the last parameter.

Example

// Gets a writable iterator
const it = node.getChildren(null, true);

Parameters

Name Type Description
Optional filter(node: Node) => booleanA filter function. Returns all nodes if null.
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node>

An iterator for child nodes.

Inherited from

BaseWidget.getChildren


getChildrenCount

getChildrenCount(): number

Return number of child nodes

Returns

number

Inherited from

BaseWidget.getChildrenCount


getClassName

getClassName(): string

Returns

string

Implementation of

IExportable.getClassName

Inherited from

BaseWidget.getClassName


getClipStyle

getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

BaseWidget.getClipStyle


getContentOrientation

getContentOrientation(): Orientation

Return content orientation

Returns

Orientation

content orientation

Inherited from

BaseWidget.getContentOrientation


getContentsArea

getContentsArea(transformation?): Rect

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

Parameters

Name Type Description
Optional transformationTransformationscene transformation

Returns

Rect

Inherited from

BaseWidget.getContentsArea


getContentsTransform

getContentsTransform(): Transformation

getContentsTransform() retrieves the world transformation of the node.

Returns

Transformation

transformation from model coordinates to bounds of the group

Inherited from

BaseWidget.getContentsTransform


getCss

getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

BaseWidget.getCss


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

BaseWidget.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

BaseWidget.getCssClasses


getCssTransform

getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

BaseWidget.getCssTransform


getData

getData(): AbstractDataTable | DataSource

returns data source

Returns

AbstractDataTable | DataSource

Overrides

BaseWidget.getData


getDataBinding

getDataBinding(): DataBinding | DataBindingRegistry

Return the data binding

Returns

DataBinding | DataBindingRegistry


getDepthLimits

getDepthLimits(): Range

Returns depth range.

Example

// In order to get difference between depths in px, you can get depth scale (or it can be time scale) from widget. Specify your depth unit and device unit 'px'. Then divide
// your depth range by scale and you get depth distance in pixels. See the following code:
const scale = widget.getDepthScale('m', 'px'); // meter to pixel
const size = widget.getDepthLimits().getSize() / scale;

Returns

Range


getDepthLimitsOptions

getDepthLimitsOptions(): DepthLimitsOptionsOut

Returns depth limits options

Returns

DepthLimitsOptionsOut

depth limits options


getDepthMarkers

getDepthMarkers(): DepthMarkersOut

Return Depth Marker settings

Returns

DepthMarkersOut

depth markers


getDepthScale

getDepthScale(scaleUnit?, deviceUnit?): number

Return scale to device. How many scale units in one device unit.

Example

//  to get the current depth scale of welllog widget.
import {UnitFactory} from '@int/geotoolkit/util/UnitFactory';
const uf = UnitFactory.getInstance();
widget.getDepthScale(uf.getUnit('cm'), uf.getUnit('cm'));

Parameters

Name Type Description
Optional scaleUnitstring | AbstractUnitscale unit of the display. if it is not specified then it takes from track container
Optional deviceUnitstring | AbstractUnitdevice unit of the display. if it is not specified then it takes from track container

Returns

number

a index scale to device or NaN if scale if not available


getDesiredHeight

getDesiredHeight(): string | number

Returns desired height of the group as a layoutable object This method is a helper method to get access to getLayoutStyle()

Returns

string | number

desired height ("undefined" by default)

Inherited from

BaseWidget.getDesiredHeight


getDesiredWidth

getDesiredWidth(): string | number

Returns desired width of the group as a layoutable object. This method is a helper method to get access to getLayoutStyle()

Returns

string | number

desired width ("undefined" by default)

Inherited from

BaseWidget.getDesiredWidth


getDeviceLimits

getDeviceLimits(): Rect

Return device limits

Returns

Rect

Inherited from

BaseWidget.getDeviceLimits


getDeviceUnit

getDeviceUnit(): AbstractUnit

Gets device unit

Returns

AbstractUnit

unit

Implementation of

IUnitInfo.getDeviceUnit


getExportElement

getExportElement(options?): AbstractDocumentElement

Returns exportable element

Parameters

Name Type Description
Optional optionsExportToPdfOptionsexport options

Returns

AbstractDocumentElement

return exportable element

Implementation of

IExportable.getExportElement


getFillStyle

getFillStyle(): FillStyle

Return fill style

Returns

FillStyle

fillStyle current fill style

Inherited from

BaseWidget.getFillStyle


getFooterContainer

getFooterContainer(): HeaderContainer<Node>

Returns footer container. Note that container's bounds are not necessary match with its visible limits as it can reside in other container. To get/set device footer size, use get/set FooterHeight() method

Returns

HeaderContainer<Node>


getFooterHeight

getFooterHeight(options?): number

Returns actual footer height or model height whenever 'auto' is specified

Parameters

Name Type Description
Optional optionsstringheader options,

Returns

number


getFooterScrollVisible

getFooterScrollVisible(): boolean

Gets visibility flag for the footer header scroll bar

Returns

boolean


getHeaderContainer

getHeaderContainer(): HeaderContainer<Node>

Returns header container. Note that container's bounds are not necessary match with its visible limits as it can reside in other container. To get/set device header size, use get/set HeaderHeight() method

Returns

HeaderContainer<Node>


getHeaderHeight

getHeaderHeight(options?): number

Returns actual header height or model height whenever 'auto' is specified

Parameters

Name Type Description
Optional optionsstringheader options

Returns

number


getHeaderScrollVisible

getHeaderScrollVisible(): boolean

Gets visibility flag for the header scroll bar

Returns

boolean


getHighlightFillStyle

getHighlightFillStyle(): FillStyle

get track highlight fillstyle

Returns

FillStyle

track background highlight fillstyle


getHighlightLineStyle

getHighlightLineStyle(): LineStyle

get border highlight line style

Returns

LineStyle

border line style for the track in 'highlighted' mode


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

BaseWidget.getId


getIndexType

getIndexType(): "time" | "depth" | IndexType

Gets index type

Returns

"time" | "depth" | IndexType

type


getIndexUnit

getIndexUnit(): AbstractUnit

Returns unit of the measure to be used to display scale in the header

Returns

AbstractUnit

Implementation of

IUnitInfo.getIndexUnit


getInfiniteMode

getInfiniteMode(): boolean

Return infinity mode flag

Returns

boolean

flag

Inherited from

BaseWidget.getInfiniteMode


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

Gets invalidate method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

BaseWidget.getInvalidateMethod


getLayout

getLayout(): Layout

Returns layout associated with the group

Returns

Layout

layout

Inherited from

BaseWidget.getLayout


getLayoutStyle

getLayoutStyle(): LayoutStyle<string | number>

return desired layout style

Returns

LayoutStyle<string | number>

Inherited from

BaseWidget.getLayoutStyle


getLineStyle

getLineStyle(): LineStyle

Return border style

Returns

LineStyle

Inherited from

BaseWidget.getLineStyle


getLocalTransform

getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

BaseWidget.getLocalTransform


getMarginsStyle

getMarginsStyle(): SpaceStyle<string | number>

Return margins style

Returns

SpaceStyle<string | number>

Inherited from

BaseWidget.getMarginsStyle


getMarkerFillStyle

getMarkerFillStyle(): FillStyle

Return marker fill style

Returns

FillStyle

current fill style


getMarkerLineStyle

getMarkerLineStyle(): LineStyle

Return marker line style

Returns

LineStyle

current marker line style


getMarkerSymbol

getMarkerSymbol(): SymbolShape

Returns symbol to be used to draw depth index markers

Returns

SymbolShape


getModelLimits

getModelLimits(): Rect

Gets model limits, the limits of this groups inside space

Returns

Rect

the current model limits

Inherited from

BaseWidget.getModelLimits


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

BaseWidget.getName


getOpacity

getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

BaseWidget.getOpacity


getOpacityBlendMode

getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

BaseWidget.getOpacityBlendMode


getOptions

getOptions(): OptionsOut

Returns widget options It is a same as getProperties

Returns

OptionsOut


getOrientation

getOrientation(): Orientation

Returns widget orientation

Returns

Orientation

widget orientation


getOverlay

getOverlay(index): Node

Return overlay at specified index

Parameters

Name Type Description
indexnumberindex at which to get the overlay for

Returns

Node

track

Inherited from

BaseWidget.getOverlay


getOverlayAt

getOverlayAt(index): Node

Return overlay at specified index

Deprecated

since 4.2 use getOverlay instead

Parameters

Name Type Description
indexnumberindex at which to get the overlay for

Returns

Node

track

Inherited from

BaseWidget.getOverlayAt


getOverlayLayer

getOverlayLayer(): Layer<Node>

Returns manipulator overlay to draw shapes that should move with the model

Returns

Layer<Node>

Inherited from

BaseWidget.getOverlayLayer


getOverlays

getOverlays<S>(predicate, modify?): Iterator<Node>

Return iterator by overlays nodes

Type parameters

NameType
Sextends Node<S>

Parameters

Name Type Description
predicate(value: Node) => value is Sa filter function
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node>

Inherited from

BaseWidget.getOverlays

getOverlays(filter?, modify?): Iterator<Node>

Returns an iterator for child overlays. The iterator does not support adding or deleting items from overlays by default. If it is necessary to modify a collection of overlays, pass true as the last parameter.

Example

// Gets a writable iterator
const it = node.getOverlays(null, true);

Parameters

Name Type Description
Optional filter(node: Node) => booleanA filter function. Returns all overlays if null.
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<Node>

An iterator for child overlays.

Inherited from

BaseWidget.getOverlays


getOverlaysCount

getOverlaysCount(): number

Returns amount of overlays

Returns

number

Inherited from

BaseWidget.getOverlaysCount


getPaddingStyle

getPaddingStyle(): SpaceStyle<string | number>

Return padding style

Returns

SpaceStyle<string | number>

padding

Inherited from

BaseWidget.getPaddingStyle


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

BaseWidget.getParent


getPreferredSize

getPreferredSize(): Rect

Return preferred size to layout children

Returns

Rect

Inherited from

BaseWidget.getPreferredSize


getProperties

getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

properties object

Overrides

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

BaseWidget.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

BaseWidget.getPropertyKeys


getRenderingFilter

getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

BaseWidget.getRenderingFilter


getResponsiveStyle

getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

BaseWidget.getResponsiveStyle


getRoot

getRoot(): Node

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

Returns

Node

the root node

Inherited from

BaseWidget.getRoot


getScaleScrollStrategy

getScaleScrollStrategy(): Delegate

Gets ScaleScrollStrategy ("undefined" by default)

Returns

Delegate

ScaleScrollStrategy (see "setScaleScrollStrategy" description for more info)

Overrides

BaseWidget.getScaleScrollStrategy


getScaleUnit

getScaleUnit(): AbstractUnit

Returns unit of the measure to be used to display scale in the header

Deprecated

since 4.1 Use getIndexUnit instead

Returns

AbstractUnit

Implementation of

IUnitInfo.getScaleUnit


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

BaseWidget.getSceneTransform


getSelectedTracks

getSelectedTracks(): LogTrack[]

return selected track collection

Returns

LogTrack[]


getSelectedVisuals

getSelectedVisuals(track?): Node[]

Return an array of the selected visuals for the specified track. if track is not specified then all selected visuals are returned. This method is a helper method and uses selected visuals from 'pick' tool. The code below shows how to get access to all selected tracks and visuals instead

Parameters

Name Type Description
Optional trackLogTracktrack to return selected visuals specified by node filter

Returns

Node[]


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

BaseWidget.getTag


getTool

getTool(): CompositeTool

Returns root tool associated to this widget

Returns

CompositeTool

Inherited from

BaseWidget.getTool


getToolByName

getToolByName<T>(toolName): Tools[T]

Returns the tool matching the given name.
This function also accepts tool 'path' instead of absolute name.
For example:
getToolByName("compositeTool.panningTools.trackPanning.TrackPanning")
Would return the same tool as
getToolByName("TrackPanning")
As long as there is only one tool named "TrackPanning" in this composite
See listToolsNames()

Type parameters

NameType
Textends string

Parameters

Name Type Description
toolNameTThe tool name or path

Returns

Tools[T]

Overrides

BaseWidget.getToolByName


getToolByType

getToolByType(toolType): AbstractTool

Returns the tool matching the given type. or null if nothing is matching the tool type
For example:
getToolByType(geotoolkit.controls.tools.Selection)
Would return the same tool as
getToolByName("pick")

Parameters

Name Type Description
toolTypeClassType<any>toolType of the tool

Returns

AbstractTool

Inherited from

BaseWidget.getToolByType


getTrack

getTrack(index): LogTrack

Returns LogTrack at specified index

Parameters

Name Type Description
indexnumberindex to return track at

Returns

LogTrack


getTrackAt

getTrackAt(index): LogTrack

Returns LogTrack at specified index

Deprecated

since 4.2 use getTrack instead

Parameters

Name Type Description
indexnumberindex to return track at

Returns

LogTrack


getTrackAtPosition

getTrackAtPosition(x, y): LogTrack

Returns track at specified position in plot coordinate

Parameters

Name Type Description
xnumberx coordinate position
ynumbery coordinate position

Returns

LogTrack

getTrackAtPosition(point): LogTrack

Parameters

Name Type
pointPoint

Returns

LogTrack


getTrackContainer

getTrackContainer(): LogTrackContainer

Returns

LogTrackContainer


getTrackFactory

getTrackFactory(): TrackFactory

Returns track factory

Returns

TrackFactory

track factory


getTrackFooter

getTrackFooter(track): LogTrackHeader

Returns the track footer if it exists

Parameters

Name Type Description
trackLogTrackcurrent welllog track

Returns

LogTrackHeader


getTrackHeader

getTrackHeader(track): LogTrackHeader

Returns the track header if it exists

Parameters

Name Type Description
trackLogTrackcurrent welllog track

Returns

LogTrackHeader


getTrackIndex

getTrackIndex(track): number

Return index of track

Deprecated

since 4.2 use indexOfTrack instead

Parameters

Name Type Description
trackLogTrackto get index

Returns

number

index of the track


getTrackManipulatorLayer

getTrackManipulatorLayer(): Layer<Node>

Returns manipulator overlay to draw temporary shapes on top of the track container

Returns

Layer<Node>


getTrackOptions

getTrackOptions(track): TrackOptionsOut

Returns track options

Parameters

Name Type Description
trackLogTracktrack to get options

Returns

TrackOptionsOut

track options


getTrackRenderDirection

getTrackRenderDirection(): TrackRenderDirection

Get track render direction

Returns

TrackRenderDirection


getTracks

getTracks(filter?, modify?): Iterator<LogTrack>

Return iterator by child tracks

Parameters

Name Type Description
Optional filter(node: LogTrack) => booleana filter function. Returns all tracks if null
Optional modifybooleanAn option to specify if the iterator supports adding/removing items from the collection. false by default.

Returns

Iterator<LogTrack>


getTracksCount

getTracksCount(): number

Returns amount of tracks

Returns

number

amount of tracks


getTracksSize

getTracksSize(): number

Calculate a real size of tracks

Returns

number

total width of the tracks


getVisible

getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

BaseWidget.getVisible


getVisibleDepthLimits

getVisibleDepthLimits(): Range

Return a depth range, which is visible now

Returns

Range


getVisibleDeviceLimits

getVisibleDeviceLimits(ignoreModelLimits?): Rect

Return visible device limits

Parameters

Name Type Description
Optional ignoreModelLimitsbooleanflag defines whether to ignore ModelLimits or not

Returns

Rect

Inherited from

BaseWidget.getVisibleDeviceLimits


getVisibleModelLimits

getVisibleModelLimits(ignoreModelLimits?): Rect

Return visible model limits

Parameters

Name Type Description
Optional ignoreModelLimitsbooleanflag defines whether to ignore ModelLimits or not

Returns

Rect

Inherited from

BaseWidget.getVisibleModelLimits


getWorldTransform

getWorldTransform(): Transformation

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

Returns

Transformation

Inherited from

BaseWidget.getWorldTransform


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

BaseWidget.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

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

BaseWidget.hasEventListener


highlightVisual

highlightVisual(visual, highlight): WellLogWidget

Highlights a visual or track. Called whenever a visual is selected to highlight it.
If user selects a curve and the track, the curve,track and header are highlighted. Programmatically deselecting a track doesn't automatically deselect curves.
Deselect all selected tracks and visuals using the example shown below.

Example

const selector = widget.getToolByName('pick');
const currentSelection = selector.getSelection();
currentSelection.forEach((visual) => {
widget.highlightVisual(visual, false);
});

Parameters

Name Type Description
visualNodeThe visual to highlight
highlightbooleanthe status of the highlight

Returns

WellLogWidget

this


highlightVisualHeader

Protected highlightVisualHeader(visual, highlight): void

Highlights header for the specified visual (if header exists)

Parameters

Name Type Description
visualNodea reference visual
highlightbooleanboolean value that indicating whether the header must be highlighted or de-highlighted

Returns

void


indexOfBaseLayer

indexOfBaseLayer(baseLayer): number

Return index of overlay ( index of the specified child or -1 if baseLayer is not found)

Parameters

Name Type Description
baseLayerNodebaseLayer to check index

Returns

number

Inherited from

BaseWidget.indexOfBaseLayer


indexOfChild

indexOfChild(node): number

Return index of child ( index of the specified child or -1 if node is not found)

Parameters

Name Type Description
nodeNodenode to check index

Returns

number

Inherited from

BaseWidget.indexOfChild


indexOfOverlay

indexOfOverlay(overlay): number

Return index of overlay ( index of the specified child or -1 if overlay is not found)

Parameters

Name Type Description
overlayNodeoverlay to check index

Returns

number

Inherited from

BaseWidget.indexOfOverlay


indexOfTrack

indexOfTrack(track): number

Return index of track

Parameters

Name Type Description
trackLogTrackto get index

Returns

number

index of the track


initializeTools

Protected initializeTools(options?): WellLogWidget

Function call in the constructor to initialize tools in the widget

Parameters

Name Type Description
Optional optionsObjecttools options
Optional options.crosshair"none" | OptionsJSON which defines crosshair cursor
Optional options.cursortrackingObjectcursor tracking options
Optional options.cursortracking.crosshairOptionsJSON which defines crosshair cursor.
Optional options.cursortracking.enabledbooleanenabled state
Optional options.cursortracking.multitooltipOptionsJSON which defines multi visual tooltip tool.
Optional options.cursortracking.tooltipOptionsJSON which defines single visual tooltip tool.
Optional options.cursortracking.tooltipregistryLogToolTipRegistryDefault registry for tool tip formatters, can be overridden by tooltip settings
Optional options.horizontal-splitter"none" | { enabled: boolean }horizontal splitter options
Optional options.tracksplitterOptionstracks splitter options

Returns

WellLogWidget

this

Overrides

BaseWidget.initializeTools


insertBaseLayer

insertBaseLayer(index, baseLayer): WellLogWidget

Insert child baseLayer at specified index

Parameters

Name Type Description
indexnumberspecified index
baseLayerNodea baseLayer to add

Returns

WellLogWidget

this

Inherited from

BaseWidget.insertBaseLayer


insertChild

insertChild(index, node): WellLogWidget

Insert child node at specified index

Parameters

Name Type Description
indexnumberspecified index
nodeNodea child node to add

Returns

WellLogWidget

this

Inherited from

BaseWidget.insertChild


insertOverlay

insertOverlay(index, overlay): WellLogWidget

Insert child overlay at specified index

Parameters

Name Type Description
indexnumberspecified index
overlayNodea overlay to add

Returns

WellLogWidget

this

Inherited from

BaseWidget.insertOverlay


insertTrack

insertTrack(index, track): StackedTrack

Insert track to the container at specified index

Parameters

Name Type Description
indexnumberindex of the track
trackStackedTracktrack type

Returns

StackedTrack

insertTrack(index, track): LogTrack

Insert track to the container at specified index

Parameters

Name Type Description
indexnumberindex of the track
trackInsertTracktrack or tracks to be inserted

Returns

LogTrack


invalidate

invalidate(bounds?, force?): WellLogWidget

Invalidate node

Parameters

Name Type Description
Optional boundsRectoptional rectangular area to be invalidated, or force flag if rectangle is empty
Optional forcebooleanoptional boolean parameter that can force invalidation

Returns

WellLogWidget

this

Inherited from

BaseWidget.invalidate


invalidateLayout

invalidateLayout(propagate?): WellLogWidget

Notify that layout is invalidated. Send event Events.LayoutInvalidated

Parameters

Name Type Description
Optional propagatebooleanpropagate invalidate layout to parent

Returns

WellLogWidget

this

Inherited from

BaseWidget.invalidateLayout


invalidateParent

invalidateParent(bounds?, force?): WellLogWidget

Invalidate parent area

Parameters

Name Type Description
Optional boundsRectarea to invalidate
Optional forcebooleanforce

Returns

WellLogWidget

this

Inherited from

BaseWidget.invalidateParent


isAttachedHeaders

isAttachedHeaders(): boolean

Return true if headers and footers are attached to track

Returns

boolean


isClippingEnabled

isClippingEnabled(): boolean

Returns if clipping is enabled or not for this node.

Returns

boolean

Inherited from

BaseWidget.isClippingEnabled


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

BaseWidget.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

BaseWidget.isEventPropagationEnabled


isHorizontalFlip

isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

flip

Inherited from

BaseWidget.isHorizontalFlip


isLayoutInvalidated

isLayoutInvalidated(): boolean

Return true if layout is invalid

Returns

boolean

Inherited from

BaseWidget.isLayoutInvalidated


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

BaseWidget.isNotificationEnabled


isPickingChildrenEnabled

isPickingChildrenEnabled(): boolean

Returns if picking children is enabled or not for this node.

Returns

boolean

pickingChildren

Inherited from

BaseWidget.isPickingChildrenEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

BaseWidget.isSelectable


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

BaseWidget.isSilent


isVerticalFlip

isVerticalFlip(): boolean

Return true if the representation is flipped vertically

Returns

boolean

flip

Inherited from

BaseWidget.isVerticalFlip


listToolsNames

listToolsNames(): string[]

List all the tools contained in this composite. Prepend their parent tools parent using a '.'.

Returns

string[]

Inherited from

BaseWidget.listToolsNames


loadTemplate

loadTemplate(template, registry?): WellLogWidget

Load template

Throws

when template not supported

Parameters

Name Type Description
templatestringtemplate to be applied to the widget
Optional registryRegistryregistry

Returns

WellLogWidget

this

Overrides

BaseWidget.loadTemplate


moveTo

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

MoveTo position of node to specified area

Parameters

Name Type Description
areaRectspecified area
Optional vAlignstringvertical alignment. It can be "top", "bottom", "center".
Optional hAlignstringhorizontal alignment It can be "left", "right", "center".

Returns

WellLogWidget

this

Inherited from

BaseWidget.moveTo


notify

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

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

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

Returns

WellLogWidget

this

Overrides

BaseWidget.notify


notifyRoot

Protected notifyRoot(event, source, args?): Node

Notify an even to root node

Parameters

Name Type Description
eventstringtype of event
sourceNodesource who called the event
Optional argsanyevent arguments

Returns

Node

this

Inherited from

BaseWidget.notifyRoot


off

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

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

Returns

WellLogWidget

this

Overrides

BaseWidget.off


on

on<E>(type, callback): WellLogWidget

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

Returns

WellLogWidget

this

Overrides

BaseWidget.on


onBoundsChanged

Protected onBoundsChanged(bounds): WellLogWidget

Occurs when bounds has been changed

Parameters

Name Type Description
boundsRectbound of the node in the parent coordinates

Returns

WellLogWidget

this

Inherited from

BaseWidget.onBoundsChanged


onChildAdded

Protected onChildAdded(child): void

This method is called it child or children are added

Parameters

Name Type Description
childNode | Iterator<Node>added child

Returns

void

Inherited from

BaseWidget.onChildAdded


onChildRemoved

Protected onChildRemoved(child): void

This method is called it child or children are removed

Parameters

Name Type Description
childNoderemoved child

Returns

void

Inherited from

BaseWidget.onChildRemoved


onParentChanged

Protected onParentChanged(node): WellLogWidget

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

WellLogWidget

this

Inherited from

BaseWidget.onParentChanged


onVisibilityChanged

Protected onVisibilityChanged(): void

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

Returns

void

Inherited from

BaseWidget.onVisibilityChanged


panToTrack

panToTrack(track?, index?, alignment?): WellLogWidget

Pans view to track with specified alignment and option depth. If depth is not specified, the middle of the track is used

Parameters

Name Type Description
Optional trackLogTracktrack to scroll
Optional indexnumberdepth or time of the specified track. if it is null it doesn't move in this direction.
Optional alignmentstringalignment of specified point according to container visible limits.

Returns

WellLogWidget


postRendering

Protected postRendering(context, callback?): void

To be called after rendering, used for PDF output

Parameters

Name Type Description
contextRenderingContextRendering Context
Optional callback() => voidcallback to be called after rendering

Returns

void

Inherited from

BaseWidget.postRendering


preRendering

Protected preRendering(context, callback?): void

Occurs before child rendering

Parameters

Name Type Description
contextRenderingContextRendering Context
Optional callback() => voidcallback to be called after rendering of geometry

Returns

void

Inherited from

BaseWidget.preRendering


rebuild

rebuild(force?, changes?): WellLogWidget

Rebuild node. This method resets state, cache, and invalidate node.

Parameters

Name Type Description
Optional forcebooleanoptional boolean parameter that can force invalidation
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

WellLogWidget

this

Inherited from

BaseWidget.rebuild


registerAnimationStyle

registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

BaseWidget.registerAnimationStyle


removeBaseLayer

removeBaseLayer(baseLayer): WellLogWidget

Remove child baseLayer

Parameters

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

Returns

WellLogWidget

this

Inherited from

BaseWidget.removeBaseLayer


removeChild

removeChild(node, disposeChildren?): WellLogWidget

Remove child node

Parameters

Name Type Description
nodeNode | Node[]node or array of nodes to be removed
Optional disposeChildrenbooleanautomatically dispose children. If it is true then method dispose is called for each child.

Returns

WellLogWidget

this

Inherited from

BaseWidget.removeChild


removeCssClass

removeCssClass(cssclass): WellLogWidget

Removes css class from node

Parameters

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

Returns

WellLogWidget

this

Inherited from

BaseWidget.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): WellLogWidget

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

WellLogWidget

this

Inherited from

BaseWidget.removeInvalidateHandler


removeOverlay

removeOverlay(overlay): WellLogWidget

Remove child overlay

Parameters

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

Returns

WellLogWidget

this

Inherited from

BaseWidget.removeOverlay


removeTrack

removeTrack(track, disposeTrack?): WellLogWidget

Remove the track with headers and footers

Parameters

Name Type Description
trackLogTracktrack to remove
Optional disposeTrackbooleanautomatically dispose track. If it is true then method dispose is called for track.

Returns

WellLogWidget


render

render(context): void

Render group

Parameters

Name Type Description
contextRenderingContextcontext to render group

Returns

void

Inherited from

BaseWidget.render


renderAsync

renderAsync(context, callback): void

Render node in asynchronous mode. This implementation doesn't support cache for now.

Parameters

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

Returns

void

Inherited from

BaseWidget.renderAsync


renderBackground

Protected renderBackground(context, bounds): WellLogWidget

Render background

Parameters

Name Type Description
contextRenderingContextcontext to render background
boundsRectgroup bounds

Returns

WellLogWidget

this

Inherited from

BaseWidget.renderBackground


renderBaseLayers

Protected renderBaseLayers(context): WellLogWidget

Render baseLayers on bottom of cache. This method does nothing, but can be implemented to render graphics on bottom of cache and between borders

Parameters

Name Type Description
contextRenderingContextcontext to render baseLayers

Returns

WellLogWidget

this

Inherited from

BaseWidget.renderBaseLayers


renderBaseLayersAsync

Protected renderBaseLayersAsync(context, callback): void

Render baseLayers on bottom of cache in asynchronous mode. This method calls renderBaseLayers

Parameters

Name Type Description
contextRenderingContextcontext to render overlays
callback() => voidcallback function

Returns

void

Inherited from

BaseWidget.renderBaseLayersAsync


renderChildren

Protected renderChildren(context): void

Render children

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

BaseWidget.renderChildren


renderChildrenAsync

Protected renderChildrenAsync(context, callback): void

Render children async

Parameters

Name Type Description
contextRenderingContextRendering Context
callback() => voidcallback function to be called then all children are rendered

Returns

void

Inherited from

BaseWidget.renderChildrenAsync


renderContent

Protected renderContent(context): void

render to specified context. This method calls preRendering, renderChildren, postRendering

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

BaseWidget.renderContent


renderContentAsync

Protected renderContentAsync(context, callback): void

Render children in asynchronous mode

Parameters

Name Type Description
contextRenderingContextThe rendering context to be used to draw the node
callback() => voidcallback function to be called then all children are rendered

Returns

void

Inherited from

BaseWidget.renderContentAsync


renderOverlays

Protected renderOverlays(context): WellLogWidget

Render overlays on top of cache. This method does nothing, but can be implemented to render graphics on top of cache and between borders

Parameters

Name Type Description
contextRenderingContextcontext to render overlays

Returns

WellLogWidget

this

Inherited from

BaseWidget.renderOverlays


renderOverlaysAsync

Protected renderOverlaysAsync(context, callback): void

Render overlays on top of cache in asynchronous mode. This method calls renderOverlays

Parameters

Name Type Description
contextRenderingContextcontext to render overlays
callback() => voidcallback function

Returns

void

Inherited from

BaseWidget.renderOverlaysAsync


resumeUpdate

resumeUpdate(rebuild?, changes?): WellLogWidget

Resume auto update

Parameters

Name Type Description
Optional rebuildbooleanforce rebuild
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

WellLogWidget

this

Inherited from

BaseWidget.resumeUpdate


rotate

rotate(theta, x, y): WellLogWidget

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

WellLogWidget

this

Inherited from

BaseWidget.rotate


saveTemplate

saveTemplate(registry?, options?): string

Save template

Parameters

Name Type Description
Optional registryRegistryregistry
Optional optionsOptionsserialization options

Returns

string

return template as a string

Overrides

BaseWidget.saveTemplate


scale

scale(scaleY, scaleX?): WellLogWidget

Change scale

Parameters

Name Type Description
scaleYnumberscaleY
Optional scaleXnumberscaleX

Returns

WellLogWidget

this

Overrides

BaseWidget.scale


scrollToIndex

scrollToIndex(index, position?, enableAnimation?): WellLogWidget

Scroll to index position

Parameters

Name Type Description
indexnumberindex to scroll to
Optional positionScrollToLocationposition to scroll to
Optional enableAnimationbooleanshow animation or not

Returns

WellLogWidget

this


setAnimationStyle

setAnimationStyle(animationStyle): WellLogWidget

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

WellLogWidget

Inherited from

BaseWidget.setAnimationStyle


setAnnotationSize

setAnnotationSize(annotationSizes): WellLogWidget

Set annotation sizes

Parameters

Name Type Description
annotationSizesAnnotationSizesannotation sizes

Returns

WellLogWidget

this


setAttachedHeaders

setAttachedHeaders(enable): WellLogWidget

Attach or detach header and footer

Parameters

Name Type Description
enablebooleanenable or disable attached headers

Returns

WellLogWidget

this


setAutoModelLimitsMode

setAutoModelLimitsMode(mode): WellLogWidget

Set Model Limits Logics to use when no Model Limits have been set set to true: will use parents width and height, starting at 0 set to false: will use parents bounds. This is convenient method. It creates AutoModelLimitsStrategy

Parameters

Name Type Description
modebooleanModel Limits Logics to be used

Returns

WellLogWidget

this

Inherited from

BaseWidget.setAutoModelLimitsMode


setAutoModelLimitsStrategy

setAutoModelLimitsStrategy(strategy): WellLogWidget

Set Model Limits Logics Strategy

Parameters

Name Type Description
strategyModelLimitsStrategyModel Limits logic strategy to use

Returns

WellLogWidget

this

Inherited from

BaseWidget.setAutoModelLimitsStrategy


setAxisHeaderType

setAxisHeaderType(headerType, containers?): WellLogWidget

Sets the axis header type

Parameters

Name Type Description
headerTypeHeaderTypeThe axis header type enum.
Optional containersHeaderContainer<Node>[]optional array of header containers. if not specified, the header and footer container is used.

Returns

WellLogWidget


setBounds

setBounds(bounds): WellLogWidget

Sets bounds of the node in the parent coordinates

Parameters

Name Type Description
boundsRect | Optionsbound of the node in the parent coordinates

Returns

WellLogWidget

this

Overrides

BaseWidget.setBounds


setCache

setCache(cache, rebuild?): WellLogWidget

Sets cache to be used to cache

Parameters

Name Type Description
cacheCachecache to be used
Optional rebuildbooleanrebuild cache

Returns

WellLogWidget

this

Inherited from

BaseWidget.setCache


setChild

setChild(index, node): WellLogWidget

Replace child node by index

Parameters

Name Type Description
indexnumberindex of the node
nodeNodenode

Returns

WellLogWidget

this

Inherited from

BaseWidget.setChild


setClipStyle

setClipStyle(style): WellLogWidget

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

WellLogWidget

this

Inherited from

BaseWidget.setClipStyle


setContentOrientation

setContentOrientation(orientation): WellLogWidget

Set content orientation

Parameters

Name Type Description
orientationOrientationcontent orientation

Returns

WellLogWidget

this

Inherited from

BaseWidget.setContentOrientation


setCss

setCss(style, merge?): WellLogWidget

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

WellLogWidget

this

Inherited from

BaseWidget.setCss


setCssClass

setCssClass(name): WellLogWidget

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

WellLogWidget

this

Inherited from

BaseWidget.setCssClass


setCssTransform

setCssTransform(transform): WellLogWidget

Set CSS transformation

Parameters

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

Returns

WellLogWidget

this

Inherited from

BaseWidget.setCssTransform


setData

setData(data): WellLogWidget

Sets a new data model

Parameters

Name Type Description
dataAbstractDataTable | DataSourcelogdata

Returns

WellLogWidget

this


setDataBinding

setDataBinding(binding, silent?): WellLogWidget

Sets the data binding

Parameters

Name Type Description
bindingDataBinding | DataBindingRegistrydata binding
Optional silentbooleansilent mode to forbid

Returns

WellLogWidget

this


setDepthLimits

setDepthLimits(minIndex, maxIndex): WellLogWidget

Sets depth limits for all tracks

Example

// full depth limits or scrollable limits of your widget can be set as follows:
widget.setDepthLimits(minDepth, maxDepth);

Parameters

Name Type Description
minIndexnumbermin index limit
maxIndexnumbermax index limit

Returns

WellLogWidget

setDepthLimits(range): WellLogWidget

Sets depth limits for all tracks

Parameters

Name Type Description
rangeRangedepth range

Returns

WellLogWidget


setDepthLimitsOptions

setDepthLimitsOptions(options): WellLogWidget

Set depth limits options

Parameters

Name Type Description
optionsDepthLimitsOptionsauto depth limits options

Returns

WellLogWidget


setDepthMarkers

setDepthMarkers(depths, lineStyle?, fillStyle?, symbolShape?): WellLogWidget

Set single depth marker or markers set

Parameters

Name Type Description
depthsnumber | number[] | DepthMarkersdepths marker value or options, null to hide all markers
Optional lineStyleTypeline style
Optional fillStyleTypefill style
Optional symbolShapeSymbolShapesymbol shape, applicable only to single depth

Returns

WellLogWidget

this


setDepthScale

setDepthScale(scale, scaleUnit?, deviceUnit?): WellLogWidget

Sets a depth scale factor.

Throws

Will throw an error if the current scale is NaN

Example

//  To set depth scale range as a ratio, you can use units as follows
import {UnitFactory} from '@int/geotoolkit/util/UnitFactory';
const unitFactory = UnitFactory.getInstance();
widget.setDepthScale(30, unitFactory.getUnit('feet'), unitFactory.getUnit('inch')); //1 inch == 30 feet

Parameters

Name Type Description
scalenumberA number of depth units in device unit.
Optional scaleUnitstring | AbstractUnitscale unit of the display. if it is not specified then it takes from track container
Optional deviceUnitstring | AbstractUnitdevice unit of the display. if it is not specified then it takes from track container

Returns

WellLogWidget

this


setDesiredHeight

setDesiredHeight(value, silent?): WellLogWidget

Sets desired height of the group as a layoutable object

Parameters

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

Returns

WellLogWidget

this

Inherited from

BaseWidget.setDesiredHeight


setDesiredWidth

setDesiredWidth(value, silent?): WellLogWidget

Sets desired width of the group as a layoutable object

Parameters

Name Type Description
valuestring | numberdesired width to set
Optional silentbooleansilent setting

Returns

WellLogWidget

this

Inherited from

BaseWidget.setDesiredWidth


setDeviceUnit

setDeviceUnit(unit): WellLogWidget

Sets device unit

Parameters

Name Type Description
unitstring | AbstractUnitdevice unit

Returns

WellLogWidget

this


setFillStyle

setFillStyle(fillStyle, merge?): WellLogWidget

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

WellLogWidget

this

Inherited from

BaseWidget.setFillStyle


setFooterHeight

setFooterHeight(height): WellLogWidget

Sets footer height

Parameters

Name Type Description
heightnumber | "auto"footer height in pixels or 'auto' to fit footer height

Returns

WellLogWidget

this


setFooterScrollVisible

setFooterScrollVisible(value): WellLogWidget

Sets footer scrollbar visibility flag

Parameters

Name Type Description
valuebooleanvisibility flag

Returns

WellLogWidget

this


setHeaderHeight

setHeaderHeight(height): WellLogWidget

Sets header height

Parameters

Name Type Description
heightnumber | "auto"header height in pixels or 'auto' to fit header height

Returns

WellLogWidget

this


setHeaderScrollVisible

setHeaderScrollVisible(value): WellLogWidget

Sets header scrollbar visibility flag

Parameters

Name Type Description
valuebooleanvisibility option

Returns

WellLogWidget

this


setHighlightFillStyle

setHighlightFillStyle(fillstyle): WellLogWidget

change highlight fillstyle

Parameters

Name Type Description
fillstyleFillStylehighlight fillstyle

Returns

WellLogWidget


setHighlightLineStyle

setHighlightLineStyle(linestyle): WellLogWidget

change highlight linestyle

Parameters

Name Type Description
linestyleLineStylehighlight linestyle

Returns

WellLogWidget


setHorizontalFlip

setHorizontalFlip(enable): WellLogWidget

Set horizontal flip of the representation

Parameters

Name Type Description
enablebooleanenable flip

Returns

WellLogWidget

this

Inherited from

BaseWidget.setHorizontalFlip


setId

setId(id): WellLogWidget

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

WellLogWidget

this

Inherited from

BaseWidget.setId


setIndexType

setIndexType(type, unit?): WellLogWidget

Sets index type, user can provide index unit, otherwise specify unit with setIndexUnit method

Parameters

Name Type Description
type"time" | "depth" | IndexTypeindex type
Optional unitstring | AbstractUnitindex unit

Returns

WellLogWidget


setIndexUnit

setIndexUnit(unit): WellLogWidget

Sets index unit

Parameters

Name Type Description
unitstring | AbstractUnitindex unit

Returns

WellLogWidget

this


setInfiniteMode

setInfiniteMode(infinityMode): WellLogWidget

Set infinity mode flag to draw composite without collision check

Parameters

Name Type Description
infinityModebooleaninfinity mode flag

Returns

WellLogWidget

this

Inherited from

BaseWidget.setInfiniteMode


setLayout

setLayout(layout): WellLogWidget

Associate layout with a group.

Parameters

Name Type Description
layoutRecord<string, any> | Layoutlayout instance to be set or layout properties to apply

Returns

WellLogWidget

this

Inherited from

BaseWidget.setLayout


setLayoutInvalidated

Protected setLayoutInvalidated(invalidated): void

Set invalidation status

Parameters

Name Type Description
invalidatedbooleaninvalidated layout

Returns

void

Inherited from

BaseWidget.setLayoutInvalidated


setLayoutStyle

setLayoutStyle(layoutStyle, silent?, merge?): WellLogWidget

specify desired layout style

Parameters

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

Returns

WellLogWidget

this

Inherited from

BaseWidget.setLayoutStyle


setLineStyle

setLineStyle(lineStyle, merge?): WellLogWidget

Sets border color Returns this

Parameters

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

Returns

WellLogWidget

this

Inherited from

BaseWidget.setLineStyle


setLocalTransform

setLocalTransform(localTransform, force?): WellLogWidget

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

WellLogWidget

this

Inherited from

BaseWidget.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): WellLogWidget

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

WellLogWidget

this

Inherited from

BaseWidget.setMarginsStyle


setMarkerFillStyle

setMarkerFillStyle(fillStyle, merge?): WellLogWidget

Sets marker fill style

Parameters

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

Returns

WellLogWidget

this


setMarkerLineStyle

setMarkerLineStyle(lineStyle, merge?): WellLogWidget

Sets marker line style

Parameters

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

Returns

WellLogWidget

this


setMarkerSymbol

setMarkerSymbol(symbol): WellLogWidget

Sets symbol to be used to render depth index markers

Parameters

Name Type Description
symbolSymbolShapesymbols to be used for markers

Returns

WellLogWidget

this


setModelLimits

setModelLimits(modelLimits): WellLogWidget

Sets the model limits of the node

Parameters

Name Type Description
modelLimitsRectThe model limits of the node

Returns

WellLogWidget

this

Overrides

BaseWidget.setModelLimits


setName

setName(name): WellLogWidget

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

WellLogWidget

this

Inherited from

BaseWidget.setName


setNodeFilter

setNodeFilter(nodeFilter): WellLogWidget

Sets node filter for selection tool

Parameters

Name Type Description
nodeFilter(item: Node) => booleanfilter that allows to filter selected nodes.

Returns

WellLogWidget

this


setNotification

setNotification(notify, force?): WellLogWidget

set notification state

Parameters

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

Returns

WellLogWidget

this

Inherited from

BaseWidget.setNotification


setOpacity

setOpacity(opacity, blendMode?): WellLogWidget

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

WellLogWidget

this

Inherited from

BaseWidget.setOpacity


setOptions

setOptions(options?): WellLogWidget

Sets widget options. The same as setProperties

Example

//call  setOptions on widget after construction and change the default header size(84) as follows.
widgets.setOptions({
'header' : {
'height': 184
}
});

Parameters

Name Type Description
Optional optionsOptionsaddition options

Returns

WellLogWidget


setOrientation

setOrientation(orientation): WellLogWidget

set widget orientation and apply rotation if needed.

Parameters

Name Type Description
orientationOrientationwidget orientation

Returns

WellLogWidget

this


setPaddingStyle

setPaddingStyle(paddingStyle, merge?): WellLogWidget

Sets padding style

Parameters

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

Returns

WellLogWidget

this

Inherited from

BaseWidget.setPaddingStyle


setProperties

setProperties(properties?): WellLogWidget

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

WellLogWidget

Overrides

BaseWidget.setProperties


setProperty

setProperty(name, value): WellLogWidget

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

WellLogWidget

this

Inherited from

BaseWidget.setProperty


setRenderingFilter

setRenderingFilter(filter): WellLogWidget

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

WellLogWidget

this

Inherited from

BaseWidget.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): WellLogWidget

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

WellLogWidget

this

Inherited from

BaseWidget.setResponsiveStyle


setScaleScrollStrategy

setScaleScrollStrategy(scaleScrollStrategy, reset?): WellLogWidget

Sets scale scroll strategy.

Parameters

Name Type Description
scaleScrollStrategyDelegatescaleScrollStrategy to set
Optional resetbooleanflag to reset previous transformation, true by default

Returns

WellLogWidget

this

Overrides

BaseWidget.setScaleScrollStrategy


setSelectable

setSelectable(selectable): WellLogWidget

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

WellLogWidget

this

Inherited from

BaseWidget.setSelectable


setSilent

setSilent(bool): WellLogWidget

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

WellLogWidget

this

Inherited from

BaseWidget.setSilent


setTag

setTag(tag): WellLogWidget

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

Parameters

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

Returns

WellLogWidget

this

Inherited from

BaseWidget.setTag


setTool

Protected setTool(tool): WellLogWidget

Set root tool associated to this widget

Parameters

Name Type Description
toolCompositeTooltool to be set

Returns

WellLogWidget

Inherited from

BaseWidget.setTool


setTrackFactory

setTrackFactory(trackFactory): WellLogWidget

Sets track factory

Parameters

Name Type Description
trackFactoryTrackFactorytrack factory

Returns

WellLogWidget

this


setTrackOptions

setTrackOptions(track, options): LogTrack

Sets track options

Example

//The code to configure the gridlines in a log track, specify logdecades and generate multiple logticks
import {TrackType} from '@int/geotoolkit/welllog/TrackType';
widget.setTrackOptions(track, {
'type:': TrackType.LogTrack,
'value': {
'logstart': 0.2,
'logdecades': 4
}
});

Parameters

Name Type Description
trackLogTracklog track
optionsTrackOptionstrack options

Returns

LogTrack


setTrackRenderDirection

setTrackRenderDirection(direction): WellLogWidget

Set track render direction

Parameters

Name Type Description
directionTrackRenderDirectionset track render direction

Returns

WellLogWidget


setTrackWidth

setTrackWidth(width, track): WellLogWidget

Set track width and layout remains track

Example

// To change tracks' size manually use:
widgets.setTrackWidth(width, track);

Parameters

Name Type Description
widthnumbertrack width
trackLogTrack | LogTrack[]track to change track width

Returns

WellLogWidget

this


setVerticalFlip

setVerticalFlip(flip): WellLogWidget

Set vertical flip of the representation

Parameters

Name Type Description
flipbooleanflag to set the vertical flip of the representation

Returns

WellLogWidget

this

Inherited from

BaseWidget.setVerticalFlip


setVisible

setVisible(value): WellLogWidget

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

WellLogWidget

this

Inherited from

BaseWidget.setVisible


setVisibleDepthLimits

setVisibleDepthLimits(fromIndex, toIndex): WellLogWidget

Sets visible depth limits

Parameters

Name Type Description
fromIndexnumberfromindex limit
toIndexnumbertoindex limit

Returns

WellLogWidget

setVisibleDepthLimits(range): WellLogWidget

Parameters

Name Type
rangeRange

Returns

WellLogWidget


setVisibleModelLimits

setVisibleModelLimits(visibleModelBounds, deviceBounds?): WellLogWidget

Set visible model limits

Parameters

Name Type Description
visibleModelBoundsRectvisible model limits or bounds
Optional deviceBoundsRectdevice bounds

Returns

WellLogWidget

this

Inherited from

BaseWidget.setVisibleModelLimits


setZIndex

setZIndex(value): WellLogWidget

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

WellLogWidget

this

Inherited from

BaseWidget.setZIndex


shear

shear(shx, shy): WellLogWidget

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

WellLogWidget

this

Inherited from

BaseWidget.shear


suspendUpdate

suspendUpdate(): WellLogWidget

Suspend auto update

Returns

WellLogWidget

this

Inherited from

BaseWidget.suspendUpdate


toString

toString(): string

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

Returns

string

A string representation

Inherited from

BaseWidget.toString


translate

translate(tx, ty): WellLogWidget

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

WellLogWidget

this

Inherited from

BaseWidget.translate


unregisterAnimationStyle

unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootAnimatedNoderoot node for node

Returns

void

Inherited from

BaseWidget.unregisterAnimationStyle


updateData

updateData(): WellLogWidget

Send event DataUpdating to update data.

Deprecated

since 4.0

Returns

WellLogWidget

this


updateFooter

updateFooter(): void

Update footer

Returns

void


updateHeader

updateHeader(): void

Update header

Returns

void


updateLayout

updateLayout(targets?, updateScrollBarState?): WellLogWidget

Updates layout(s)

Parameters

Name Type Description
Optional targetsILayoutable[]list of nodes to update layout
Optional updateScrollBarStatebooleanupdate scroll bar flag

Returns

WellLogWidget

this

Overrides

BaseWidget.updateLayout


updateSceneTransformation

updateSceneTransformation(): WellLogWidget

Update scene transformation

Returns

WellLogWidget

this

Inherited from

BaseWidget.updateSceneTransformation


updateScrollPositions

updateScrollPositions(updateScrollBarState?, enableAnimation?): WellLogWidget

update Scroll Positions using visible limits and model limits.

Parameters

Name Type Description
Optional updateScrollBarStatebooleanupdate Scroll Positions using visible limits and model limits or not
Optional enableAnimationbooleanshow animation

Returns

WellLogWidget


updateState

updateState(regions?, changes?): WellLogWidget

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

WellLogWidget

this

Inherited from

BaseWidget.updateState


updateSuspended

updateSuspended(): boolean

Return state of suspend state

Returns

boolean

state of update

Inherited from

BaseWidget.updateSuspended


updateTimeStamp

Protected updateTimeStamp(): WellLogWidget

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

Returns

WellLogWidget

this

Inherited from

BaseWidget.updateTimeStamp


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

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

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

BaseWidget.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

BaseWidget.getClassName


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

BaseWidget.isSceneGraphNotificationEnabled