Last updated

API / geotoolkit / welllog / multiwell / MultiWellWidget / MultiWellWidget

Class: MultiWellWidget

multiwell.MultiWellWidget.MultiWellWidget

The MultiWell widget is a widget that provides a base multi well container functionality. By default, a Multi Well Correlation Widget has a track container, header and footer containers, and default tools. A track container can display different well tracks, correlation panels, or log tracks. The wells can be visualized with different depth scales and offsets. The well track is based on WellLog widget functionality and supports all visuals and templates supported for single well visualization. Wells are located in track container, which can have own model limits, units and scale factors.

The Default tools include:

  • Horizontal scrollbar
  • Panning
  • Zoom

Example

import {MultiWellWidget} from '@int/geotoolkit/welllog/multiwell/MultiWellWidget';
import {TrackType as MultiTrackType} from '@int/geotoolkit/welllog/multiwell/TrackType';
import {Range} from '@int/geotoolkit/util/Range';
import {TrackType} from '@int/geotoolkit/welllog/TrackType';
import {CorrelationTrack} from '@int/geotoolkit/welllog/multiwell/CorrelationTrack';
import {CorrelationMarker} from '@int/geotoolkit/welllog/multiwell/correlation/CorrelationMarker';
import {LogMarker} from '@int/geotoolkit/welllog/LogMarker';
import {LineStyle} from '@int/geotoolkit/attributes/LineStyle';
import {TextStyle} from '@int/geotoolkit/attributes/TextStyle';
import {AnchorType} from '@int/geotoolkit/util/AnchorType';
// Create the empty widget
const widget = new MultiWellWidget().setLayoutStyle({'left': 0, 'top': 0, 'right': 0, 'bottom': 0});
// Add the first well
const well1 = widget.addTrack(MultiTrackType.WellTrack, {
'range': new Range(0, 500),
'welllog': {
'range': new Range(4500, 5000)
}
});
// Add the correlation track
const correlationTrack1 = widget.addTrack(MultiTrackType.CorrelationTrack, {
'width': 50
});
// add the second well
const well2 = widget.addTrack(MultiTrackType.WellTrack, {
'range': new Range(50, 300),
'welllog': {
'range': new Range(2500, 5000)
}
});
// Add data to the wells
function addWellData (well: WellTrack, startDepth: number) {
well.addTrack(TrackType.IndexTrack);
well.addTrack(TrackType.LinearTrack)
.addChild([
createCurve(createTestData(startDepth, 10, 'GR'))
.setLineStyle(new LineStyle(Helpers.getColor('green'), 1)),
createCurve(createTestData(startDepth, 10, 'CALI'))
.setLineStyle(new LineStyle(Helpers.getColor('orange'), 1))
]);
}
// Add tops as a logMarker
function addTops(well: WellTrack, name: string, depth: number, color: string) {
const top = new LogMarker(depth);
top.setLineStyle(LineStyle.fromObject({'color': color}));
top.setTextStyle(TextStyle.fromObject({
'color': color,
'alignment': "left",
'font': "12px sans-serif"
}));
top.setNameLabel(name);
top.setNameLabelPosition(AnchorType.TopCenter);
top.setDepthLabel(depth);
top.setDepthLabelPosition(AnchorType.BottomCenter);
well.getMarkerLayer().addChild(top);
}
// Add the correlation between the wells.
function addTopsCorrelation(track: CorrelationTrack, leftDepth: number, rightDepth: number, color) {
track.addChild(new CorrelationMarker({
'linestyle': {
'color': color,
'width': 2,
'pixelsnapmode': {'x': true, 'y': true}
},
'leftdepth': leftDepth,
'rightdepth': rightDepth
}));
}

Hierarchy

Implements

Table of contents

