Last updated

API / geotoolkit / welllog / multiwell / WellBehavior / WellBehavior

Class: WellBehavior

multiwell.WellBehavior.WellBehavior

Default behavior for WellTrack You can alter default behavior, for example changing resize logic By default it resize wells proportionally and change last track width if ['shiftKey'] is pressed, but you can change it with using .getResizeType method

Example

import {MultiWellWidget} from '@int/geotoolkit/welllog/multiwell/MultiWellWidget';
import {WellBehaviorRegistry} from '@int/geotoolkit/welllog/multiwell/WellBehaviorRegistry';
import {ResizeType, WellBehavior} from '@int/geotoolkit/welllog/multiwell/WellBehavior';

// #createWidget
const behaviorRegistry = WellBehaviorRegistry.getDefaultInstance();
const behavior = behaviorRegistry.getBehaviorByClassName(WellTrack.getClassName()) as WellBehavior;

const widget = new MultiWellWidget({
'well': {
'behavior': behaviorRegistry.clone()
.registerBehavior(
WellTrack.getClassName(),
behavior.clone()
.setResizeType(ResizeType.LastTrack)
)
}
});

Hierarchy

Table of contents

Constructors
Methods
Css Properties
Name Type Description
fillstylestringFill style
fillstyleFillStyleFill style
fillstyle-colorstringColor in CSS form
fillstyle-evenoddmodebooleanEven-odd fill mode
fillstyle-fillpatternPatternPattern
fillstyle-fillpattern-containernamestringAn optional container name, which creates an image pattern. This parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself
fillstyle-fillpattern-patternnamestringName of this pattern for indexing
fillstyle-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
fillstyle-foregroundstringForeground color
fillstyle-patternPatternPattern
linestylestringLine style
linestyleLineStyleLine style
linestyle-colorstringColor in CSS form
linestyle-fillstringOptional fill style to be used to fill lines generated with this style
linestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
linestyle-linecapCapStyleThe line cap style
linestyle-linedashoffsetnumberLine dash offset of dashed line
linestyle-linejoinJoinStyleThe line join style
linestyle-pixelsnapmodebooleanPixel Snap Mode, default(
linestyle-scalablebooleanTrue if width should depend on transformation
linestyle-unitstringOptional unit for the width
linestyle-widthnumber | stringThe line thickness
resizetypeResizeTypeResize type

Contents

Constructors

new WellBehavior(options)

new WellBehavior(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

TrackBehavior.constructor

Methods

clone

clone(): IWellBehavior

Creates a clone of behavior

Returns

IWellBehavior

Inherited from

TrackBehavior.clone


getProperties

getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

An object containing the properties to get

Overrides

TrackBehavior.getProperties


getResizeType

getResizeType(): ResizeType

Default resize type

Returns

ResizeType

return default resize type


highlight

highlight(widget, track, highlight): void

Highlight well or track

Parameters

Name Type Description
widgetMultiWellWidgetwidget
trackITracktrack to highlight
highlightbooleanhighlight

Returns

void

Inherited from

TrackBehavior.highlight


isMovable

isMovable(widget, track): boolean

Return true if track is movable

Parameters

Name Type Description
widgetMultiWellWidgetwidget
trackITracktrack to move

Returns

boolean

true if track is movable

Inherited from

TrackBehavior.isMovable


isSelectable

isSelectable(widget, track): boolean

Return true if track is selectable

Parameters

Name Type Description
widgetMultiWellWidgetwidget
trackITracktrack to select

Returns

boolean

true if track is selectable

Inherited from

TrackBehavior.isSelectable


resize

resize(widget, track, size): boolean

Resize the track width

Parameters

Name Type Description
widgetMultiWellWidget
trackITracktrack to remove
sizenumbera new size

Returns

boolean

true if update is required.

Inherited from

TrackBehavior.resize


setProperties

setProperties(properties?): WellBehavior

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsan object containing the properties to set

Returns

WellBehavior

this

Overrides

TrackBehavior.setProperties


setResizeType

setResizeType(resizeType): WellBehavior

Sets default resize type

Parameters

Name Type Description
resizeTypeResizeTypedefault resize type

Returns

WellBehavior

this