Skip to content
Last updated

API / geotoolkit / schematics / widgets / SchematicsWidget / SchematicsWidget

Class: SchematicsWidget

widgets.SchematicsWidget.SchematicsWidget

<p> A schematics widget overrides AnnotatedWidget class to work with WellBoreNode as a data model with labeling capabilities </p> <p> SchematicsWidget inherits from AnnotatedWidget, so it takes most of its functionality too. The main way to configure and customize the widget is to use its setOptions() function that provide a comprehensible way of changing the default look and feel of the widget. <ul> <li> setData() will pass through everything to the WellBoreNode's "setWellBoreData" for the internal shape.</li> </ul> </p>

Deprecated

since 4.0. Use CompositeSchematicsWidget instead.

Fires

Events.ComponentsLoading

Fires

Events.ComponentsLoaded

Example

import {WellBoreData} from '@int/geotoolkit/schematics/data/WellBoreData';
import {SchematicsWidget} from '@int/geotoolkit/schematics/widgets/SchematicsWidget';
// Initialize the data
const wellBoreData = new WellBoreData();
wellBoreData.addComponents(&#91;...&#93;);
// Create the widget using the data
const widget = new SchematicsWidget({'options': options, 'data': wellBoreData});

Hierarchy

Implements

Table of contents

Constructors
  • [new SchematicsWidget(options)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.schematics.widgets-2.schematicswidget.schematicswidget.md#new schematicswidget(options))
Methods
addAxisaddBaseLayeraddChild
addCssClassaddInvalidateHandleraddLegend
addLegendInternaladdOverlayaddTitle
adjustPositionapplyOpacityapplyResponsiveStyle
beginExportchangeBaseLayerOrderchangeChildOrder
changeOverlayOrdercheckCollisionclearBaseLayers
clearCacheclearChildrenclearOverlays
cloneconnectconnectStyle
connectToolcopyConstructordisconnect
disconnectStyledisconnectTooldispose
drawBorderenableClippingenableEventPropagation
enablePickingChildrenendExportenumerateNodes
executeexportToPdffilter
fitToBoundsgetAnimationStylegetAnnotation
getAnnotationSizegetAutoModelLimitsModegetAutoModelLimitsStrategy
getBaseLayergetBaseLayersgetBaseLayersCount
getBoundsgetCachegetCenterModelLimits
getChildgetChildrengetChildrenCount
getClassNamegetClipStylegetContentOrientation
getContentsAreagetContentsTransformgetCss
getCssClassgetCssClassesgetCssTransform
getDatagetDesiredHeightgetDesiredWidth
getDeviceLimitsgetDevicePointgetExportElement
getExportLimitsgetExportScalegetExportState
getFillStylegetIdgetInfiniteMode
getInvalidateMethodgetLabelingStrategygetLayout
getLayoutStylegetLegendLayergetLineStyle
getLocalTransformgetManipulatorLayergetMarginsStyle
getModelgetModelLimitsgetModelPoint
getNamegetOpacitygetOpacityBlendMode
getOptionsgetOverlaygetOverlayAt
getOverlayLayergetOverlaysgetOverlaysCount
getPaddingStylegetParentgetPreferredSize
getPropertiesgetPropertygetPropertyKeys
getRenderingFiltergetResponsiveStylegetRoot
getScaleScrollStrategygetSceneTransformgetSelectedComponentNodes
getTaggetToolgetToolByName
getToolByTypegetToolsOptionsgetViewMode
getVisiblegetVisibleCenterModelLimitsgetVisibleDeviceLimits
getVisibleModelLimitsgetWorldTransformgetZIndex
hasCssClasshasEventListenerindexOfBaseLayer
indexOfChildindexOfOverlayinitializeFloatingAnnotationTool
initializeLayoutinitializeToolsinsertAxis
insertBaseLayerinsertChildinsertOverlay
invalidateinvalidateLayoutinvalidateParent
isClippingEnabledisDisposedisEventPropagationEnabled
isHorizontalFlipisLayoutInvalidatedisNotificationEnabled
isPickingChildrenEnabledisSelectableisSilent
isVerticalFliplistToolsNamesloadTemplate
moveTonotifynotifyRoot
offononBoundsChanged
onChildAddedonChildRemovedonParentChanged
onVisibilityChangedpanpanModelTo
panningHandlepostRenderingpreRendering
rebuildrefreshLayoutregisterAnimationStyle
removeAxisremoveBaseLayerremoveChild
removeCssClassremoveInvalidateHandlerremoveLegend
removeOverlayremoveTitlerender
renderAsyncrenderBackgroundrenderBaseLayers
renderBaseLayersAsyncrenderChildrenrenderChildrenAsync
renderContentrenderContentAsyncrenderOverlays
renderOverlaysAsyncrestoreToolStateresumeUpdate
rotatesaveTemplatesaveToolsState
scalescaleModelsetAnimationStyle
setAnnotationSizesetAnnotationsOptionssetAutoModelLimitsMode
setAutoModelLimitsStrategysetBoundssetCache
setCenterModelLimitssetChildsetClipStyle
setContentOrientationsetCsssetCssClass
setCssTransformsetDatasetDesiredHeight
setDesiredWidthsetExportLimitssetExportScale
setFillStylesetHorizontalFlipsetId
setInfiniteModesetLayoutsetLayoutInvalidated
setLayoutStylesetLineStylesetLocalTransform
setMarginsStylesetModelLimitssetModelTransformation
setNamesetNotificationsetOpacity
setOptionssetPaddingStylesetParent
setPropertiessetPropertysetRenderingFilter
setResponsiveStylesetScaleScrollStrategysetSelectable
setSelectedComponentNodessetSilentsetTag
setTitleOptionssetToolsetToolsOptions
setVerticalFlipsetViewModesetVisible
setVisibleCenterModelLimitssetVisibleModelLimitssetZIndex
shearsuspendUpdatesynchronizeViewLimits
toStringtransformDepthtranslate
translateModelunregisterAnimationStyleupdateLayout
updateSceneTransformationupdateStateupdateSuspended
updateTimeStampzoomHandlezoomIn
zoomOutzoomToRectenableSceneGraphNotification
findParentgetClassNameisSceneGraphNotificationEnabled
Css Properties
Name Type Description
alignmentAlignmentWellbore horizontal alignment
annotationssizesAnnotationSizeAnnotations sizes section
annotationssizes-eaststring | numberPreferred width of east annotation size
annotationssizes-northstring | numberPreferred height of north annotation size
annotationssizes-southstring | numberPreferred height of south annotation size
annotationssizes-weststring | numberPreferred width of west annotation size
dataanyWellbore data
gapnumberGap size value or object
labelingStrategyLabelingStrategyLabeling strategy
labelingStrategy-connectorshapeConnectorShapeConnector shape
labelingStrategy-connectorshape-labeldataLabelData
labelingStrategy-connectorshape-labeldata-anchortypeAnchorTypeAnchor type
labelingStrategy-connectorshape-labeldata-nodeComponentNodeComponent node to label
labelingStrategy-connectorshape-labeldata-node-automodellimitsmodebooleanAuto model limits mode
labelingStrategy-connectorshape-labeldata-node-boundsRectDefine position of the group in the parent
labelingStrategy-connectorshape-labeldata-node-bounds-heightnumberHeight
labelingStrategy-connectorshape-labeldata-node-bounds-readonlybooleanReadonly
labelingStrategy-connectorshape-labeldata-node-bounds-widthnumberWidth
labelingStrategy-connectorshape-labeldata-node-bounds-xnumberLeft
labelingStrategy-connectorshape-labeldata-node-bounds-ynumberTop
labelingStrategy-connectorshape-labeldata-node-clippingbooleanEnable clipping, this does not consider the clipstyle, it is related to bounds-clipping
labelingStrategy-connectorshape-labeldata-node-clipstyleClipStyleClipping style
labelingStrategy-connectorshape-labeldata-node-clipstyle-evenoddbooleanTrue if evenodd mode is on (&#x27;nonzero&#x27; mode otherwise)
labelingStrategy-connectorshape-labeldata-node-clipstyle-geometryGraphicsPathClipping geometry
labelingStrategy-connectorshape-labeldata-node-clipstyle-geometry-boundsRectBounds
labelingStrategy-connectorshape-labeldata-node-clipstyleGraphicsPathClipping style
labelingStrategy-connectorshape-labeldata-node-contentorientationOrientationContent orientation
labelingStrategy-connectorshape-labeldata-node-cssclassstringThe css class name of this node
labelingStrategy-connectorshape-labeldata-node-csscursorstringCSS cursor associated with node
labelingStrategy-connectorshape-labeldata-node-cssstylestringCSS style to be applied to inserted elements
labelingStrategy-connectorshape-labeldata-node-descriptionstringElement description
labelingStrategy-connectorshape-labeldata-node-fillstylestringFill style
labelingStrategy-connectorshape-labeldata-node-fillstyleFillStyleFill style
labelingStrategy-connectorshape-labeldata-node-fillstyle-colorstringColor in CSS form
labelingStrategy-connectorshape-labeldata-node-fillstyle-evenoddmodebooleanEven-odd fill mode
labelingStrategy-connectorshape-labeldata-node-fillstyle-fillpatternPatternPattern
labelingStrategy-connectorshape-labeldata-node-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
labelingStrategy-connectorshape-labeldata-node-fillstyle-fillpattern-patternnamestringName of this pattern for indexing
labelingStrategy-connectorshape-labeldata-node-fillstyle-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
labelingStrategy-connectorshape-labeldata-node-fillstyle-foregroundstringForeground color
labelingStrategy-connectorshape-labeldata-node-fillstyle-patternPatternPattern
labelingStrategy-connectorshape-labeldata-node-horizontalflipbooleanHorizontal axis goes from right to left
labelingStrategy-connectorshape-labeldata-node-idstring | numberId of the node, its a unique identifier
labelingStrategy-connectorshape-labeldata-node-infinitybooleanMode to render outside the model limits
labelingStrategy-connectorshape-labeldata-node-layoutstyleLayoutStyleLayout style to be used for parent layout
labelingStrategy-connectorshape-labeldata-node-layoutstyle-constraintSizeConstraintLayout constrains
labelingStrategy-connectorshape-labeldata-node-layoutstyle-flexgrownumberNumber specifying how much the item will grow relative to the rest of the items inside the same container
labelingStrategy-connectorshape-labeldata-node-layoutstyle-flexshrinknumberNumber specifying how much the item will shrink relative to the rest of the items inside the same container
labelingStrategy-connectorshape-labeldata-node-layoutstyle-floatstringFloat position
labelingStrategy-connectorshape-labeldata-node-layoutstyle-positionstringLayout position
labelingStrategy-connectorshape-labeldata-node-layoutstyle-sizenumber | stringLayout size
labelingStrategy-connectorshape-labeldata-node-linestylestringLine style
labelingStrategy-connectorshape-labeldata-node-linestyleLineStyleLine style
labelingStrategy-connectorshape-labeldata-node-linestyle-colorstringColor in CSS form
labelingStrategy-connectorshape-labeldata-node-linestyle-fillstringOptional fill style to be used to fill lines generated with this style
labelingStrategy-connectorshape-labeldata-node-linestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
labelingStrategy-connectorshape-labeldata-node-linestyle-linecapCapStyleThe line cap style
labelingStrategy-connectorshape-labeldata-node-linestyle-linedashoffsetnumberLine dash offset of dashed line
labelingStrategy-connectorshape-labeldata-node-linestyle-linejoinJoinStyleThe line join style
labelingStrategy-connectorshape-labeldata-node-linestyle-pixelsnapmodebooleanPixel Snap Mode, default(
labelingStrategy-connectorshape-labeldata-node-linestyle-scalablebooleanTrue if width should depend on transformation
labelingStrategy-connectorshape-labeldata-node-linestyle-unitstringOptional unit for the width
labelingStrategy-connectorshape-labeldata-node-linestyle-widthnumber | stringThe line thickness
labelingStrategy-connectorshape-labeldata-node-localtransformTransformationLocal transformation
labelingStrategy-connectorshape-labeldata-node-localtransform-dxnumberX axis translation
labelingStrategy-connectorshape-labeldata-node-localtransform-dynumberY axis translation
labelingStrategy-connectorshape-labeldata-node-localtransform-xxnumberX scale
labelingStrategy-connectorshape-labeldata-node-localtransform-xynumberXy skew
labelingStrategy-connectorshape-labeldata-node-localtransform-yxnumberYx skew
labelingStrategy-connectorshape-labeldata-node-localtransform-yynumberY scale
labelingStrategy-connectorshape-labeldata-node-marginsnumber | stringIt has properties for specifying the margins for each side
labelingStrategy-connectorshape-labeldata-node-modellimitsRectDefine inner model coordinates of the group
labelingStrategy-connectorshape-labeldata-node-namestringName of the node. It is often used for debugging purposes or to simplify queries
labelingStrategy-connectorshape-labeldata-node-opacitynumberNode opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context
labelingStrategy-connectorshape-labeldata-node-opacityblendmodeBlendModeNode opacity mode to blend it
labelingStrategy-connectorshape-labeldata-node-paddingnumber | stringIt has properties for specifying the padding for each side
labelingStrategy-connectorshape-labeldata-node-pickingchildrenbooleanEnable picking children
labelingStrategy-connectorshape-labeldata-node-rectboundsRectGeometry bounds
labelingStrategy-connectorshape-labeldata-node-scalescrollstrategyScaleScrollStrategyScale scroll strategy
labelingStrategy-connectorshape-labeldata-node-scalescrollstrategy-enabledbooleanEnable flag
labelingStrategy-connectorshape-labeldata-node-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
labelingStrategy-connectorshape-labeldata-node-taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
labelingStrategy-connectorshape-labeldata-node-transformstringAdditional CSS transformation applied to node or &#x27;none&#x27;
labelingStrategy-connectorshape-labeldata-node-transformTransformationAdditional CSS transformation applied to node or &#x27;none&#x27;
labelingStrategy-connectorshape-labeldata-node-verticalflipbooleanVertical axis goes from bottom to top
labelingStrategy-connectorshape-labeldata-node-viewcachebooleanView cache to cache child nodes
labelingStrategy-connectorshape-labeldata-node-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
labelingStrategy-connectorshape-labeldata-node-z-indexnumberDefine node z-index
labelingStrategy-connectorshape-labeldata-nodeindexnumberThe node virtual index
labelingStrategy-connectorshape-labeldata-nodeinfostringThe node information
labelingStrategy-connectorshape-labeldata-xlabelnumberLabel x-position
labelingStrategy-connectorshape-labeldata-ylabelnumberLabel y-position
labelingStrategy-connectorshape-linestylestring
labelingStrategy-connectorshape-linestyleLineStyle
labelingStrategy-connectorshape-visibleboolean
labelingStrategy-connectorShapeConnectorShapeConnector shape
labelingStrategy-defaultlocationLocationType
labelingStrategy-labelshapeLabelShapeLabel shape
labelingStrategy-labelshape-clipstyleClipStyleClipping style
labelingStrategy-labelshape-clipstyleGraphicsPathClipping style
labelingStrategy-labelshape-cssclassstringThe css class name of this node
labelingStrategy-labelshape-csscursorstringCSS cursor associated with node
labelingStrategy-labelshape-cssstylestringCSS style to be applied to inserted elements
labelingStrategy-labelshape-fillstylestringStyle applied on fill
labelingStrategy-labelshape-fillstyleFillStyleStyle applied on fill
labelingStrategy-labelshape-idstring | numberId of the node, its a unique identifier
labelingStrategy-labelshape-linestylestringStyle applied on outline
labelingStrategy-labelshape-linestyleLineStyleStyle applied on outline
labelingStrategy-labelshape-localtransformTransformationLocal transformation
labelingStrategy-labelshape-marginsnumber | stringIt has properties for specifying the margins for each side
labelingStrategy-labelshape-namestringName of the node. It is often used for debugging purposes or to simplify queries
labelingStrategy-labelshape-opacitynumberNode opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context
labelingStrategy-labelshape-opacityblendmodeBlendModeNode opacity mode to blend it
labelingStrategy-labelshape-scalescrollstrategyScaleScrollStrategyScale scroll strategy
labelingStrategy-labelshape-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
labelingStrategy-labelshape-taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
labelingStrategy-labelshape-textstylestringLabel shape textstyle
labelingStrategy-labelshape-textstyleTextStyleLabel shape textstyle
labelingStrategy-labelshape-textstyle-alignmentAlignmentStyleAlignment
labelingStrategy-labelshape-textstyle-autosizebooleanAuto font size on high definition display
labelingStrategy-labelshape-textstyle-backgroundstringBackground style
labelingStrategy-labelshape-textstyle-backgroundFillStyleBackground style
labelingStrategy-labelshape-textstyle-baselineBaseLineStyleBase line
labelingStrategy-labelshape-textstyle-colorstringColor in CSS form
labelingStrategy-labelshape-textstyle-fillFillStyleText fill style
labelingStrategy-labelshape-textstyle-fontstringFont see
labelingStrategy-labelshape-textstyle-fonturlstringThe place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword
labelingStrategy-labelshape-textstyle-lineheightstring | numberLine height
labelingStrategy-labelshape-textstyle-multilinebooleanAllow multi-line text
labelingStrategy-labelshape-textstyle-outlinestringOutline style
labelingStrategy-labelshape-textstyle-outlineLineStyleOutline style
labelingStrategy-labelshape-textstyle-overflowwrapOverflowWrapStyleOverflow wrap
labelingStrategy-labelshape-textstyle-strikethroughstringStrikethrough style
labelingStrategy-labelshape-textstyle-strikethroughLineStyleStrikethrough style
labelingStrategy-labelshape-textstyle-textoverflowTextOverflowStyleText overflow
labelingStrategy-labelshape-textstyle-underlinestringUnderline style
labelingStrategy-labelshape-textstyle-underlineLineStyleUnderline style
labelingStrategy-labelshape-textstyle-underlineoffsetstring | numberUnderline offset distance
labelingStrategy-labelshape-textstyle-whitespaceWhiteSpaceStyleWhite space
labelingStrategy-labelshape-textstyle-wordbreakWordBreakStyleWord break
labelingStrategy-labelshape-transformstringAdditional CSS transformation applied to node or &#x27;none&#x27;
labelingStrategy-labelshape-transformTransformationAdditional CSS transformation applied to node or &#x27;none&#x27;
labelingStrategy-labelshape-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
labelingStrategy-labelshape-z-indexnumberDefine node z-index
labelingStrategy-labelShapeLabelShapeLabel shape
labelingStrategy-labelshapehighlightedLabelShapeHighlighted label shape
legendalignmentareaAnnotationLocationLegend alignment area.<br>
multidiameterselectionmodeMultiDiameterSelectionModeMulti diameter selection/highlight/tooltip mode
optionsany
scalescrollstrategyScaleScrollStrategyScalescrollstrategy

Contents

Constructors

new SchematicsWidget(options)

• new SchematicsWidget(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

AnnotatedWidget.constructor

Methods

addAxis

▸ addAxis(axis, location, connectedObject?): Object

add new axis and connect with object

Parameters

Name Type Description
axisAxis | AxisOptionsnew axis instance or options
locationAnnotationLocationlocation of annotation for adding new axis
Optional connectedObjectGroup<Node&gt;connected object of axis

Returns

Object

NameType
axisAxis
groupGroup<Node&gt;

Inherited from

AnnotatedWidget.addAxis


addBaseLayer

▸ addBaseLayer(baseLayer): SchematicsWidget

Add baseLayer to container

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.addBaseLayer


addChild

▸ addChild(node): SchematicsWidget

Add a child node

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.addChild


addCssClass

▸ addCssClass(cssclass): SchematicsWidget

Adds new css class to node

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.addCssClass


addInvalidateHandler

▸ addInvalidateHandler(handler): SchematicsWidget

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.addInvalidateHandler


addLegend

▸ addLegend(options): LegendPanel

Creates legend, scrollable panel and interactive tools for the options provided. If legend already exists, does nothing.

Example

widget.addLegend({
// use known types to create legend items automatically (from charts)
// use custom string item for user setup
'alignment': AnchorType.LeftTop,
'offset': new Point(60, 40)
});

Parameters

Name Type Description
optionsLegendOptions | LegendPanellegend options

Returns

LegendPanel

Inherited from

AnnotatedWidget.addLegend


addLegendInternal

▸ Protected addLegendInternal(options): LegendPanel

Parameters

Name Type
optionsLegendOptions | LegendPanel

Returns

LegendPanel

Inherited from

AnnotatedWidget.addLegendInternal


addOverlay

▸ addOverlay(overlay): SchematicsWidget

Add overlay to container

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.addOverlay


addTitle

▸ addTitle(location, options): void

Add title to annotation

Parameters

Name Type Description
locationAnnotationLocationof the title
optionsTitleOptionstitle options

Returns

void

Inherited from

AnnotatedWidget.addTitle


adjustPosition

▸ adjustPosition(area?, vAlign?, hAlign?): SchematicsWidget

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 &quot;top&quot;, &quot;bottom&quot;, &quot;center&quot;. Defaults to &quot;top&quot;.
Optional hAlignstringhorizontal alignment It can be &quot;left&quot;, &quot;right&quot;, &quot;center&quot;. Defaults to &quot;left&quot;.

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.adjustPosition


applyOpacity

▸ Protected applyOpacity(context): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.applyOpacity


applyResponsiveStyle

▸ Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

AnnotatedWidget.applyResponsiveStyle


beginExport

▸ beginExport(): SchematicsWidget

Prepares object before exporting and saving state

Returns

SchematicsWidget

Inherited from

AnnotatedWidget.beginExport


changeBaseLayerOrder

▸ changeBaseLayerOrder(overlay, order, anchor?): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.changeBaseLayerOrder


changeChildOrder

▸ changeChildOrder(node, order, anchor?): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.changeChildOrder


changeOverlayOrder

▸ changeOverlayOrder(overlay, order, anchor?): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.changeOverlayOrder


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

AnnotatedWidget.checkCollision


clearBaseLayers

▸ clearBaseLayers(disposeBaseLayers?): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.clearBaseLayers


clearCache

▸ clearCache(): SchematicsWidget

Clear cache

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.clearCache


clearChildren

▸ clearChildren(disposeChildren?): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.clearChildren


clearOverlays

▸ clearOverlays(disposeOverlays?): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.clearOverlays


clone

▸ clone(): Group<Node&gt;

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

Returns

Group<Node&gt;

clone

Inherited from

AnnotatedWidget.clone


connect

▸ connect(object, model, orientation?, autoSize?): SchematicsWidget

Synchronizes object with a model

Parameters

Name Type Description
objectAxis | Group<Node&gt;object to be synchronized
modelGroup<Node&gt;source model
Optional orientationOrientationhorizontal or vertical
Optional autoSizebooleantrue if object and model share the same device size in the orientation, true by default if not specified

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.connect


connectStyle

▸ connectStyle(style, type, callback): SchematicsWidget

Connects style.<br> <br> This convenience method subscribes a listener to given style for the specified type.<br> And automatically un-subscribes listener if node is disposed to prevent memory leaks

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.connectStyle


connectTool

▸ connectTool(tool): SchematicsWidget

Connect a new tool with a toolname to the widget

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.connectTool


copyConstructor

▸ Protected copyConstructor(src, deepCopy?): SchematicsWidget

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

Parameters

Name Type Description
srcGroup<Node&gt;Source to copy from
Optional deepCopybooleandeep copy

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.copyConstructor


disconnect

▸ disconnect(object): SchematicsWidget

Disconnect an object from its source model

Parameters

Name Type Description
objectAxis | Group<Node&gt;object to disconnect

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.disconnect


disconnectStyle

▸ disconnectStyle(style, type, callback): SchematicsWidget

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

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.disconnectStyle


disconnectTool

▸ disconnectTool(tool): SchematicsWidget

Disconnect the tool from the widget

Parameters

Name Type Description
toolAbstractTool | AbstractTool[]tool to disconnect

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.disconnectTool


dispose

▸ dispose(): void

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

Returns

void

Inherited from

AnnotatedWidget.dispose


drawBorder

▸ Protected drawBorder(localContext, bounds?): SchematicsWidget

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

Parameters

Name Type Description
localContextRenderingContextThe local rendering context
Optional boundsRectgroup bounds

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.drawBorder


enableClipping

▸ enableClipping(doClip): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.enableClipping


enableEventPropagation

▸ enableEventPropagation(enable): SchematicsWidget

Enable event propagation from the node hierarchy from bottom to top <p> This option is similar to DOM Event bubbling, which allows to get any event from child node. By default it is disabled for better performance. </p>

Example

import {Group} from '@int/geotoolkit/scene/Group';
import {Events as SceneEvents} from '@int/geotoolkit/scene/Node';
const parentGroup = new Group()
.setName('ParentGroup')
.enableEventPropagation(true);
const childGroup = new Group()
.setName('ChildGroup');

parentGroup.addChild(childGroup);
parentGroup.on(SceneEvents.Invalidate, (eventName, sender, args) =&gt; {
// Got notifications from all children of parent group
});
childGroup.invalidate();

Parameters

Name Type Description
enablebooleanenable

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.enableEventPropagation


enablePickingChildren

▸ enablePickingChildren(enable): SchematicsWidget

Enables or disables picking children

Parameters

Name Type Description
enablebooleanenable picking children

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.enablePickingChildren


endExport

▸ endExport(): void

Restores object's state after exporting

Returns

void

Inherited from

AnnotatedWidget.endExport


enumerateNodes

▸ enumerateNodes(callback, target?): void

Executes a provided function once for each child node

Parameters

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

Returns

void

Inherited from

AnnotatedWidget.enumerateNodes


execute

▸ execute(delegate): SchematicsWidget

Executes delegate and return the result. It allows us to keep all initialization calls in one place, <br> and we do not need to scroll up or down in IDE to find how and where it was initialized.

Example

// All setters (.setName() for example) returns reference to the this.
// In order to modify inner object like LineStyle or Pattern, to get this object (property) we should call getter to get object reference.
// Then modify it as shown below in Option 1 or you can use execute methods shown in Option 2.
import {Group} from '@int/geotoolkit/scene/Group';
import {Rect} from '@int/geotoolkit/util/Rect';
// Option 1
const group = new Group()
.setName('MyGroup')
.setBounds(new Rect(0, 0, 42, 16))
.enableClipping(true)
.setTag({'type': 'sometype'});

group.getLineStyle().setPattern('pattern');
return group;

// Options 2 ( using execute method )
return group
.execute(function () {
this.getLineStyle()
.setPattern("pattern");
});

Parameters

Name Type Description
delegate(this: SchematicsWidget) => voidFunction to execute

Returns

SchematicsWidget

The result if any or this

Inherited from

AnnotatedWidget.execute

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

Type parameters

Name
T

Parameters

Name Type
delegate(this: SchematicsWidget) => T

Returns

T

Inherited from

AnnotatedWidget.execute


exportToPdf

▸ exportToPdf(options?): Promise<IWritable&gt;

Export a part of the container to PDF <p>This method sets automatically export scale and limits based on input parameters and current model scale and limits</p>

Parameters

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

Returns

Promise<IWritable&gt;

promise with output stream

Inherited from

AnnotatedWidget.exportToPdf


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

AnnotatedWidget.filter


fitToBounds

▸ fitToBounds(): SchematicsWidget

fit bounds to model limits

Fires

Events.ModelVisibleLimitsChanged

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.fitToBounds


getAnimationStyle

▸ getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

AnnotatedWidget.getAnimationStyle


getAnnotation

▸ getAnnotation(location): Group<Node&gt;

return the node at the specific annotation

Parameters

Name Type Description
locationAnnotationLocationposition to return the node for

Returns

Group<Node&gt;

Inherited from

AnnotatedWidget.getAnnotation


getAnnotationSize

▸ getAnnotationSize(): Required<AnnotationSize&gt;

Return sizes of all annotations or the exact one

Returns

Required<AnnotationSize&gt;

contains size of all annotations

Inherited from

AnnotatedWidget.getAnnotationSize

▸ getAnnotationSize(loc): string | number

Parameters

Name Type
locAnnotationLocation

Returns

string | number

Inherited from

AnnotatedWidget.getAnnotationSize


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

AnnotatedWidget.getAutoModelLimitsMode


getAutoModelLimitsStrategy

▸ getAutoModelLimitsStrategy(): ModelLimitsStrategy

Get Model Limits Logics Strategy

Returns

ModelLimitsStrategy

strategy

Inherited from

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

AnnotatedWidget.getBaseLayer


getBaseLayers

▸ getBaseLayers<S&gt;(predicate, modify?): Iterator<Node&gt;

Return iterator by baseLayers nodes

Type parameters

NameType
Sextends Node<S&gt;

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

Inherited from

AnnotatedWidget.getBaseLayers

▸ getBaseLayers(filter?, modify?): Iterator<Node&gt;

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

An iterator for child overlays.

Inherited from

AnnotatedWidget.getBaseLayers


getBaseLayersCount

▸ getBaseLayersCount(): number

Returns amount of baseLayers

Returns

number

Inherited from

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

AnnotatedWidget.getBounds


getCache

▸ getCache(): Cache

Return cache strategy to be used to cache children nodes

Returns

Cache

cache

Inherited from

AnnotatedWidget.getCache


getCenterModelLimits

▸ getCenterModelLimits(): Rect

Gets WellBoreNode's model limits

Returns

Rect

Implementation of

ISchematicsWidget.getCenterModelLimits

Overrides

AnnotatedWidget.getCenterModelLimits


getChild

▸ getChild(i): Node

Return node by index

Parameters

Name Type Description
inumberindex of the node

Returns

Node

Inherited from

AnnotatedWidget.getChild


getChildren

▸ getChildren<S&gt;(predicate, modify?): Iterator<S&gt;

Return iterator by child nodes

Type parameters

NameType
Sextends Node<S&gt;

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

Inherited from

AnnotatedWidget.getChildren

▸ getChildren(filter?, modify?): Iterator<Node&gt;

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

An iterator for child nodes.

Inherited from

AnnotatedWidget.getChildren


getChildrenCount

▸ getChildrenCount(): number

Return number of child nodes

Returns

number

Inherited from

AnnotatedWidget.getChildrenCount


getClassName

▸ getClassName(): string

Returns

string

Implementation of

ISchematicsWidget.getClassName

Inherited from

AnnotatedWidget.getClassName


getClipStyle

▸ getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

AnnotatedWidget.getClipStyle


getContentOrientation

▸ getContentOrientation(): Orientation

Return content orientation

Returns

Orientation

content orientation

Inherited from

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

AnnotatedWidget.getContentsArea


getContentsTransform

▸ getContentsTransform(): Transformation

<code>getContentsTransform()</code> retrieves the world transformation of the node.

Returns

Transformation

transformation from model coordinates to bounds of the group

Inherited from

AnnotatedWidget.getContentsTransform


getCss

▸ getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

AnnotatedWidget.getCss


getCssClass

▸ getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

AnnotatedWidget.getCssClass


getCssClasses

▸ getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

AnnotatedWidget.getCssClasses


getCssTransform

▸ getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

AnnotatedWidget.getCssTransform


getData

▸ getData(): WellBoreData

Gets WellBoreData data instance

Returns

WellBoreData

Overrides

AnnotatedWidget.getData


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

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

AnnotatedWidget.getDesiredWidth


getDeviceLimits

▸ getDeviceLimits(): Rect

Return device limits

Returns

Rect

Inherited from

AnnotatedWidget.getDeviceLimits


getDevicePoint

▸ getDevicePoint(modelPoint, devicePoint?): Point

Gets device coordinates at given model ones

Parameters

Name Type Description
modelPointPointsource model point (where y-ordinate is true MD-value)
Optional devicePointPointdestination device point

Returns

Point


getExportElement

▸ getExportElement(options?): CompositeDocumentElement

Returns exportable element

Parameters

Name Type Description
Optional optionsExportElementOptionsoptions

Returns

CompositeDocumentElement

return exportable element

Inherited from

AnnotatedWidget.getExportElement


getExportLimits

▸ getExportLimits(): Rect

Return export limits

Returns

Rect

Inherited from

AnnotatedWidget.getExportLimits


getExportScale

▸ getExportScale(): Object

Gets export scale. By default scale is not set and equal to screen scale

Returns

Object

scale

NameTypeDescription
xnumberscale by x form model to device
ynumberscale by y form model to device

Inherited from

AnnotatedWidget.getExportScale


getExportState

▸ Protected getExportState(): Record<string, any&gt;

Returns export state

Returns

Record<string, any&gt;

export state

Inherited from

AnnotatedWidget.getExportState


getFillStyle

▸ getFillStyle(): FillStyle

Return fill style

Returns

FillStyle

fillStyle current fill style

Inherited from

AnnotatedWidget.getFillStyle


getId

▸ getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

AnnotatedWidget.getId


getInfiniteMode

▸ getInfiniteMode(): boolean

Return infinity mode flag

Returns

boolean

flag

Inherited from

AnnotatedWidget.getInfiniteMode


getInvalidateMethod

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

Gets invalidate method

Returns

AttributeCallback<EventDispatcher&gt;

method to invalidate this object

Inherited from

AnnotatedWidget.getInvalidateMethod


getLabelingStrategy

▸ getLabelingStrategy(): LabelingStrategy

Gets labeling strategy

Returns

LabelingStrategy

Implementation of

ISchematicsWidget.getLabelingStrategy


getLayout

▸ getLayout(): Layout

Returns layout associated with the group

Returns

Layout

layout

Inherited from

AnnotatedWidget.getLayout


getLayoutStyle

▸ getLayoutStyle(): LayoutStyle<string | number&gt;

return desired layout style

Returns

LayoutStyle<string | number&gt;

Inherited from

AnnotatedWidget.getLayoutStyle


getLegendLayer

▸ getLegendLayer(): Group<Node&gt;

Returns layer to keep legend on top of widget

Returns

Group<Node&gt;

Inherited from

AnnotatedWidget.getLegendLayer


getLineStyle

▸ getLineStyle(): LineStyle

Return border style

Returns

LineStyle

Inherited from

AnnotatedWidget.getLineStyle


getLocalTransform

▸ getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

AnnotatedWidget.getLocalTransform


getManipulatorLayer

▸ getManipulatorLayer(): CompositeNode<Node&gt;

return manipulator layer

Returns

CompositeNode<Node&gt;

Inherited from

AnnotatedWidget.getManipulatorLayer


getMarginsStyle

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

Return margins style

Returns

SpaceStyle<string | number&gt;

Inherited from

AnnotatedWidget.getMarginsStyle


getModel

▸ getModel(): Group<Node&gt;

get model node

Returns

Group<Node&gt;

Inherited from

AnnotatedWidget.getModel


getModelLimits

▸ getModelLimits(): Rect

Gets model limits, the limits of this groups inside space

Returns

Rect

the current model limits

Inherited from

AnnotatedWidget.getModelLimits


getModelPoint

▸ getModelPoint(devicePoint, modelPoint?): Point

Gets model coordinates (where y-ordinate is true MD-value) at given device ones

Parameters

Name Type Description
devicePointPointsource device point
Optional modelPointPointdestination model point

Returns

Point


getName

▸ getName(): string

Returns the node name

Returns

string

The node name

Inherited from

AnnotatedWidget.getName


getOpacity

▸ getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

AnnotatedWidget.getOpacity


getOpacityBlendMode

▸ getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

AnnotatedWidget.getOpacityBlendMode


getOptions

▸ getOptions(): any

Gets widget options (see "setOptions" API for the options format)

Returns

any

widget options

Implementation of

ISchematicsWidget.getOptions


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

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

AnnotatedWidget.getOverlayAt


getOverlayLayer

▸ getOverlayLayer(): Layer<Node&gt;

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

Returns

Layer<Node&gt;

Inherited from

AnnotatedWidget.getOverlayLayer


getOverlays

▸ getOverlays<S&gt;(predicate, modify?): Iterator<Node&gt;

Return iterator by overlays nodes

Type parameters

NameType
Sextends Node<S&gt;

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

Inherited from

AnnotatedWidget.getOverlays

▸ getOverlays(filter?, modify?): Iterator<Node&gt;

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

An iterator for child overlays.

Inherited from

AnnotatedWidget.getOverlays


getOverlaysCount

▸ getOverlaysCount(): number

Returns amount of overlays

Returns

number

Inherited from

AnnotatedWidget.getOverlaysCount


getPaddingStyle

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

Return padding style

Returns

SpaceStyle<string | number&gt;

padding

Inherited from

AnnotatedWidget.getPaddingStyle


getParent

▸ getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

AnnotatedWidget.getParent


getPreferredSize

▸ getPreferredSize(): Rect

Return preferred size to layout children

Returns

Rect

Inherited from

AnnotatedWidget.getPreferredSize


getProperties

▸ getProperties(context?): OptionsOut

Gets all the properties pertaining to this object

Parameters

Name Type Description
Optional contextISerializationContextserialization context

Returns

OptionsOut

properties object

Overrides

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

AnnotatedWidget.getProperty


getPropertyKeys

▸ getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

AnnotatedWidget.getPropertyKeys


getRenderingFilter

▸ getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

AnnotatedWidget.getRenderingFilter


getResponsiveStyle

▸ getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

AnnotatedWidget.getResponsiveStyle


getRoot

▸ getRoot(): Node

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

Returns

Node

the root node

Inherited from

AnnotatedWidget.getRoot


getScaleScrollStrategy

▸ getScaleScrollStrategy(): Delegate

Gets ScaleScrollStrategy ("undefined" by default)

Returns

Delegate

ScaleScrollStrategy (see "setScaleScrollStrategy" description for more info)

Inherited from

AnnotatedWidget.getScaleScrollStrategy


getSceneTransform

▸ getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

AnnotatedWidget.getSceneTransform


getSelectedComponentNodes

▸ getSelectedComponentNodes(): ComponentNode[]

Gets selected component nodes

Returns

ComponentNode[]


getTag

▸ getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

AnnotatedWidget.getTag


getTool

▸ getTool(): CompositeTool

Returns root tool associated to this widget

Returns

CompositeTool

Inherited from

AnnotatedWidget.getTool


getToolByName

▸ getToolByName<T&gt;(toolName): Tools[T]

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

Type parameters

NameType
Textends string

Parameters

Name Type Description
toolNameTThe tool name or path

Returns

Tools[T]

Overrides

AnnotatedWidget.getToolByName


getToolByType

▸ getToolByType(toolType): AbstractTool

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

Parameters

Name Type Description
toolTypeClassType<any&gt;toolType of the tool

Returns

AbstractTool

Inherited from

AnnotatedWidget.getToolByType


getToolsOptions

▸ getToolsOptions(): ToolsOptionsOut

Gets Tools Options

Returns

ToolsOptionsOut

JSON which defines tools options

Inherited from

AnnotatedWidget.getToolsOptions


getViewMode

▸ getViewMode(): ViewMode

Gets well bore view mode

Returns

ViewMode

viewMode

Implementation of

ISchematicsWidget.getViewMode


getVisible

▸ getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

AnnotatedWidget.getVisible


getVisibleCenterModelLimits

▸ getVisibleCenterModelLimits(ignoreModelLimits?): Rect

Returns visible model limits of the center model

Parameters

Name Type Description
Optional ignoreModelLimitsbooleanflag defines whether to ignore model limits or not. By default this option is false and visible limits will be intersected with center model limits

Returns

Rect

Inherited from

AnnotatedWidget.getVisibleCenterModelLimits


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

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

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

AnnotatedWidget.getWorldTransform


getZIndex

▸ getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

AnnotatedWidget.getZIndex


hasCssClass

▸ hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

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

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

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

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

AnnotatedWidget.indexOfOverlay


initializeFloatingAnnotationTool

▸ Protected initializeFloatingAnnotationTool(): FloatingAnnotationTool

Returns

FloatingAnnotationTool

Inherited from

AnnotatedWidget.initializeFloatingAnnotationTool


initializeLayout

▸ initializeLayout(settings): Group<Node&gt;

Parameters

Name Type
settingsOptions

Returns

Group<Node&gt;

Inherited from

AnnotatedWidget.initializeLayout


initializeTools

▸ Protected initializeTools(options?): SchematicsWidget

function call in the constructor to initialize tools in the widget<br> This widget contains by default :<br>

Parameters

Name Type Description
Optional optionsOptionstools options

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.initializeTools


insertAxis

▸ insertAxis(axisIndex, axis, location, connectedObject?): Object

Insert new axis and connect with object

Parameters

Name Type Description
axisIndexnumberdesired axis index
axisAxis | AxisOptionsnew axis instance or options
locationAnnotationLocationlocation of annotation for adding new axis
Optional connectedObjectGroup<Node&gt;connected object of axis

Returns

Object

NameType
axisAxis
groupGroup<Node&gt;

Inherited from

AnnotatedWidget.insertAxis


insertBaseLayer

▸ insertBaseLayer(index, baseLayer): SchematicsWidget

Insert child baseLayer at specified index

Parameters

Name Type Description
indexnumberspecified index
baseLayerNodea baseLayer to add

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.insertBaseLayer


insertChild

▸ insertChild(index, node): SchematicsWidget

Insert child node at specified index

Parameters

Name Type Description
indexnumberspecified index
nodeNodea child node to add

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.insertChild


insertOverlay

▸ insertOverlay(index, overlay): SchematicsWidget

Insert child overlay at specified index

Parameters

Name Type Description
indexnumberspecified index
overlayNodea overlay to add

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.insertOverlay


invalidate

▸ invalidate(bounds?, force?): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.invalidate


invalidateLayout

▸ invalidateLayout(propagate?): SchematicsWidget

Notify that layout is invalidated. Send event Events.LayoutInvalidated

Parameters

Name Type Description
Optional propagatebooleanpropagate invalidate layout to parent

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.invalidateLayout


invalidateParent

▸ invalidateParent(bounds?, force?): SchematicsWidget

Invalidate parent area

Parameters

Name Type Description
Optional boundsRectarea to invalidate
Optional forcebooleanforce

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.invalidateParent


isClippingEnabled

▸ isClippingEnabled(): boolean

Returns if clipping is enabled or not for this node.

Returns

boolean

Inherited from

AnnotatedWidget.isClippingEnabled


isDisposed

▸ isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

AnnotatedWidget.isDisposed


isEventPropagationEnabled

▸ isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

AnnotatedWidget.isEventPropagationEnabled


isHorizontalFlip

▸ isHorizontalFlip(): boolean

Return true if the representation is flipped horizontally

Returns

boolean

flip

Inherited from

AnnotatedWidget.isHorizontalFlip


isLayoutInvalidated

▸ isLayoutInvalidated(): boolean

Return true if layout is invalid

Returns

boolean

Inherited from

AnnotatedWidget.isLayoutInvalidated


isNotificationEnabled

▸ isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

AnnotatedWidget.isNotificationEnabled


isPickingChildrenEnabled

▸ isPickingChildrenEnabled(): boolean

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

Returns

boolean

pickingChildren

Inherited from

AnnotatedWidget.isPickingChildrenEnabled


isSelectable

▸ isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

AnnotatedWidget.isSelectable


isSilent

▸ isSilent(): boolean

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

Returns

boolean

Inherited from

AnnotatedWidget.isSilent


isVerticalFlip

▸ isVerticalFlip(): boolean

Return true if the representation is flipped vertically

Returns

boolean

flip

Inherited from

AnnotatedWidget.isVerticalFlip


listToolsNames

▸ listToolsNames(): string[]

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

Returns

string[]

Inherited from

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

AnnotatedWidget.loadTemplate


moveTo

▸ moveTo(area, vAlign?, hAlign?): SchematicsWidget

MoveTo position of node to specified area

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.moveTo


notify

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

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEtype of event
sourceAnnotatedWidgetsource who called the event
Optional argsEventMap[E]event arguments

Returns

SchematicsWidget

this

Inherited from

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

AnnotatedWidget.notifyRoot


off

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

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.off


on

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

Attach listener on event that will be called whenever the specified event is delivered to the target <p> If the callback function is already in the list of event listeners for this target, the function is not added a second time. </p> <p> If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target. </p>

Type parameters

NameType
Eextends string

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.on


onBoundsChanged

▸ Protected onBoundsChanged(bounds): SchematicsWidget

Occurs when bounds has been changed

Parameters

Name Type Description
boundsRectbound of the node in the parent coordinates

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.onBoundsChanged


onChildAdded

▸ Protected onChildAdded(child): void

This method is called it child or children are added

Parameters

Name Type Description
childNode | Iterator<Node&gt;added child

Returns

void

Inherited from

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

AnnotatedWidget.onChildRemoved


onParentChanged

▸ Protected onParentChanged(node): SchematicsWidget

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.onParentChanged


onVisibilityChanged

▸ Protected onVisibilityChanged(): void

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

Returns

void

Inherited from

AnnotatedWidget.onVisibilityChanged


pan

▸ pan(dx, dy): SchematicsWidget

attempts to translate the model using the specific x, y translation

Fires

Events.ModelVisibleLimitsChanged

Parameters

Name Type Description
dxnumberrelative horizontal change
dynumberrelative vertical change

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.pan


panModelTo

▸ panModelTo(target, animationOptions?): SchematicsWidget

Pans the content to the point.

Parameters

Name Type Description
targetPointPoint where to pan in model space
Optional animationOptionsPanAnimationOptionsAnimation options

Returns

SchematicsWidget

Inherited from

AnnotatedWidget.panModelTo


panningHandle

▸ Protected panningHandle(sender, eventArgs): void

Handles the panning tool events for properly panning widget

Parameters

Name Type Description
senderPanningsender
eventArgsPanningEventArgsevent args

Returns

void

Inherited from

AnnotatedWidget.panningHandle


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

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

AnnotatedWidget.preRendering


rebuild

▸ rebuild(force?, changes?): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.rebuild


refreshLayout

▸ refreshLayout(): SchematicsWidget

Refresh layout of inner components of the widget

Returns

SchematicsWidget

Inherited from

AnnotatedWidget.refreshLayout


registerAnimationStyle

▸ registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

AnnotatedWidget.registerAnimationStyle


removeAxis

▸ removeAxis(axis): void

remove axis

Parameters

Name Type Description
axisAxisaxis to be removed

Returns

void

Inherited from

AnnotatedWidget.removeAxis


removeBaseLayer

▸ removeBaseLayer(baseLayer): SchematicsWidget

Remove child baseLayer

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.removeBaseLayer


removeChild

▸ removeChild(node, disposeChildren?): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.removeChild


removeCssClass

▸ removeCssClass(cssclass): SchematicsWidget

Removes css class from node

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.removeCssClass


removeInvalidateHandler

▸ removeInvalidateHandler(handler): SchematicsWidget

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.removeInvalidateHandler


removeLegend

▸ removeLegend(legendPanel): SchematicsWidget

remove legend

Parameters

Name Type
legendPanelLegendPanel

Returns

SchematicsWidget

Inherited from

AnnotatedWidget.removeLegend


removeOverlay

▸ removeOverlay(overlay): SchematicsWidget

Remove child overlay

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.removeOverlay


removeTitle

▸ removeTitle(location): void

remove title in the location

Parameters

Name Type Description
locationAnnotationLocationof the title

Returns

void

Inherited from

AnnotatedWidget.removeTitle


render

▸ render(context): void

Render group

Parameters

Name Type Description
contextRenderingContextcontext to render group

Returns

void

Inherited from

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

AnnotatedWidget.renderAsync


renderBackground

▸ Protected renderBackground(context, bounds): SchematicsWidget

Render background

Parameters

Name Type Description
contextRenderingContextcontext to render background
boundsRectgroup bounds

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.renderBackground


renderBaseLayers

▸ Protected renderBaseLayers(context): SchematicsWidget

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

SchematicsWidget

this

Inherited from

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

AnnotatedWidget.renderBaseLayersAsync


renderChildren

▸ Protected renderChildren(context): void

Render children

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

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

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

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

AnnotatedWidget.renderContentAsync


renderOverlays

▸ Protected renderOverlays(context): SchematicsWidget

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

SchematicsWidget

this

Inherited from

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

AnnotatedWidget.renderOverlaysAsync


restoreToolState

▸ restoreToolState(): SchematicsWidget

Restore tools state

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.restoreToolState


resumeUpdate

▸ resumeUpdate(rebuild?, changes?): SchematicsWidget

Resume auto update

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.resumeUpdate


rotate

▸ rotate(theta, x, y): SchematicsWidget

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

SchematicsWidget

this

Inherited from

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

AnnotatedWidget.saveTemplate


saveToolsState

▸ saveToolsState(): SchematicsWidget

Saves tools state

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.saveToolsState


scale

▸ scale(xx, yy): SchematicsWidget

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.scale


scaleModel

▸ scaleModel(xx, yy, posX?, posY?): SchematicsWidget

Scale node's contents.

Fires

Events.ModelVisibleLimitsChanged

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor
Optional posXnumberx position to scale from (in pxl)
Optional posYnumbery position to scale from (in pxl)

Returns

SchematicsWidget

Inherited from

AnnotatedWidget.scaleModel


setAnimationStyle

▸ setAnimationStyle(animationStyle): SchematicsWidget

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

SchematicsWidget

Inherited from

AnnotatedWidget.setAnimationStyle


setAnnotationSize

▸ setAnnotationSize(annotationSize?): SchematicsWidget

apply size (width or height) to annotation (convenience method)

Example

{
*   west : 50,
*   east : '10%',
*   south: 'auto'
* }

Parameters

Name Type Description
Optional annotationSizeAnnotationSizeJSON to hold (width or height) of the annotation

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setAnnotationSize


setAnnotationsOptions

▸ setAnnotationsOptions(options): SchematicsWidget

Sets annotations' options. currently setAnnotationOptions can only modify existing annotation, while the constructor for the widget can create new ones.

Parameters

Name Type Description
optionsAnnotationOptionsJSON to hold annotations' options

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setAnnotationsOptions


setAutoModelLimitsMode

▸ setAutoModelLimitsMode(mode): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.setAutoModelLimitsMode


setAutoModelLimitsStrategy

▸ setAutoModelLimitsStrategy(strategy): SchematicsWidget

Set Model Limits Logics Strategy

Parameters

Name Type Description
strategyModelLimitsStrategyModel Limits logic strategy to use

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setAutoModelLimitsStrategy


setBounds

▸ setBounds(bounds): SchematicsWidget

Sets bounds of the node in the parent coordinates

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setBounds


setCache

▸ setCache(cache, rebuild?): SchematicsWidget

Sets cache to be used to cache

Parameters

Name Type Description
cacheCachecache to be used
Optional rebuildbooleanrebuild cache

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setCache


setCenterModelLimits

▸ setCenterModelLimits(modellimits): SchematicsWidget

Set the model limits of center model

Fires

Events.ModelVisibleLimitsChanged

Example

//artificially expand the widget model limits
import {Rect} from '@int/geotoolkit/util/Rect';
const newLimits = new Rect(0,0,10,10);
widget.setCenterModelLimits(newLimits);

Parameters

Name Type Description
modellimitsRectmodel limits

Returns

SchematicsWidget

Inherited from

AnnotatedWidget.setCenterModelLimits


setChild

▸ setChild(index, node): SchematicsWidget

Replace child node by index

Parameters

Name Type Description
indexnumberindex of the node
nodeNodenode

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setChild


setClipStyle

▸ setClipStyle(style): SchematicsWidget

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setClipStyle


setContentOrientation

▸ setContentOrientation(orientation): SchematicsWidget

Set content orientation

Parameters

Name Type Description
orientationOrientationcontent orientation

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setContentOrientation


setCss

▸ setCss(style, merge?): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.setCss


setCssClass

▸ setCssClass(name): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.setCssClass


setCssTransform

▸ setCssTransform(transform): SchematicsWidget

Set CSS transformation

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setCssTransform


setData

▸ setData(data): SchematicsWidget

Sets data

Parameters

Name Type Description
dataanywellbore data to set

Returns

SchematicsWidget

Implementation of

ISchematicsWidget.setData


setDesiredHeight

▸ setDesiredHeight(value, silent?): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.setDesiredHeight


setDesiredWidth

▸ setDesiredWidth(value, silent?): SchematicsWidget

Sets desired width of the group as a layoutable object

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setDesiredWidth


setExportLimits

▸ setExportLimits(limits): SchematicsWidget

Sets export limits

Parameters

Name Type Description
limitsRectexport limits

Returns

SchematicsWidget

Inherited from

AnnotatedWidget.setExportLimits


setExportScale

▸ setExportScale(scale): SchematicsWidget

Sets export scale.

Parameters

Name Type Description
scaleObjectscale
scale.xnumberscale by x form model to device
scale.ynumberscale by y form model to device

Returns

SchematicsWidget

Inherited from

AnnotatedWidget.setExportScale


setFillStyle

▸ setFillStyle(fillStyle, merge?): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.setFillStyle


setHorizontalFlip

▸ setHorizontalFlip(enable): SchematicsWidget

Set horizontal flip of the representation

Parameters

Name Type Description
enablebooleanenable flip

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setHorizontalFlip


setId

▸ setId(id): SchematicsWidget

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setId


setInfiniteMode

▸ setInfiniteMode(infinityMode): SchematicsWidget

Set infinity mode flag to draw composite without collision check

Parameters

Name Type Description
infinityModebooleaninfinity mode flag

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setInfiniteMode


setLayout

▸ setLayout(layout): SchematicsWidget

Associate layout with a group.

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setLayout


setLayoutInvalidated

▸ Protected setLayoutInvalidated(invalidated): void

Set invalidation status

Parameters

Name Type Description
invalidatedbooleaninvalidated layout

Returns

void

Inherited from

AnnotatedWidget.setLayoutInvalidated


setLayoutStyle

▸ setLayoutStyle(layoutStyle, silent?, merge?): SchematicsWidget

specify desired layout style

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setLayoutStyle


setLineStyle

▸ setLineStyle(lineStyle, merge?): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.setLineStyle


setLocalTransform

▸ setLocalTransform(localTransform, force?): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.setLocalTransform


setMarginsStyle

▸ setMarginsStyle(margins, merge?): SchematicsWidget

Sets margins style

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setMarginsStyle


setModelLimits

▸ setModelLimits(limits): SchematicsWidget

Sets inner model limits

Parameters

Name Type Description
limitsTypeinner limits

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setModelLimits


setModelTransformation

▸ setModelTransformation(transformation): SchematicsWidget

Attempts to set local transformation for the model. NOTE: the local transformation set may not be equal to transformation passed - it depends on current ScaleScrollStrategy set on the node.

Parameters

Name Type Description
transformationTransformationtransformation to set

Returns

SchematicsWidget

Inherited from

AnnotatedWidget.setModelTransformation


setName

▸ setName(name): SchematicsWidget

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setName


setNotification

▸ setNotification(notify, force?): SchematicsWidget

set notification state

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setNotification


setOpacity

▸ setOpacity(opacity, blendMode?): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.setOpacity


setOptions

▸ setOptions(options?): SchematicsWidget

Sets widget options

Parameters

Name Type Description
Optional optionsOptionsBaseproperties

Returns

SchematicsWidget

Implementation of

ISchematicsWidget.setOptions


setPaddingStyle

▸ setPaddingStyle(paddingStyle, merge?): SchematicsWidget

Sets padding style

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setPaddingStyle


setParent

▸ setParent(parent): SchematicsWidget

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

Parameters

Name Type Description
parentNodea parent node

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setParent


setProperties

▸ setProperties(properties?): SchematicsWidget

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsproperties

Returns

SchematicsWidget

this

Overrides

AnnotatedWidget.setProperties


setProperty

▸ setProperty(name, value): SchematicsWidget

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setProperty


setRenderingFilter

▸ setRenderingFilter(filter): SchematicsWidget

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setRenderingFilter


setResponsiveStyle

▸ setResponsiveStyle(style): SchematicsWidget

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setResponsiveStyle


setScaleScrollStrategy

▸ setScaleScrollStrategy(delegate): SchematicsWidget

set the scale scroll strategy to apply to the widget

Parameters

Name Type Description
delegateDelegatescaleScrollStrategy to set

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setScaleScrollStrategy


setSelectable

▸ setSelectable(selectable): SchematicsWidget

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

SchematicsWidget

this

Inherited from

AnnotatedWidget.setSelectable


setSelectedComponentNodes

▸ setSelectedComponentNodes(selectedComponentNodes): SchematicsWidget

Sets selected component nodes

Parameters

Name Type Description
selectedComponentNodesComponentNode[]selected component nodes

Returns

SchematicsWidget

this


setSilent

▸ setSilent(bool): SchematicsWidget

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setSilent


setTag

▸ setTag(tag): SchematicsWidget

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

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setTag


setTitleOptions

▸ setTitleOptions(location, options): SchematicsWidget

set options for title

Parameters

Name Type Description
locationAnnotationLocationof the title
optionsOmit<TitleOptions, &amp;quot;location&amp;quot;&gt;title options

Returns

SchematicsWidget

Inherited from

AnnotatedWidget.setTitleOptions


setTool

▸ Protected setTool(tool): SchematicsWidget

Set root tool associated to this widget

Parameters

Name Type Description
toolCompositeTooltool to be set

Returns

SchematicsWidget

Inherited from

AnnotatedWidget.setTool


setToolsOptions

▸ setToolsOptions(options): SchematicsWidget

Sets tools options

Parameters

Name Type Description
optionsanyoptions (see AnnotatedWidget.setToolsOptions for inherited options)

Returns

SchematicsWidget

this

Overrides

AnnotatedWidget.setToolsOptions


setVerticalFlip

▸ setVerticalFlip(flip): SchematicsWidget

Set vertical flip of the representation

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setVerticalFlip


setViewMode

▸ setViewMode(viewMode): Object

Sets well bore view mode

Parameters

Name Type Description
viewModeViewMode | ViewModeInfowell bore view mode

Returns

Object

"model limits to bounds" depths mapping

NameTypeDescription
boundsdepthsnumber[]bounds depths
modellimitsdepthsnumber[]model limits depths

Implementation of

ISchematicsWidget.setViewMode


setVisible

▸ setVisible(value): SchematicsWidget

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setVisible


setVisibleCenterModelLimits

▸ setVisibleCenterModelLimits(newVisibleModelLimits): SchematicsWidget

Attempts to set model's visible limits to specified limits. NOTE: the limits set may not be equal to the limit passed - it depends on current ScaleScrollStrategy set on the node.

Fires

Events.ModelVisibleLimitsChanged

Parameters

Name Type Description
newVisibleModelLimitsRectlimits to set

Returns

SchematicsWidget

Inherited from

AnnotatedWidget.setVisibleCenterModelLimits


setVisibleModelLimits

▸ setVisibleModelLimits(newVisibleModelLimits): SchematicsWidget

Attempts to set model's visible limits to specified limits. NOTE: the limits set may not be equal to the limit passed - it depends on current ScaleScrollStrategy set on the node.

Parameters

Name Type Description
newVisibleModelLimitsRectlimits to set

Returns

SchematicsWidget

Inherited from

AnnotatedWidget.setVisibleModelLimits


setZIndex

▸ setZIndex(value): SchematicsWidget

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.setZIndex


shear

▸ shear(shx, shy): SchematicsWidget

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.shear


suspendUpdate

▸ suspendUpdate(): SchematicsWidget

Suspend auto update

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.suspendUpdate


synchronizeViewLimits

▸ Protected synchronizeViewLimits(): SchematicsWidget

Returns

SchematicsWidget

Inherited from

AnnotatedWidget.synchronizeViewLimits


toString

▸ toString(): string

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

Returns

string

A string representation

Inherited from

AnnotatedWidget.toString


transformDepth

▸ transformDepth(val, mdToLinear?): number

Transforms depth value between linear and MD model space.<br> If not possible returns NaN

Parameters

Name Type Description
valnumberdepth value to transform
Optional mdToLinearbooleandirection of transformation

Returns

number

transformed value


translate

▸ translate(tx, ty): SchematicsWidget

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.translate


translateModel

▸ translateModel(tx, ty): SchematicsWidget

Translates widget's contents.

Fires

Events.ModelVisibleLimitsChanged

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

SchematicsWidget

Inherited from

AnnotatedWidget.translateModel


unregisterAnimationStyle

▸ unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootAnimatedNoderoot node for node

Returns

void

Inherited from

AnnotatedWidget.unregisterAnimationStyle


updateLayout

▸ updateLayout(targets?): SchematicsWidget

Updates layout(s)

Parameters

Name Type Description
Optional targetsILayoutable[]not used (entire content gets layouted)

Returns

SchematicsWidget

Overrides

AnnotatedWidget.updateLayout


updateSceneTransformation

▸ updateSceneTransformation(): SchematicsWidget

Update scene transformation

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.updateSceneTransformation


updateState

▸ updateState(regions?, changes?): SchematicsWidget

Update state. These methods reset node state and update state for children. this method is useful to refresh a scene graph

Parameters

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.updateState


updateSuspended

▸ updateSuspended(): boolean

Return state of suspend state

Returns

boolean

state of update

Inherited from

AnnotatedWidget.updateSuspended


updateTimeStamp

▸ Protected updateTimeStamp(): SchematicsWidget

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

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.updateTimeStamp


zoomHandle

▸ Protected zoomHandle(sender, eventArgs): void

Handles the zoom tool events for properly scaling widget

Parameters

Name Type Description
senderZoomsender
eventArgsZoomEventArgsevent args

Returns

void

Inherited from

AnnotatedWidget.zoomHandle


zoomIn

▸ zoomIn(): SchematicsWidget

zoom in, with default factor = 5/4

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.zoomIn


zoomOut

▸ zoomOut(): SchematicsWidget

zoom out, with default factor = 5/4

Returns

SchematicsWidget

this

Inherited from

AnnotatedWidget.zoomOut


zoomToRect

▸ zoomToRect(limits?): void

Sets visible model limits

Fires

Events.ModelVisibleLimitsChanged

Parameters

Name Type Description
Optional limitsRectthe visible model limits

Returns

void

Inherited from

AnnotatedWidget.zoomToRect


enableSceneGraphNotification

▸ Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

AnnotatedWidget.enableSceneGraphNotification


findParent

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

Find root of the node with specified type

Type parameters

NameType
Textends Constructor<any&gt;

Parameters

Name Type Description
nodeNodenode to start search
classTypeTtype of the class to search for
Optional filter(node: Node) => booleanadditional filter to apply

Returns

InstanceType<T&gt;

Inherited from

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

AnnotatedWidget.findParent


getClassName

▸ Static getClassName(): string

Returns

string

Inherited from

AnnotatedWidget.getClassName


isSceneGraphNotificationEnabled

▸ Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

AnnotatedWidget.isSceneGraphNotificationEnabled