Constructors
Methods
addAnnotationaddBaseLayeraddChild
addCssClassaddInvalidateHandleraddOverlay
addTrackadjustEqualDistanceadjustPosition
adjustProportionalDistancealignToDepthalignToMarker
alignToMarkersalignTracksapplyOpacity
applyResponsiveStylebeginExportchangeBaseLayerOrder
changeChildOrderchangeOverlayOrderchangeTrackOrder
checkCollisionclearBaseLayersclearCache
clearChildrenclearOverlaysclearTracks
cloneconnectconnectStyle
connectToolconvertModelDepthToTrackDepthconvertTrackDepthToModelDepth
copyConstructorcreateTrackdisconnectStyle
disconnectTooldisposedrawBorder
enableClippingenableEventPropagationenablePickingChildren
endExportenumerateNodesexecute
exportToPdffilterfitToHeight
fitToWidthforEachVisualgetAnimationStyle
getAnnotationgetAutoModelLimitsModegetAutoModelLimitsStrategy
getBaseLayergetBaseLayersgetBaseLayersCount
getBoundsgetCachegetCenterDepthLimits
getCenterModelLimitsgetCenterVisibleDepthLimitsgetCenterVisibleModelLimits
getChildgetChildrengetChildrenCount
getClassNamegetClipStylegetContentOrientation
getContentsAreagetContentsTransformgetCss
getCssClassgetCssClassesgetCssTransform
getDatagetDataBindinggetDesiredHeight
getDesiredWidthgetDeviceLimitsgetDistanceStrategy
getExportElementgetExportLimitsgetExportScale
getFillStylegetFixedTracksWidthgetFooterContainer
getFooterHeightgetHeaderContainergetHeaderHeight
getIdgetIndexUnitgetInfiniteMode
getInvalidateMethodgetLayoutgetLayoutStyle
getLineStylegetLocalTransformgetMarginsStyle
getModelDepthScalegetModelLimitsgetModelTrackSize
getNamegetOpacitygetOpacityBlendMode
getOptionsgetOrientationgetOverlay
getOverlayAtgetOverlayLayergetOverlays
getOverlaysCountgetPaddingStylegetParent
getPreferredSizegetPropertiesgetProperty
getPropertyKeysgetRenderingFiltergetResponsiveStyle
getRootgetScaleScrollStrategygetSceneTransform
getSelectedTrackgetTaggetTool
getToolByNamegetToolByTypegetTrack
getTrackAtgetTrackAtPositiongetTrackContainer
getTrackFootergetTrackHeadergetTrackManipulatorLayer
getTracksgetTracksCountgetVisible
getVisibleDeviceLimitsgetVisibleModelLimitsgetWorldTransform
getZIndexhasCssClasshasEventListener
indexOfBaseLayerindexOfChildindexOfOverlay
indexOfTrackinitializeToolsinsertBaseLayer
insertChildinsertOverlayinsertTrack
invalidateinvalidateLayoutinvalidateParent
isAttachedHeadersisClippingEnabledisDisposed
isEventPropagationEnabledisHorizontalFlipisLayoutInvalidated
isNotificationEnabledisPickingChildrenEnabledisSelectable
isSilentisVerticalFliplistToolsNames
loadTemplatemoveTonotify
notifyRootoffon
onBoundsChangedonChildAddedonChildRemoved
onParentChangedonTrackAddedonTrackRemoving
onVisibilityChangedpanTopanToTrack
postRenderingpreRenderingrebuild
registerAnimationStyleremoveAnnotationremoveBaseLayer
removeChildremoveCssClassremoveInvalidateHandler
removeOverlayremoveTrackremoveTrackAt
renderrenderAsyncrenderBackground
renderBaseLayersrenderBaseLayersAsyncrenderChildren
renderChildrenAsyncrenderContentrenderContentAsync
renderOverlaysrenderOverlaysAsyncresetTracksDepthScale
resumeUpdaterotatesaveTemplate
scalescrollTrackByDepthscrollTrackToDepth
setAnimationStylesetAutoModelLimitsModesetAutoModelLimitsStrategy
setBoundssetCachesetCenterDepthLimits
setCenterModelLimitssetCenterVisibleDepthLimitssetCenterVisibleModelLimits
setChildsetClipStylesetContentOrientation
setCsssetCssClasssetCssTransform
setDatasetDataBindingsetDesiredHeight
setDesiredWidthsetDistanceStrategysetExportLimits
setExportScalesetFillStylesetFixedTracksWidth
setFooterHeightsetHeaderHeightsetHorizontalFlip
setIdsetIndexUnitsetInfiniteMode
setLayoutsetLayoutInvalidatedsetLayoutStyle
setLineStylesetLocalTransformsetMarginsStyle
setModelDepthScalesetModelLimitssetName
setNodeFiltersetNotificationsetOpacity
setOptionssetOrientationsetPaddingStyle
setPropertiessetPropertysetRenderingFilter
setResponsiveStylesetScaleScrollStrategysetSelectable
setSelectedTracksetSilentsetTag
setToolsetVerticalFlipsetVisible
setVisibleModelLimitssetZIndexshear
suspendUpdatetoStringtranslate
unregisterAnimationStyleupdateDataupdateFooter
updateHeaderupdateLayoutupdateSceneTransformation
updateScrollPositionsupdateStateupdateSuspended
updateTimeStampzoomInzoomOut
enableSceneGraphNotificationfindParentgetClassName
isSceneGraphNotificationEnabled
Css Properties
Name Type Description
attachedheadersbooleanAttached well headers and footers
autotrackslimitsbooleanCalculates content model limits based on tracks position as union
autowellsoncorrelationtrackbooleanAutomatically sets left and right well for correlation track
deviceunitstringDevice unit for content to apply scale
horizontalscrollablebooleanDefines if plot displays horizontal scrollbars
indentnumberIndent between tracks
indexunitstringModel limits' unit in vertical direction
offscreentrackpanningnumberA percent of how much track should remain in the visible space when panning a track
orientationOrientationOrientation
verticalscrollablebooleanDefines if plot displays vertical scrollbars | object containing specific settings for all three containers
viewcachebooleanEnable tiled cache. It increases rendering performance for historical data
visiblelimitsRectDefine visible content limits in model coordinates
visiblelimits-heightnumberHeight
visiblelimits-readonlybooleanReadonly
visiblelimits-widthnumberWidth
visiblelimits-xnumberLeft
visiblelimits-ynumberTop

Contents

Constructors

new MultiWellWidget(options)

new MultiWellWidget(options?)

Creates MultiWellWidget

Parameters

Name Type Description
Optional optionsOptionsoptions

Overrides

BaseWidget.constructor

Methods

addAnnotation

addAnnotation(name, item): MultiWellWidget

Add annotation to annotation container

Parameters

Name Type Description
namestringname of container
itemAxis | Group<Node>item to add

Returns

MultiWellWidget


addBaseLayer

addBaseLayer(baseLayer): MultiWellWidget

Add baseLayer to container

Parameters

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

Returns

MultiWellWidget

this

Inherited from

BaseWidget.addBaseLayer


addChild

addChild(node): MultiWellWidget

Add a child node

Parameters

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

Returns

MultiWellWidget

this

Inherited from

BaseWidget.addChild


addCssClass

addCssClass(cssclass): MultiWellWidget

Adds new css class to node

Parameters

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

Returns

MultiWellWidget

this

Inherited from

BaseWidget.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): MultiWellWidget

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

MultiWellWidget

this

Inherited from

BaseWidget.addInvalidateHandler


addOverlay

addOverlay(overlay): MultiWellWidget

Add overlay to container

Parameters

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

Returns

MultiWellWidget

this

Inherited from

BaseWidget.addOverlay


addTrack

addTrack(track, options?): CorrelationTrack

Add track, well to the container.

By default well track track has size specified in the range options and depth range specified in the options welllog

Example

// The code below shows how to create a well track with position from 0 to 300 in the model coordinates and depth range from 500 to 1000
import {TrackType} from '@int/geotoolkit/welllog/multiwell/TrackType';
import {Range} from '@int/geotoolkit/util/Range';
const well = widget.addTrack(TrackType.WellTrack, {
'width': 400,
'range': new Range(0, 300),
'welllog': {
'range': new Range(500, 1000)
}
});

Example

// The code below shows how to create a well track to provide the first parameter
import {TrackType} from '@int/geotoolkit/welllog/multiwell/TrackType';
import {Range} from '@int/geotoolkit/util/Range';
const well = widget.addTrack({
'type': TrackType.WellTrack
'width': 400,
'range': new Range(0, 300),
'welllog': {
'range': new Range(500, 1000)
}
});

Parameters

Name Type Description
trackCorrelationTracktrack to add
Optional optionsOptionsoptions additional options if track has a TrackType

Returns

CorrelationTrack

addTrack(track, options?): WellTrack

Parameters

Name Type
trackWellTrack
Optional optionsOptions

Returns

WellTrack

addTrack(track, options?): ProxyWellTrack

Parameters

Name Type
trackProxyTrack
Optional optionsOptions

Returns

ProxyWellTrack

addTrack(track): ITrack

Parameters

Name Type
trackTrack

Returns

ITrack

addTrack(track, options?): ITrack

Parameters

Name Type
trackITrack
Optional optionsOptions

Returns

ITrack

addTrack(track, options?): ITrack[]

Parameters

Name Type
trackITrack[]
Optional optionsOptions

Returns

ITrack[]


adjustEqualDistance

adjustEqualDistance(width): MultiWellWidget

Set all correlation tracks of equal width

Parameters

Name Type Description
widthnumberwidth to adjust correlation tracks

Returns

MultiWellWidget

this


adjustPosition

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

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

MultiWellWidget

this

Inherited from

BaseWidget.adjustPosition


adjustProportionalDistance

adjustProportionalDistance(scale): MultiWellWidget

Set correlation track widths proportional to well distanse

Parameters

Name Type Description
scalenumberreal world units to pixels conversion factor

Returns

MultiWellWidget

this


alignToDepth

alignToDepth(depth, alignment?, containment?): MultiWellWidget

Distributes the same alignment to all tracks with regard to the top, the bottom or center of wells.

Parameters

Name Type Description
depthnumbera new wells depth to be aligned to
Optional alignmentstringalignment of track according to container visible limits. alignment value is "top", "bottom", "center".
Optional containmentbooleanverify if a track contains depth. If it is true and track doesn't have specified depth then it will be scrolled to the top.

Returns

MultiWellWidget

this


alignToMarker

alignToMarker(name, alignment?): MultiWellWidget

Distributes the same alignment to all tracks with regard to the top, the bottom or center of wells by marker name. If track doesnt' have specified marker then it will be scrolled to top.

Parameters

Name Type Description
namestring | (n: Node) => booleanmarker name or function to find marker
Optional alignmentstringvertical alignment of track according to container visible limits. alignment value is "top", "bottom", "center"

Returns

MultiWellWidget

this


alignToMarkers

alignToMarkers(names?): MultiWellWidget

Level the tops to adjust or "flat" them so that they lie level across all the well tracks. This may involve stretching or squeezing the spaces between the tops to level them.

Parameters

Name Type Description
Optional namesstring[]marker names

Returns

MultiWellWidget

this


alignTracks

alignTracks(offset?, alignment?): MultiWellWidget

Align tracks by the top position

Parameters

Name Type Description
Optional offsetnumberoffset in container coordinates
Optional alignmentstringvertical alignment of tracks in container. It can be 'top', 'bottom', 'center'

Returns

MultiWellWidget

this


applyOpacity

Protected applyOpacity(context): MultiWellWidget

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

MultiWellWidget

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(): MultiWellWidget

Used to prepare object before exporting

Returns

MultiWellWidget

this

Implementation of

IExportable.beginExport


changeBaseLayerOrder

changeBaseLayerOrder(overlay, order, anchor?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.changeBaseLayerOrder


changeChildOrder

changeChildOrder(node, order, anchor?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.changeChildOrder


changeOverlayOrder

changeOverlayOrder(overlay, order, anchor?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.changeOverlayOrder


changeTrackOrder

changeTrackOrder(track, order, anchor?): MultiWellWidget

changes the layout order of the tracks being rendered.

Parameters

Name Type Description
trackITrackchild track in the MultiWellWidget
orderNodeOrderposition to be added
Optional anchorITrackanchor track to specify changeOrder with respect to this track

Returns

MultiWellWidget

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?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.clearBaseLayers


clearCache

clearCache(): MultiWellWidget

Clear cache

Returns

MultiWellWidget

this

Inherited from

BaseWidget.clearCache


clearChildren

clearChildren(disposeChildren?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.clearChildren


clearOverlays

clearOverlays(disposeOverlays?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.clearOverlays


clearTracks

clearTracks(disposeTracks?): MultiWellWidget

Remove all tracks from this widget

Parameters

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

Returns

MultiWellWidget

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?): MultiWellWidget

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

MultiWellWidget


connectStyle

connectStyle(style, type, callback): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.connectStyle


connectTool

connectTool(tool): MultiWellWidget

Connect a new tool with a toolname to the widget

Parameters

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

Returns

MultiWellWidget

this

Inherited from

BaseWidget.connectTool


convertModelDepthToTrackDepth

convertModelDepthToTrackDepth(track, depth): number

Convert track container vertical space to track depth

Parameters

Name Type Description
trackITracktrack
depthnumberdepth

Returns

number


convertTrackDepthToModelDepth

convertTrackDepthToModelDepth(track, depth): number

Convert track depth to container vertical model space

Parameters

Name Type Description
trackITracktrack
depthnumberdepth

Returns

number


copyConstructor

Protected copyConstructor(src, deepCopy?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.copyConstructor


createTrack

createTrack(track, options?): CorrelationTrack

A factory method to create an instance of the track

See

WellLogWidget for all available options for wellllog properties of the well track

Example

title supports templates with HTML
import {TrackType} from '@int/geotoolkit/welllog/TrackType';
_multiWellWidget.createTrack(TrackType.WellTrack, {
'title': '<b>Well ' + (_wellIndex++) + '</b><p>1 ${deviceUnit} : ${scaleValue} ${scaleUnit}</p>'
});
Supported keywords:
${name} - track name
${deviceUnit} - device unit symbol
${scaleValue} - scale value
${scaleUnit} - scale unit symbol

Parameters

Name Type Description
trackCorrelationTrack
Optional optionsOptionsoptions

Returns

CorrelationTrack

createTrack(track, options?): WellTrack

Parameters

Name Type
trackWellTrack
Optional optionsOptions

Returns

WellTrack

createTrack(track, options?): ProxyWellTrack

Parameters

Name Type
trackProxyTrack
Optional optionsOptions

Returns

ProxyWellTrack

createTrack(type, options?): ITrack

Parameters

Name Type
typeTrackType
Optional optionsTrackOptions

Returns

ITrack


disconnectStyle

disconnectStyle(style, type, callback): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.disconnectStyle


disconnectTool

disconnectTool(tool): MultiWellWidget

Disconnect the tool from the widget

Parameters

Name Type Description
toolAbstractTool | AbstractTool[]tool to disconnect

Returns

MultiWellWidget

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?): MultiWellWidget

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

Parameters

Name Type Description
localContextRenderingContextThe local rendering context
Optional boundsRectgroup bounds

Returns

MultiWellWidget

this

Inherited from

BaseWidget.drawBorder


enableClipping

enableClipping(doClip): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.enableClipping


enableEventPropagation

enableEventPropagation(enable): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.enableEventPropagation


enablePickingChildren

enablePickingChildren(enable): MultiWellWidget

Enables or disables picking children

Parameters

Name Type Description
enablebooleanenable picking children

Returns

MultiWellWidget

this

Inherited from

BaseWidget.enablePickingChildren


endExport

endExport(): MultiWellWidget

Used to restore object's state after exporting

Returns

MultiWellWidget

this

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): MultiWellWidget

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

Returns

MultiWellWidget

The result if any or this

Inherited from

BaseWidget.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: MultiWellWidget) => 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(): MultiWellWidget

Fit the whole tracks height in the visible area

Returns

MultiWellWidget

this


fitToWidth

fitToWidth(tracksWidth?): MultiWellWidget

Resize widget width to fit it in visible area

Parameters

Name Type Description
Optional tracksWidthnumbernew track width

Returns

MultiWellWidget

this


forEachVisual

forEachVisual(callback): void

Enumeratisual 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


getCenterDepthLimits

getCenterDepthLimits(): Range

Returns depth range of the center container.

Returns

Range


getCenterModelLimits

getCenterModelLimits(): Rect

Return center model limits

Returns

Rect

model limits of the tracks


getCenterVisibleDepthLimits

getCenterVisibleDepthLimits(): Range

Return a depth range, which is visible now of the center container

Returns

Range


getCenterVisibleModelLimits

getCenterVisibleModelLimits(): Rect

Returns visible center model limits

Returns

Rect

visible center model limits


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

Return the data binding

Returns

DataBinding


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


getDistanceStrategy

getDistanceStrategy(): AbstractDistanceStrategy

Returns strategy to compute distance between wells

Returns

AbstractDistanceStrategy

distance strategy


getExportElement

getExportElement(options?): AbstractDocumentElement

Returns exportable element

Parameters

Name Type Description
Optional optionsExportToPdfOptionsexport options

Returns

AbstractDocumentElement

return exportable element

Implementation of

IExportable.getExportElement


getExportLimits

getExportLimits(): Rect

Return export model limits

Returns

Rect


getExportScale

getExportScale(): Object

Return export scale

Returns

Object

NameType
scalexnumber
scaleynumber

getFillStyle

getFillStyle(): FillStyle

Return fill style

Returns

FillStyle

fillStyle current fill style

Inherited from

BaseWidget.getFillStyle


getFixedTracksWidth

getFixedTracksWidth(): boolean

Returns mode to keep fixed width of tracks and wells for horizontal scale

Returns

boolean


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. if footer visible option is 'none' then equals to null

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


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. if header visible option is 'none' then equals to null

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


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

BaseWidget.getId


getIndexUnit

getIndexUnit(): AbstractUnit

Gets index unit

Returns

AbstractUnit


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


getModelDepthScale

getModelDepthScale(scaleUnit?, deviceUnit?): number

Return scale of model context to device. How many scale units in one device unit in the vertical direction.

Example

// How to get the current depth scale of multiwell widget.
import {UnitFactory} from '@int/geotoolkit/util/UnitFactory';
const uf = UnitFactory.getInstance();
WellLogWidget.getModelDepthScale(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 is not available


getModelLimits

getModelLimits(): Rect

Gets model limits, the limits of this groups inside space

Returns

Rect

the current model limits

Inherited from

BaseWidget.getModelLimits


getModelTrackSize

getModelTrackSize(track): Rect

Return model track size and position in the model coordinates consider offset and scale.

Parameters

Name Type Description
trackITracktrack to return size

Returns

Rect

return model position and size


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

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

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

Overrides

BaseWidget.getScaleScrollStrategy


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

BaseWidget.getSceneTransform


getSelectedTrack

getSelectedTrack(): ITrack

Returns selected Well Track

Returns

ITrack

well track


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): ITrack

Returns track at specified index

Parameters

Name Type Description
indexnumberindex of the track

Returns

ITrack

well track


getTrackAt

getTrackAt(index): ITrack

Returns track at specified index

Deprecated

since 4.2 use getTrack instead

Parameters

Name Type Description
indexnumberindex of the track

Returns

ITrack

well track


getTrackAtPosition

getTrackAtPosition(x, y?): LogTrack

Returns track at specified position in plot coordinate

Parameters

Name Type Description
xnumber | Pointx coordinate position
Optional ynumbery coordinate position

Returns

LogTrack


getTrackContainer

getTrackContainer(): Group<Node>

Returns track container

Returns

Group<Node>


getTrackFooter

getTrackFooter(track): Group<Node> | LogBaseTrackHeader

Returns the track footer if it exists

Parameters

Name Type Description
trackITrackcurrent track

Returns

Group<Node> | LogBaseTrackHeader


getTrackHeader

getTrackHeader(track): Group<Node> | LogBaseTrackHeader

Returns the track header if it exists

Parameters

Name Type Description
trackITrackcurrent track

Returns

Group<Node> | LogBaseTrackHeader


getTrackManipulatorLayer

getTrackManipulatorLayer(): Layer<Node>

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

Returns

Layer<Node>


getTracks

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

Return iterator by child tracks

Parameters

Name Type Description
Optional filter(node: ITrack) => 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<ITrack>


getTracksCount

getTracksCount(): number

Returns wells count

Returns

number

amount of wells


getVisible

getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

BaseWidget.getVisible


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


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(wellTrack): number

Returns the index of specified track.

Parameters

Name Type Description
wellTrackITracktrack to get index

Returns

number


initializeTools

Protected initializeTools(options?): MultiWellWidget

function call in the constructor to initialize tools in the widget

Parameters

Name Type Description
Optional optionsObjectoptions
Optional options.cursortrackingObjectcursor tracking options
Optional options.cursortracking.enabledbooleanenabled state, false by default
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.ghostOptions & BaseOptions & { autoscroll?: { area?: number ; horizontal?: boolean ; vertical?: boolean } }Ghost tool options
Optional options.tracksplitterSplitterOptionstracks splitter options See AbstractTool.setProperties for details

Returns

MultiWellWidget

Overrides

BaseWidget.initializeTools


insertBaseLayer

insertBaseLayer(index, baseLayer): MultiWellWidget

Insert child baseLayer at specified index

Parameters

Name Type Description
indexnumberspecified index
baseLayerNodea baseLayer to add

Returns

MultiWellWidget

this

Inherited from

BaseWidget.insertBaseLayer


insertChild

insertChild(index, node): MultiWellWidget

Insert child node at specified index

Parameters

Name Type Description
indexnumberspecified index
nodeNodea child node to add

Returns

MultiWellWidget

this

Inherited from

BaseWidget.insertChild


insertOverlay

insertOverlay(index, overlay): MultiWellWidget

Insert child overlay at specified index

Parameters

Name Type Description
indexnumberspecified index
overlayNodea overlay to add

Returns

MultiWellWidget

this

Inherited from

BaseWidget.insertOverlay


insertTrack

insertTrack(index, track, options?): CorrelationTrack

Insert track, well to the container at specified index

Example

// The code below shows how to create a well track with position from 0 to 300 in the model coordinates and depth range from 500 to 1000
import {TrackType} from '@int/geotoolkit/welllog/multiwell/TrackType';
import {Range} from '@int/geotoolkit/util/Range';
const well = widget.insertTrack(1, TrackType.WellTrack, {
'width': 400,
'range': new Range(0, 300),
'welllog': {
'range': new Range(500, 1000)
}
});

Example

// The code below shows how to create a well track and pass all options in the the second parameter
import {TrackType} from '@int/geotoolkit/welllog/multiwell/TrackType';
import {Range} from '@int/geotoolkit/util/Range';
const well = widget.insertTrack(1, {
'type': TrackType.WellTrack
'width': 400,
'range': new Range(0, 300),
'welllog': {
'range': new Range(500, 1000)
}
});

Parameters

Name Type Description
indexnumberindex of the track
trackCorrelationTracktrack to insert
Optional optionsOptionstrack options if the track has a TrackType

Returns

CorrelationTrack

insertTrack(index, track, options?): WellTrack

Parameters

Name Type
indexnumber
trackWellTrack
Optional optionsOptions

Returns

WellTrack

insertTrack(index, track, options?): ProxyWellTrack

Parameters

Name Type
indexnumber
trackProxyTrack
Optional optionsOptions

Returns

ProxyWellTrack

insertTrack(index, options): ITrack

Parameters

Name Type
indexnumber
optionsTrack

Returns

ITrack

insertTrack(index, track): ITrack

Parameters

Name Type
indexnumber
trackITrack | TrackType

Returns

ITrack


invalidate

invalidate(bounds?, force?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.invalidate


invalidateLayout

invalidateLayout(propagate?): MultiWellWidget

Notify that layout is invalidated. Send event Events.LayoutInvalidated

Parameters

Name Type Description
Optional propagatebooleanpropagate invalidate layout to parent

Returns

MultiWellWidget

this

Inherited from

BaseWidget.invalidateLayout


invalidateParent

invalidateParent(bounds?, force?): MultiWellWidget

Invalidate parent area

Parameters

Name Type Description
Optional boundsRectarea to invalidate
Optional forcebooleanforce

Returns

MultiWellWidget

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?): void

Load template loads the saved visual properties of the current template. It is only a visual representation of the current widget. It does not contain any data

Parameters

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

Returns

void

Inherited from

BaseWidget.loadTemplate


moveTo

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

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

MultiWellWidget

this

Inherited from

BaseWidget.moveTo


notify

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

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

Name Type Description
eventEtype of event
sourceMultiWellWidgetsource who called the event
Optional argsEventMap<Node>[E]event arguments

Returns

MultiWellWidget

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?): MultiWellWidget

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

Returns

MultiWellWidget

this

Overrides

BaseWidget.off


on

on<E>(type, callback): MultiWellWidget

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

Returns

MultiWellWidget

this

Overrides

BaseWidget.on


onBoundsChanged

Protected onBoundsChanged(bounds): MultiWellWidget

Occurs when bounds has been changed

Parameters

Name Type Description
boundsRectbound of the node in the parent coordinates

Returns

MultiWellWidget

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): MultiWellWidget

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

MultiWellWidget

this

Inherited from

BaseWidget.onParentChanged


onTrackAdded

Protected onTrackAdded(track, index?): MultiWellWidget

Track it added to container

Parameters

Name Type Description
trackITrack | ITrack[]track added
Optional indexnumberstart index where track / tracks are added

Returns

MultiWellWidget


onTrackRemoving

Protected onTrackRemoving(track, index?): void

Track is removing from container

Parameters

Name Type Description
trackITrackto be removed
Optional indexnumbertrack index to be removed

Returns

void


onVisibilityChanged

Protected onVisibilityChanged(): void

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

Returns

void

Inherited from

BaseWidget.onVisibilityChanged


panTo

panTo(x?, y?, alignment?): MultiWellWidget

Pans to the point

Parameters

Name Type Description
Optional xnumberX coordinate of point to pan in track container model coordinate. if it is null it doesn't move in this direction
Optional ynumberY coordinate of point to pan in track container model coordinate. if it is null it doesn't move in this direction
Optional alignmentstringalignment of specified point according to container visible limits.

Returns

MultiWellWidget


panToTrack

panToTrack(track, depth?, alignment?): MultiWellWidget

Pans view to track with specified alignment and option depth. if detph it not specified the middle fo the track is used

Parameters

Name Type Description
trackITracktrack to scroll
Optional depthnumberdepth 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

MultiWellWidget


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?): MultiWellWidget

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

MultiWellWidget

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


removeAnnotation

removeAnnotation(name, item): MultiWellWidget

Add annotation to annotation container

Parameters

Name Type Description
namestringname of container
itemAxis | Group<Node>item to add

Returns

MultiWellWidget


removeBaseLayer

removeBaseLayer(baseLayer): MultiWellWidget

Remove child baseLayer

Parameters

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

Returns

MultiWellWidget

this

Inherited from

BaseWidget.removeBaseLayer


removeChild

removeChild(node, disposeChildren?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.removeChild


removeCssClass

removeCssClass(cssclass): MultiWellWidget

Removes css class from node

Parameters

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

Returns

MultiWellWidget

this

Inherited from

BaseWidget.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): MultiWellWidget

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

MultiWellWidget

this

Inherited from

BaseWidget.removeInvalidateHandler


removeOverlay

removeOverlay(overlay): MultiWellWidget

Remove child overlay

Parameters

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

Returns

MultiWellWidget

this

Inherited from

BaseWidget.removeOverlay


removeTrack

removeTrack(wellTrack): MultiWellWidget

Remove specified Well Track

Parameters

Name Type Description
wellTrackITracktrack to remove

Returns

MultiWellWidget

this


removeTrackAt

removeTrackAt(index): MultiWellWidget

Remove Well Track at specified index

Throws

Error if index out of bounds

Parameters

Name Type Description
indexnumbertrack index

Returns

MultiWellWidget

this


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): MultiWellWidget

Render background

Parameters

Name Type Description
contextRenderingContextcontext to render background
boundsRectgroup bounds

Returns

MultiWellWidget

this

Inherited from

BaseWidget.renderBackground


renderBaseLayers

Protected renderBaseLayers(context): MultiWellWidget

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

MultiWellWidget

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): MultiWellWidget

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

MultiWellWidget

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


resetTracksDepthScale

resetTracksDepthScale(tracks?): MultiWellWidget

Reset depth scale to be equal to model depth scale for all or specified tracks

Example

// How to reset scale for two tracks
widget.resetTracksDepthScale(track1, track2]);

Parameters

Name Type Description
Optional tracksITracktrack or array of specified tracks. If tracks are not specified then it resets scale for all tracks in the widget

Returns

MultiWellWidget

this


resumeUpdate

resumeUpdate(rebuild?, changes?): MultiWellWidget

Resume auto update

Parameters

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

Returns

MultiWellWidget

this

Inherited from

BaseWidget.resumeUpdate


rotate

rotate(theta, x, y): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.rotate


saveTemplate

saveTemplate(registry?): string

Save template saves visual properties of the current template. It is only a visual representation of the current widget. It does not contain any data

Parameters

Name Type Description
Optional registryRegistryregistry

Returns

string

Inherited from

BaseWidget.saveTemplate


scale

scale(scaleX, scaleY?, anchor?): MultiWellWidget

Change relative scale of tracks. These scales are mulitplies to existing ones.

Parameters

Name Type Description
scaleXnumberhorizontal scale factor
Optional scaleYnumbervertical scale factor
Optional anchorPoint | AnchorTypeanchor for zoom

Returns

MultiWellWidget

this

Overrides

BaseWidget.scale


scrollTrackByDepth

scrollTrackByDepth(track, delta): MultiWellWidget

Scroll track by depth on delta depth

Parameters

Name Type Description
trackITracktrack to scroll
deltanumberdepth of the current track.

Returns

MultiWellWidget

this


scrollTrackToDepth

scrollTrackToDepth(track, depth, alignment, anchor?): MultiWellWidget

Scroll the specified track in container then depth of this track is defined by alignment

Parameters

Name Type Description
trackITracktrack to scroll
depthnumberdepth of the current track. if depth is out of the depth limits track will be scrolled proportionally to up or down
alignmentstringalignment of track according to container visible limits. alignment value is "top", "bottom", "center"
Optional anchornumberposition of container to be aligned

Returns

MultiWellWidget

this


setAnimationStyle

setAnimationStyle(animationStyle): MultiWellWidget

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

MultiWellWidget

Inherited from

BaseWidget.setAnimationStyle


setAutoModelLimitsMode

setAutoModelLimitsMode(mode): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.setAutoModelLimitsMode


setAutoModelLimitsStrategy

setAutoModelLimitsStrategy(strategy): MultiWellWidget

Set Model Limits Logics Strategy

Parameters

Name Type Description
strategyModelLimitsStrategyModel Limits logic strategy to use

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setAutoModelLimitsStrategy


setBounds

setBounds(bounds): MultiWellWidget

Sets bounds of the node in the parent coordinates

Parameters

Name Type Description
boundsRectbound of the node in the parent coordinates

Returns

MultiWellWidget

this

Overrides

BaseWidget.setBounds


setCache

setCache(cache, rebuild?): MultiWellWidget

Sets cache to be used to cache

Parameters

Name Type Description
cacheCachecache to be used
Optional rebuildbooleanrebuild cache

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setCache


setCenterDepthLimits

setCenterDepthLimits(range): MultiWellWidget

Sets center depth limits. (Vertical limits)

This is a helper method because it sets up only vertical limits of setCenterModelLimits

Parameters

Name Type
rangeRange

Returns

MultiWellWidget

setCenterDepthLimits(minIndex, maxIndex): MultiWellWidget

Sets center depth limits. (Vertical limits)

This is a helper method because it sets up only vertical limits of setCenterModelLimits

Parameters

Name Type
minIndexnumber
maxIndexnumber

Returns

MultiWellWidget


setCenterModelLimits

setCenterModelLimits(limits): MultiWellWidget

Sets center model limits if auto track limits is false

Parameters

Name Type Description
limitsRectlimits to set

Returns

MultiWellWidget

this


setCenterVisibleDepthLimits

setCenterVisibleDepthLimits(range): MultiWellWidget

Sets visible depth limits of the center container. (Vertical limits)

This is a helper method because it sets up only vertical limits of setCenterModelLimits

Parameters

Name Type
rangeRange

Returns

MultiWellWidget

setCenterVisibleDepthLimits(minIndex, maxIndex): MultiWellWidget

Sets center visible depth limits of the center container. (Vertical limits)

This is a helper method because it sets up only vertical limits of setCenterVisibleModelLimits

Parameters

Name Type
minIndexnumber
maxIndexnumber

Returns

MultiWellWidget


setCenterVisibleModelLimits

setCenterVisibleModelLimits(rect, fitStrategy?): MultiWellWidget

Sets center visible model limits

Parameters

Name Type Description
rectRecta new center model visible limits
Optional fitStrategyFitStrategyfit strategy

Returns

MultiWellWidget

this

setCenterVisibleModelLimits(rect, deviceBounds?): MultiWellWidget

Sets center visible model limits

Parameters

Name Type Description
rectRecta new center model visible limits
Optional deviceBoundsRectdevice bounds of the container to fit new model limits.

Returns

MultiWellWidget

this


setChild

setChild(index, node): MultiWellWidget

Replace child node by index

Parameters

Name Type Description
indexnumberindex of the node
nodeNodenode

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setChild


setClipStyle

setClipStyle(style): MultiWellWidget

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setClipStyle


setContentOrientation

setContentOrientation(orientation): MultiWellWidget

Set content orientation

Parameters

Name Type Description
orientationOrientationcontent orientation

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setContentOrientation


setCss

setCss(style, merge?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.setCss


setCssClass

setCssClass(name): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.setCssClass


setCssTransform

setCssTransform(transform): MultiWellWidget

Set CSS transformation

Parameters

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

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setCssTransform


setData

setData(data): MultiWellWidget

Sets a new data model

Parameters

Name Type Description
dataAbstractDataTable | DataSourcelogdata

Returns

MultiWellWidget

this


setDataBinding

setDataBinding(binding, silent?): MultiWellWidget

Sets the data binding

Parameters

Name Type Description
bindingDataBindingdata binding
Optional silentbooleansilent mode to forbid

Returns

MultiWellWidget

this


setDesiredHeight

setDesiredHeight(value, silent?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.setDesiredHeight


setDesiredWidth

setDesiredWidth(value, silent?): MultiWellWidget

Sets desired width of the group as a layoutable object

Parameters

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

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setDesiredWidth


setDistanceStrategy

setDistanceStrategy(strategy): MultiWellWidget

Sets strategy to compute distance between wells

Parameters

Name Type Description
strategyAbstractDistanceStrategydistance strategy

Returns

MultiWellWidget

this


setExportLimits

setExportLimits(limits): MultiWellWidget

Sets export model limits

Parameters

Name Type Description
limitsRectexport limits

Returns

MultiWellWidget


setExportScale

setExportScale(scaleX, scaleY): MultiWellWidget

Sets export scale

Parameters

Name Type Description
scaleXnumberexport scale factor along x coordinate
scaleYnumberexport scale factor along y coordinate

Returns

MultiWellWidget


setFillStyle

setFillStyle(fillStyle, merge?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.setFillStyle


setFixedTracksWidth

setFixedTracksWidth(enable): MultiWellWidget

Sets mode to keep fixed width of tracks and wells for horizontal scale

Parameters

Name Type Description
enablebooleanenable fixed width of wells during scale

Returns

MultiWellWidget

this


setFooterHeight

setFooterHeight(height): MultiWellWidget

Sets footer height

Parameters

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

Returns

MultiWellWidget

this


setHeaderHeight

setHeaderHeight(height): MultiWellWidget

Sets header height

Parameters

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

Returns

MultiWellWidget

this


setHorizontalFlip

setHorizontalFlip(enable): MultiWellWidget

Set horizontal flip of the representation

Parameters

Name Type Description
enablebooleanenable flip

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setHorizontalFlip


setId

setId(id): MultiWellWidget

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setId


setIndexUnit

setIndexUnit(unit): MultiWellWidget

Sets index unit

Parameters

Name Type
unitstring | AbstractUnit

Returns

MultiWellWidget


setInfiniteMode

setInfiniteMode(infinityMode): MultiWellWidget

Set infinity mode flag to draw composite without collision check

Parameters

Name Type Description
infinityModebooleaninfinity mode flag

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setInfiniteMode


setLayout

setLayout(layout): MultiWellWidget

Associate layout with a group.

Parameters

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

Returns

MultiWellWidget

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?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.setLayoutStyle


setLineStyle

setLineStyle(lineStyle, merge?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.setLineStyle


setLocalTransform

setLocalTransform(localTransform, force?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.setMarginsStyle


setModelDepthScale

setModelDepthScale(scale, scaleUnit?, deviceUnit?): MultiWellWidget

Sets a scale factor in vertical direction for container

Throws

Will throw an error if the current scale is NaN

Example

import {UnitFactory} from '@int/geotoolkit/util/UnitFactory';
//  To set depth scale range as a ratio, you can use units as follows
const unitFactory = UnitFactory.getInstance();
widget.setModelDepthScale(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

MultiWellWidget

this


setModelLimits

setModelLimits(limits): MultiWellWidget

Sets inner model limits

Parameters

Name Type Description
limitsTypeinner limits

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setModelLimits


setName

setName(name): MultiWellWidget

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setName


setNodeFilter

setNodeFilter(nodeFilter): MultiWellWidget

Sets node filter for selection tool and it works for new wells only

Parameters

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

Returns

MultiWellWidget

this


setNotification

setNotification(notify, force?): MultiWellWidget

set notification state

Parameters

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

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setNotification


setOpacity

setOpacity(opacity, blendMode?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.setOpacity


setOptions

setOptions(options?): MultiWellWidget

Sets widget options. It is a 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

MultiWellWidget

this


setOrientation

setOrientation(orientation): MultiWellWidget

Parameters

Name Type
orientationOrientation

Returns

MultiWellWidget


setPaddingStyle

setPaddingStyle(paddingStyle, merge?): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.setPaddingStyle


setProperties

setProperties(properties?): MultiWellWidget

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsaddition options

Returns

MultiWellWidget

this

Overrides

BaseWidget.setProperties


setProperty

setProperty(name, value): MultiWellWidget

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setProperty


setRenderingFilter

setRenderingFilter(filter): MultiWellWidget

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): MultiWellWidget

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setResponsiveStyle


setScaleScrollStrategy

setScaleScrollStrategy(scaleScrollStrategy, reset?): MultiWellWidget

Sets scale scroll strategy.

Parameters

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

Returns

MultiWellWidget

this

Overrides

BaseWidget.setScaleScrollStrategy


setSelectable

setSelectable(selectable): MultiWellWidget

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

MultiWellWidget

this

Inherited from

BaseWidget.setSelectable


setSelectedTrack

setSelectedTrack(wellTrack): MultiWellWidget

Set selected well

Parameters

Name Type Description
wellTrackITracktrack to select

Returns

MultiWellWidget


setSilent

setSilent(bool): MultiWellWidget

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setSilent


setTag

setTag(tag): MultiWellWidget

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

Parameters

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

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setTag


setTool

Protected setTool(tool): MultiWellWidget

Set root tool associated to this widget

Parameters

Name Type Description
toolCompositeTooltool to be set

Returns

MultiWellWidget

Inherited from

BaseWidget.setTool


setVerticalFlip

setVerticalFlip(flip): MultiWellWidget

Set vertical flip of the representation

Parameters

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

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setVerticalFlip


setVisible

setVisible(value): MultiWellWidget

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setVisible


setVisibleModelLimits

setVisibleModelLimits(visibleModelBounds, deviceBounds?): MultiWellWidget

Set visible model limits

Parameters

Name Type Description
visibleModelBoundsRectvisible model limits or bounds
Optional deviceBoundsRectdevice bounds

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setVisibleModelLimits


setZIndex

setZIndex(value): MultiWellWidget

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

MultiWellWidget

this

Inherited from

BaseWidget.setZIndex


shear

shear(shx, shy): MultiWellWidget

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

MultiWellWidget

this

Inherited from

BaseWidget.shear


suspendUpdate

suspendUpdate(): MultiWellWidget

Suspend auto update

Returns

MultiWellWidget

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): MultiWellWidget

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

MultiWellWidget

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(): MultiWellWidget

Send event DataUpdating to update data. The event argument's includes type, source, {'start, 'end'}, where start and end is visible range

Deprecated

since 4.0

Returns

MultiWellWidget

this


updateFooter

updateFooter(): MultiWellWidget

Update footer

Returns

MultiWellWidget

this


updateHeader

updateHeader(): MultiWellWidget

Update header

Returns

MultiWellWidget

this


updateLayout

updateLayout(targets?, updateScrollBarState?): MultiWellWidget

Updates layout(s)

Parameters

Name Type Description
Optional targetsILayoutable[]optional parameter about which element to layout
Optional updateScrollBarStatebooleanupdateScrollBarState

Returns

MultiWellWidget

this

Overrides

BaseWidget.updateLayout


updateSceneTransformation

updateSceneTransformation(): MultiWellWidget

Update scene transformation

Returns

MultiWellWidget

this

Inherited from

BaseWidget.updateSceneTransformation


updateScrollPositions

updateScrollPositions(updateScrollBarState?, enableAnimation?): MultiWellWidget

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

MultiWellWidget


updateState

updateState(regions?, changes?): MultiWellWidget

Mark this group to be updated.

Parameters

Name Type Description
Optional regionsRect[]optional array to return invalid rectangles
Optional changesStateChangesoptional parameter to specify a reason of changes

Returns

MultiWellWidget

this

Overrides

BaseWidget.updateState


updateSuspended

updateSuspended(): boolean

Return state of suspend state

Returns

boolean

state of update

Inherited from

BaseWidget.updateSuspended


updateTimeStamp

Protected updateTimeStamp(): MultiWellWidget

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

Returns

MultiWellWidget

this

Inherited from

BaseWidget.updateTimeStamp


zoomIn

zoomIn(): MultiWellWidget

Does zoom in (namely, scales with predefined scale factor (5 / 4))

Returns

MultiWellWidget

this


zoomOut

zoomOut(): MultiWellWidget

Does zoom out (namely, scales with predefined scale factor (4 / 5))

Returns

MultiWellWidget

this


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