Last updated

API / geotoolkit / seismic / widgets / tools / Comparator / Comparator

Class: Comparator

tools.Comparator.Comparator

Creates default implementation of the seismic comparison tool.

Example

// To initialize the comparator/layer tool
seismicWidget.getToolByName('comparator').setEnabled(true)

Example

// By default the orientation is vertical. Following example shows how to change the orientation.
import {Orientation} from '@int/geotoolkit/util/Orientation';
seismicWidget.getToolByName('comparator').setOrientation(Orientation.Horizontal);

Hierarchy

Table of contents

Constructors
Methods
Css Properties
Name Type Description
enabledbooleanEnabled state
layerCompositeNodeManipulator layer
layer-clippingbooleanEnable clipping, this does not consider the clipstyle, it is related to bounds-clipping
layer-clipstyleClipStyleClipping style
layer-clipstyle-evenoddbooleanTrue if evenodd mode is on ('nonzero' mode otherwise)
layer-clipstyle-geometryGraphicsPathClipping geometry
layer-clipstyle-geometry-boundsRectBounds
layer-clipstyle-geometry-bounds-heightnumberHeight
layer-clipstyle-geometry-bounds-readonlybooleanReadonly
layer-clipstyle-geometry-bounds-widthnumberWidth
layer-clipstyle-geometry-bounds-xnumberLeft
layer-clipstyle-geometry-bounds-ynumberTop
layer-clipstyleGraphicsPathClipping style
layer-cssclassstringThe css class name of this node
layer-csscursorstringCSS cursor associated with node
layer-cssstylestringCSS style to be applied to inserted elements
layer-idstring | numberId of the node, its a unique identifier
layer-infinitybooleanMode to render outside the model limits
layer-localtransformTransformationLocal transformation
layer-localtransform-dxnumberX axis translation
layer-localtransform-dynumberY axis translation
layer-localtransform-xxnumberX scale
layer-localtransform-xynumberXy skew
layer-localtransform-yxnumberYx skew
layer-localtransform-yynumberY scale
layer-marginsnumber | stringIt has properties for specifying the margins for each side
layer-namestringName of the node. It is often used for debugging purposes or to simplify queries
layer-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
layer-opacityblendmodeBlendModeNode opacity mode to blend it
layer-scalescrollstrategyScaleScrollStrategyScale scroll strategy
layer-scalescrollstrategy-enabledbooleanEnable flag
layer-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
layer-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
layer-transformstringAdditional CSS transformation applied to node or 'none'
layer-transformTransformationAdditional CSS transformation applied to node or 'none'
layer-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
layer-z-indexnumberDefine node z-index
mouseradiusnumberDevice radius for mouse events
namestringName of the tool used like cross-hair etc
touchradiusnumberDevice radius for touch events
widgetSeismicViewWidgetThe target widget to add the comparator to
widget-annotationssizesAnnotationSizeJSON to hold (width or height) of the annotation
widget-annotationssizes-eaststring | numberPreferred width of east annotation size
widget-annotationssizes-northstring | numberPreferred height of north annotation size
widget-annotationssizes-southstring | numberPreferred height of south annotation size
widget-annotationssizes-weststring | numberPreferred width of west annotation size
widget-autoseismiclimitsbooleanSets model limits of the center group based on the pipeline limits. If limits sets to false
widget-axesAxesOptionsSpecify set of axes
widget-axes-headersAxesHeadersOptionsSeismic headers axes options
widget-axes-headers-directionDirection
widget-axes-headers-locationAnnotationLocation
widget-axes-headers-sizenumber
widget-axes-samplesAxesSamplesOptionsSpecify properties of vertical axis
widget-axes-samples-cssclassstringDefines cssclass of samples axis
widget-axes-samples-instanceAxisDefines instance of sample axis
widget-axes-samples-instance-autolabelrotationbooleanAutomatic label rotation
widget-axes-samples-instance-autolabelrotationanglenumber
widget-axes-samples-instance-baselinestylestringBase line style
widget-axes-samples-instance-baselinestyleLineStyleBase line style
widget-axes-samples-instance-baselinestyle-colorstringColor in CSS form
widget-axes-samples-instance-baselinestyle-fillstringOptional fill style to be used to fill lines generated with this style
widget-axes-samples-instance-baselinestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
widget-axes-samples-instance-baselinestyle-fill-colorstringColor in CSS form
widget-axes-samples-instance-baselinestyle-fill-evenoddmodebooleanEven-odd fill mode
widget-axes-samples-instance-baselinestyle-fill-fillpatternPatternPattern
widget-axes-samples-instance-baselinestyle-fill-fillpattern-containernamestringAn optional container name, which creates an image pattern. This parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself
widget-axes-samples-instance-baselinestyle-fill-fillpattern-patternnamestringName of this pattern for indexing
widget-axes-samples-instance-baselinestyle-fill-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
widget-axes-samples-instance-baselinestyle-fill-foregroundstringForeground color
widget-axes-samples-instance-baselinestyle-fill-patternPatternPattern
widget-axes-samples-instance-baselinestyle-linecapCapStyleThe line cap style
widget-axes-samples-instance-baselinestyle-linedashoffsetnumberLine dash offset of dashed line
widget-axes-samples-instance-baselinestyle-linejoinJoinStyleThe line join style
widget-axes-samples-instance-baselinestyle-pixelsnapmodebooleanPixel Snap Mode, default(
widget-axes-samples-instance-baselinestyle-scalablebooleanTrue if width should depend on transformation
widget-axes-samples-instance-baselinestyle-unitstringOptional unit for the width
widget-axes-samples-instance-baselinestyle-widthnumber | stringThe line thickness
widget-axes-samples-instance-boundsRectAxis bounds
widget-axes-samples-instance-clipstyleClipStyleClipping style
widget-axes-samples-instance-clipstyleGraphicsPathClipping style
widget-axes-samples-instance-cssclassstringThe css class name of this node
widget-axes-samples-instance-csscursorstringCSS cursor associated with node
widget-axes-samples-instance-cssstylestringCSS style to be applied to inserted elements
widget-axes-samples-instance-dimensionAxisMappingDimensionAxis dimension to setup axis limits
widget-axes-samples-instance-dimension-desiredmodelstepnumberDesired model step
widget-axes-samples-instance-dimension-logarithmicbooleanTrue for logarithmic axis
widget-axes-samples-instance-dimension-maxnumberMaximum value
widget-axes-samples-instance-dimension-minnumberMinimum value
widget-axes-samples-instance-dimension-minspannumberDesired minimum distance between ticks in pixels
widget-axes-samples-instance-dimension-namestringName of the dimension
widget-axes-samples-instance-dimension-neatlimitsbooleanEnable or disable neat limits
widget-axes-samples-instance-dimension-orientationOrientationAxis orientation
widget-axes-samples-instance-dimension-originnumber
widget-axes-samples-instance-dimension-preciselimitsbooleanEnable keeping the precise limits and calculate only step
widget-axes-samples-instance-dimension-spacingnumberDesired model spacing
widget-axes-samples-instance-fillstylestringStyle applied on fill
widget-axes-samples-instance-fillstyleFillStyleStyle applied on fill
widget-axes-samples-instance-hideoverlappedtextbooleanHide overlapped text flag
widget-axes-samples-instance-idstring | numberId of the node, its a unique identifier
widget-axes-samples-instance-infinitybooleanInfinity mode
widget-axes-samples-instance-labelmanualsettingsbooleanEnable / disable manual settings for labels like anchor
widget-axes-samples-instance-labeloffsetnumberOffset the label offset
widget-axes-samples-instance-labelpaddingnumberLabel padding size in pixels
widget-axes-samples-instance-labelpositionLabelPositionLabel position
widget-axes-samples-instance-layoutstyleLayoutStyleDesired layout style
widget-axes-samples-instance-layoutstyle-constraintSizeConstraintLayout constrains
widget-axes-samples-instance-layoutstyle-flexgrownumberNumber specifying how much the item will grow relative to the rest of the items inside the same container
widget-axes-samples-instance-layoutstyle-flexshrinknumberNumber specifying how much the item will shrink relative to the rest of the items inside the same container
widget-axes-samples-instance-layoutstyle-floatstringFloat position
widget-axes-samples-instance-layoutstyle-positionstringLayout position
widget-axes-samples-instance-layoutstyle-sizenumber | stringLayout size
widget-axes-samples-instance-linestylestringStyle applied on outline
widget-axes-samples-instance-linestyleLineStyleStyle applied on outline
widget-axes-samples-instance-localtransformTransformationLocal transformation
widget-axes-samples-instance-marginsnumber | stringIt has properties for specifying the margins for each side
widget-axes-samples-instance-maximumlabelsizenumberMaximum label size (in device), text will be wrapped, if it is bigger than maximum label size
widget-axes-samples-instance-modellimitsRectRectangle where to generate ticks
widget-axes-samples-instance-namestringName of the node. It is often used for debugging purposes or to simplify queries
widget-axes-samples-instance-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
widget-axes-samples-instance-opacityblendmodeBlendModeNode opacity mode to blend it
widget-axes-samples-instance-orientationOrientationAxis orientation
widget-axes-samples-instance-scalescrollstrategyScaleScrollStrategyScale scroll strategy
widget-axes-samples-instance-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
widget-axes-samples-instance-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
widget-axes-samples-instance-textstylestringLabels textstyle
widget-axes-samples-instance-textstyleTextStyleLabels textstyle
widget-axes-samples-instance-textstyle-alignmentAlignmentStyleAlignment
widget-axes-samples-instance-textstyle-autosizebooleanAuto font size on high definition display
widget-axes-samples-instance-textstyle-backgroundstringBackground style
widget-axes-samples-instance-textstyle-backgroundFillStyleBackground style
widget-axes-samples-instance-textstyle-baselineBaseLineStyleBase line
widget-axes-samples-instance-textstyle-colorstringColor in CSS form
widget-axes-samples-instance-textstyle-fillFillStyleText fill style
widget-axes-samples-instance-textstyle-fontstringFont see
widget-axes-samples-instance-textstyle-fonturlstringThe place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword
widget-axes-samples-instance-textstyle-lineheightstring | numberLine height
widget-axes-samples-instance-textstyle-multilinebooleanAllow multi-line text
widget-axes-samples-instance-textstyle-outlinestringOutline style
widget-axes-samples-instance-textstyle-outlineLineStyleOutline style
widget-axes-samples-instance-textstyle-overflowwrapOverflowWrapStyleOverflow wrap
widget-axes-samples-instance-textstyle-strikethroughstringStrikethrough style
widget-axes-samples-instance-textstyle-strikethroughLineStyleStrikethrough style
widget-axes-samples-instance-textstyle-textoverflowTextOverflowStyleText overflow
widget-axes-samples-instance-textstyle-underlinestringUnderline style
widget-axes-samples-instance-textstyle-underlineLineStyleUnderline style
widget-axes-samples-instance-textstyle-underlineoffsetstring | numberUnderline offset distance
widget-axes-samples-instance-textstyle-whitespaceWhiteSpaceStyleWhite space
widget-axes-samples-instance-textstyle-wordbreakWordBreakStyleWord break
widget-axes-samples-instance-tickgeneratorTickGeneratorTickGenerator to use in axis
widget-axes-samples-instance-tickgenerator-labelstylesTextStyleAn object containing label style for specified grades
widget-axes-samples-instance-tickgenerator-taganyTag user can specify info associated with current object
widget-axes-samples-instance-tickgenerator-tickstylesLineStyleAn object containing tick styles for specified grades
widget-axes-samples-instance-tickpositionTickPositionTick position
widget-axes-samples-instance-titleTitleAxis title
widget-axes-samples-instance-title-alignmentAnchorTypeAlignment
widget-axes-samples-instance-title-marginnumber | stringMargin style
widget-axes-samples-instance-title-offsetPointOffset
widget-axes-samples-instance-title-offset-xnumberX coordinate
widget-axes-samples-instance-title-offset-ynumberY coordinate
widget-axes-samples-instance-title-offsetDimensionOffset
widget-axes-samples-instance-title-offset-heightnumberHeight of dimension
widget-axes-samples-instance-title-offset-widthnumberWidth of dimension or properties
widget-axes-samples-instance-title-showellipsisbooleanEnables/disables ellipsis in case if text is too long
widget-axes-samples-instance-title-textstringAxis title text
widget-axes-samples-instance-title-textstylestringText style
widget-axes-samples-instance-title-textstyleTextStyleText style
widget-axes-samples-instance-title-visiblebooleanVisibility
widget-axes-samples-instance-transformstringAdditional CSS transformation applied to node or 'none'
widget-axes-samples-instance-transformTransformationAdditional CSS transformation applied to node or 'none'
widget-axes-samples-instance-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
widget-axes-samples-instance-visiblebaselinebooleanVisibility of baseline
widget-axes-samples-instance-z-indexnumberDefine node z-index
widget-axes-samples-locationAnnotationLocationDefines location of sample axis
widget-axes-samples-sizenumberDefines size in pixels of samples axis
widget-axes-samples-ticksOptionsObjects which defines ticks options of the axis
widget-axes-samples-ticks-labelstylesTextStyleAn object containing label style for specified grades
widget-axes-samples-ticks-taganyTag user can specify info associated with current object
widget-axes-samples-ticks-tickstylesLineStyleAn object containing tick styles for specified grades
widget-axes-samples-ticksOptionsObjects which defines ticks options of the axis
widget-axes-samples-ticks-adaptivetypeAdaptiveTypeType of adaptive algorithm
widget-axes-samples-ticks-hidelabelsonspantoosmallbooleanHide labels flag
widget-axes-samples-ticks-minlabelspannumberMinimum distance between labels
widget-axes-samples-ticks-minorticksamountnumberCount of minor ticks
widget-axes-samples-ticks-minspannumberMinimum distance between ticks
widget-axes-samples-ticks-minspangradestringTick grade to be used for minimum distance between ticks
widget-axes-samples-ticks-modeloriginnumberOrigin in model space for initial tick in the sequence
widget-axes-samples-ticks-precisionAdaptivePrecisionPrecision for legacy algorithm
widget-axes-samples-ticks-spacingnumberSpacing see
widget-axes-samples-titleTitleDefines title options of sample axis
widget-axes-samples-visiblebooleanDefines visibility of sample axis
widget-freezeupdatebooleanFreeze updating widget until new seismic data is loaded and rendered for visible area
widget-layouttypestringType of layout 'default' or 'inside'
widget-orientationOrientationSeismic trace orientation
widget-pipelineSeismicPipelineSeismic pipeline
widget-pipeline-clippingmodeClippingModeClipping mode
widget-pipeline-colorsColorMapOptionsColors
widget-pipeline-colors-alphanumberAlpha value
widget-pipeline-colors-colormapstringColor map, predefined color map name, color map options or color map instance
widget-pipeline-colors-colormapColorMapColor map, predefined color map name, color map options or color map instance
widget-pipeline-colors-colormap-maxnumber
widget-pipeline-colors-colormap-minnumber
widget-pipeline-colors-colormap-namestringColor map name
widget-pipeline-colors-colormap-negativefillstylestringPositive fill style
widget-pipeline-colors-colormap-negativefillstyleFillStylePositive fill style
widget-pipeline-colors-colormap-positivefillstylestringPositive fill style
widget-pipeline-colors-colormap-positivefillstyleFillStylePositive fill style
widget-pipeline-colors-colormap-scaleKnownScales
widget-pipeline-colors-colormap-sizenumberColor map size
widget-pipeline-colors-colormap-tracelinestylestringTrace line style
widget-pipeline-colors-colormap-tracelinestyleLineStyleTrace line style
widget-pipeline-colors-opacitynumberOpacity value
widget-pipeline-colors-reversedbooleanReversed color map
widget-pipeline-maximumtracesperpixelnumberDefine maximum traces per pixel, which can be displayed in the image
widget-pipeline-namestringPipeline name
widget-pipeline-normalizationNormalizationOptionsNormalization options
widget-pipeline-normalization-biasnumberThe bias value defines the start of the VA fill Bias can be null (default - means that fill starts from trace location), in swing model space from -1 to 1, or in normalization limits model space, see biastype option
widget-pipeline-normalization-biastypeBiasTypeBias type, default is BiasType.Relative
widget-pipeline-normalization-limitsRangeNormalization limits (min,max), which is used for NormalizationType.Limits only
widget-pipeline-normalization-limits-highnumberUpper range boundary
widget-pipeline-normalization-limits-lownumberLower range boundary
widget-pipeline-normalization-limits-maxnumber
widget-pipeline-normalization-limits-minnumber
widget-pipeline-normalization-scalenumberScale factor
widget-pipeline-normalization-swingnumberThe location in trace spacing units where the normalized value of data samples are mapped. This location can be modified by specifying a normalization scale factor
widget-pipeline-normalization-typeNormalizationTypeEnum of normalization types
widget-pipeline-plotPlotOptionsPlot options
widget-pipeline-plot-clippingfactornumberClipping factor for traces
widget-pipeline-plot-decimationspacingnumberDecimation spacing is the minimum spacing between seismic traces on a seismic image. It is a measured in device units (pixels). Decimation spacing is an important factor when interpreting seismic images, as it affects the resolution of the image. The greater the decimation spacing, the lower the resolution of the image. A higher resolution image will allow for more detail in the interpretation, while a lower resolution image will be less detailed
widget-pipeline-plot-densityclippingfactornumberClipping factor for density
widget-pipeline-plot-densitydecimationbooleanDecimation for traces in density mode
widget-pipeline-plot-sampledecimationDecimationTypeDefine samples decimation type
widget-pipeline-plot-typePlotTypeOptionsPlot type
widget-pipeline-plot-type-interpolateddensitybooleanInterpolated density
widget-pipeline-plot-type-negativecolorfillbooleanNegative color fill
widget-pipeline-plot-type-negativefillbooleanNegative fill
widget-pipeline-plot-type-positivecolorfillbooleanPositive color fill
widget-pipeline-plot-type-positivefillbooleanPositive fill
widget-pipeline-plot-type-reversedbooleanReversed amplitude direction
widget-pipeline-plot-type-simpledensitybooleanSimple density
widget-pipeline-plot-type-wigglebooleanWiggle
widget-pipeline-plot-wigglesantialiasingbooleanWiggles antialiasing flag
widget-pipeline-rasterizationlimitstypeRasterizationLimitsTypeRasterization limits type
widget-pipeline-renderingsideRenderingSideRendering side
widget-pipeline-statisticsStatisticsStatistics information
widget-pipeline-statistics-averagenumberAverage
widget-pipeline-statistics-maxnumberMaximum
widget-pipeline-statistics-minnumberMinimum
widget-pipeline-statistics-rmsnumberRms
widget-pipeline-traceoffsetnumberOriginal trace offset
widget-pipeline-versionstringVersion
widget-scaleScaleOptionsScale options
widget-scale-deviceunitstringPhysical device unit
widget-scale-samplescalenumberIn sample unit per device unit if depth data (e.g feet per inch), or in device unit per sample unit (e.g inches per second)
widget-scale-sampleunitstringSample unit, sample unit from pipeline will be used if not specified
widget-scale-tracescalenumberIn traces per device unit (e.g traces per inch)
widget-scrollScrollOptionsSpecify scroll bar properties
widget-scroll-horizontalHVOptionsSpecify horizontal scroll bar properties
widget-scroll-horizontal-cssclassstringSpecify scroll bar cssclass name
widget-scroll-horizontal-optionsOptions
widget-scroll-horizontal-options-cssclassstringThe css class name of this node
widget-scroll-horizontal-options-idstring | numberId of the node, its a unique identifier
widget-scroll-horizontal-options-namestringName of the node. It is often used for debugging purposes or to simplify queries
widget-scroll-horizontal-options-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
widget-scroll-horizontal-options-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
widget-scroll-horizontal-options-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
widget-scroll-horizontal-options-z-indexnumberDefine node z-index
widget-scroll-horizontal-optionsOptions
widget-scroll-horizontal-options-clipstyleClipStyleClipping style
widget-scroll-horizontal-options-clipstyleGraphicsPathClipping style
widget-scroll-horizontal-options-csscursorstringCSS cursor associated with node
widget-scroll-horizontal-options-cssstylestringCSS style to be applied to inserted elements
widget-scroll-horizontal-options-localtransformTransformationLocal transformation
widget-scroll-horizontal-options-marginsnumber | stringIt has properties for specifying the margins for each side
widget-scroll-horizontal-options-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
widget-scroll-horizontal-options-opacityblendmodeBlendModeNode opacity mode to blend it
widget-scroll-horizontal-options-scalescrollstrategyScaleScrollStrategyScale scroll strategy
widget-scroll-horizontal-options-transformstringAdditional CSS transformation applied to node or 'none'
widget-scroll-horizontal-options-transformTransformationAdditional CSS transformation applied to node or 'none'
widget-scroll-horizontal-optionsOptions
widget-scroll-horizontal-options-clippingbooleanEnable clipping, this does not consider the clipstyle, it is related to bounds-clipping
widget-scroll-horizontal-options-infinitybooleanMode to render outside the model limits
widget-scroll-horizontal-optionsOptions
widget-scroll-horizontal-options-automodellimitsmodebooleanAuto model limits mode
widget-scroll-horizontal-options-boundsRectDefine position of the group in the parent
widget-scroll-horizontal-options-contentorientationOrientationContent orientation
widget-scroll-horizontal-options-fillstylestringFill style
widget-scroll-horizontal-options-fillstyleFillStyleFill style
widget-scroll-horizontal-options-horizontalflipbooleanHorizontal axis goes from right to left
widget-scroll-horizontal-options-layoutstyleLayoutStyleLayout style to be used for parent layout
widget-scroll-horizontal-options-linestylestringLine style
widget-scroll-horizontal-options-linestyleLineStyleLine style
widget-scroll-horizontal-options-modellimitsRectDefine inner model coordinates of the group
widget-scroll-horizontal-options-paddingnumber | stringIt has properties for specifying the padding for each side
widget-scroll-horizontal-options-pickingchildrenbooleanEnable picking children
widget-scroll-horizontal-options-verticalflipbooleanVertical axis goes from bottom to top
widget-scroll-horizontal-options-viewcachebooleanView cache to cache child nodes
widget-scroll-horizontal-optionsOptions
widget-scroll-horizontal-options-backgroundfillstylestringBackground fill style
widget-scroll-horizontal-options-backgroundfillstyleFillStyleBackground fill style
widget-scroll-horizontal-options-floatingbooleanFlag to set floating mode
widget-scroll-horizontal-options-sizenumberDesired size
widget-scroll-horizontal-options-transparencynumberAlpha
widget-scroll-horizontal-optionsOptions
widget-scroll-horizontal-options-arrowlinestylestringArrow line style
widget-scroll-horizontal-options-arrowlinestyleLineStyleArrow line style
widget-scroll-horizontal-options-borderlinestylestringBorder line style
widget-scroll-horizontal-options-borderlinestyleLineStyleBorder line style
widget-scroll-horizontal-options-caretfillstylestringCaret fill style
widget-scroll-horizontal-options-caretfillstyleFillStyleCaret fill style
widget-scroll-horizontal-options-caretlinestylestringCaret line style
widget-scroll-horizontal-options-caretlinestyleLineStyleCaret line style
widget-scroll-horizontal-options-changecursorbooleanChange cursor on move or resize, true by default
widget-scroll-horizontal-options-fillstylestringFill style
widget-scroll-horizontal-options-fillstyleFillStyleFill style
widget-scroll-horizontal-options-isverticalboolean
widget-scroll-horizontal-options-linestylestringLine style
widget-scroll-horizontal-options-linestyleLineStyleLine style
widget-scroll-horizontal-options-minimumcarretsizenumberMinimum size of the carriage
widget-scroll-horizontal-options-modellimitsRectModel limits
widget-scroll-horizontal-options-resizablebooleanTrue for resizable
widget-scroll-horizontal-options-roundedbooleanRounded borders
widget-scroll-horizontal-options-visiblelimitsRectVisible model limits
widget-scroll-horizontal-typestringClass name of scroll bar
widget-scroll-horizontal-visiblebooleanSpecify scroll bar visibility
widget-scroll-verticalHVOptionsSpecify vertical scroll bar properties
widget-titleTitleDefines title options of widget
widget-title-alignmentAnchorTypeAlignment
widget-title-cssclassstringCSS style of the title
widget-title-locationAnnotationLocationDefines location
widget-title-sizenumberSize of the title in pixels
widget-title-textstringTitle text
widget-title-textstylestringText style
widget-title-textstyleTextStyleText style
widget-title-visiblebooleanVisibility
widget-toolsToolsOptionsTools options
widget-tools-colorbarOptionsBaseFloating olor bar tool options
widget-tools-colorbar-colorproviderColorProvider
widget-tools-colorbar-colorprovider-maxnumber
widget-tools-colorbar-colorprovider-minnumber
widget-tools-colorbar-colorprovider-scaleKnownScales
widget-tools-colorbar-tickgeneratorTickGenerator
widget-tools-colorbar-visibleboolean
widget-tools-comparatorOptionsTypeComparator options
widget-tools-comparator-fillstylestringSplitter fill style
widget-tools-comparator-fillstyleFillStyleSplitter fill style
widget-tools-comparator-linestylestringSplitter border line style
widget-tools-comparator-linestyleLineStyleSplitter border line style
widget-tools-comparator-widthnumberSplitter width
widget-tools-crosshairOptionsCrosshair cursor options
widget-tools-crosshair-enabledbooleanEnabled state
widget-tools-crosshair-layerCompositeNodeManipulator layer
widget-tools-crosshair-mouseradiusnumberDevice radius for mouse events
widget-tools-crosshair-namestringName of the tool used like cross-hair etc
widget-tools-crosshair-touchradiusnumberDevice radius for touch events
widget-tools-crosshairOptionsCrosshair cursor options
widget-tools-crosshair-eastLabelSettingsJSON for east label. See setLabelSettings for more details
widget-tools-crosshair-east-alignmentAnchorTypeAlignment of the text
widget-tools-crosshair-east-cssclassstringThe css class name of this node
widget-tools-crosshair-east-displaymodeLabelDisplayModeLabel display mode, default is LabelDisplayMode.Shape
widget-tools-crosshair-east-fillstylestringFill style of the text
widget-tools-crosshair-east-fillstyleFillStyleFill style of the text
widget-tools-crosshair-east-linestylestringLine style of the text border
widget-tools-crosshair-east-linestyleLineStyleLine style of the text border
widget-tools-crosshair-east-offsetnumber | stringLabel offset between the text and cross-hair cursor, use padding in case of undefined
widget-tools-crosshair-east-paddingnumber
widget-tools-crosshair-east-paddingstylenumber | stringPadding style between the text and the border
widget-tools-crosshair-east-radiusnumberRadius of the text shape border
widget-tools-crosshair-east-textstylestringText style of the text
widget-tools-crosshair-east-textstyleTextStyleText style of the text
widget-tools-crosshair-east-tooltipPropertiesTooltip properties, this options applyes only in case if displaymode:LabelDisplayMode.DivElement
widget-tools-crosshair-east-tooltip-alignmentAnchorTypeTooltip alignment according to the point set by offsets
widget-tools-crosshair-east-tooltip-autoflipbooleanTrue to automatically flip tooltip alignment if it doesn't fit the window
widget-tools-crosshair-east-tooltip-cssclassesstringCSS classes' names to be applied for tooltip 'cg-tooltip' by default
widget-tools-crosshair-east-tooltip-delaynumber
widget-tools-crosshair-east-tooltip-hidedelaynumberAuto hide in millisecond, 0 means false and autohide is disabled
widget-tools-crosshair-east-tooltip-offsetxnumberOffset of tooltip from current position by x in pixels
widget-tools-crosshair-east-tooltip-offsetynumberOffset of tooltip from current position by y in pixels
widget-tools-crosshair-east-tooltip-orientationOrientationTooltip orientation
widget-tools-crosshair-east-tooltip-showdelaynumberDelay between displaying tooltip, 0 means false and tooltip shows immediately
widget-tools-crosshair-east-tooltip-sizeRangeClient size range
widget-tools-crosshair-east-visiblebooleanVisibility of the text
widget-tools-crosshair-east-z-indexnumberDefine node z-index
widget-tools-crosshair-fillstylestringFillstyle of the cross-hair (used only with radius)
widget-tools-crosshair-fillstyleFillStyleFillstyle of the cross-hair (used only with radius)
widget-tools-crosshair-horizontalstringLinestyle for horizontal line
widget-tools-crosshair-horizontalLineStyleLinestyle for horizontal line
widget-tools-crosshair-keeporientationbooleanPreserve annotation's orientation of labels for different
widget-tools-crosshair-labelsbooleanIf 'none' of false - do not create labels
widget-tools-crosshair-linestylestring
  • default linestyle shared for all orientations
widget-tools-crosshair-linestyleLineStyle
  • default linestyle shared for all orientations
widget-tools-crosshair-northLabelSettingsJSON for north label. See setLabelSettings for more details
widget-tools-crosshair-outlinestylestringOutLinestyle for both lines
widget-tools-crosshair-outlinestyleLineStyleOutLinestyle for both lines
widget-tools-crosshair-radiusnumberRadius of the cross-hair center target
widget-tools-crosshair-southLabelSettingsJSON for south label. See setLabelSettings for more details
widget-tools-crosshair-symbolSymbolShapeSymbol of the cross-hair
widget-tools-crosshair-symbol-alignmentAnchorTypeAlignment according to the anchor point
widget-tools-crosshair-symbol-alignmentAnchorTypeAnchor type of symbol
widget-tools-crosshair-symbol-axnumberAnchor x position
widget-tools-crosshair-symbol-aynumberAnchor y position
widget-tools-crosshair-symbol-cachebooleanSet it to true if you want to cache complex geometry to raster
widget-tools-crosshair-symbol-clipstyleClipStyleClipping style
widget-tools-crosshair-symbol-clipstyleGraphicsPathClipping style
widget-tools-crosshair-symbol-cssclassstringThe css class name of this node
widget-tools-crosshair-symbol-csscursorstringCSS cursor associated with node
widget-tools-crosshair-symbol-cssstylestringCSS style to be applied to inserted elements
widget-tools-crosshair-symbol-fillstylestringStyle applied on fill
widget-tools-crosshair-symbol-fillstyleFillStyleStyle applied on fill
widget-tools-crosshair-symbol-heightnumberShape height
widget-tools-crosshair-symbol-idstring | numberId of the node, its a unique identifier
widget-tools-crosshair-symbol-ispointingupbooleanDefines whether the shape is always pointing up
widget-tools-crosshair-symbol-layoutstyleLayoutStyleLayout style to specify how to lay out shape
widget-tools-crosshair-symbol-linestylestringStyle applied on outline
widget-tools-crosshair-symbol-linestyleLineStyleStyle applied on outline
widget-tools-crosshair-symbol-localtransformTransformationLocal transformation
widget-tools-crosshair-symbol-marginsnumber | stringIt has properties for specifying the margins for each side
widget-tools-crosshair-symbol-maxdimensionDimensionMaximum size for rendering
widget-tools-crosshair-symbol-mindimensionDimensionMinimum size for rendering
widget-tools-crosshair-symbol-namestringName of the node. It is often used for debugging purposes or to simplify queries
widget-tools-crosshair-symbol-opacitynumberNode opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context
widget-tools-crosshair-symbol-opacityblendmodeBlendModeNode opacity mode to blend it
widget-tools-crosshair-symbol-painterstringA function with has parameters: symbol, box, context
widget-tools-crosshair-symbol-painterpropertiesanySymbol's painter's properties
widget-tools-crosshair-symbol-preserveaspectratiobooleanPreserve aspect ratio of the anchored shape
widget-tools-crosshair-symbol-preservereadingorientationbooleanPreserve reading orientation for local transform
widget-tools-crosshair-symbol-preserverightanglebooleanPreserve right angle for local transformation
widget-tools-crosshair-symbol-rotationanglenumberRotation angle at anchor
widget-tools-crosshair-symbol-scalescrollstrategyScaleScrollStrategyScale scroll strategy
widget-tools-crosshair-symbol-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
widget-tools-crosshair-symbol-sizeisindevicespacebooleanIs coordinate in device space
widget-tools-crosshair-symbol-taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
widget-tools-crosshair-symbol-transformstringAdditional CSS transformation applied to node or 'none'
widget-tools-crosshair-symbol-transformTransformationAdditional CSS transformation applied to node or 'none'
widget-tools-crosshair-symbol-useminmaxdimensionsbooleanUse the min max dimensions to limit visual size
widget-tools-crosshair-symbol-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
widget-tools-crosshair-symbol-widthnumberShape width
widget-tools-crosshair-symbol-z-indexnumberDefine node z-index
widget-tools-crosshair-textstylestring
  • default textstyle shared for all orientations
widget-tools-crosshair-textstyleTextStyle
  • default textstyle shared for all orientations
widget-tools-crosshair-verticalstringLinestyle for vertical line
widget-tools-crosshair-verticalLineStyleLinestyle for vertical line
widget-tools-crosshair-westLabelSettingsJSON for west label. See setLabelSettings for more details
widget-tools-horizonpickerOptionsHorizon picker options
widget-tools-horizonpickerOptionsHorizon picker options
widget-tools-horizonpicker-erasershapeAnchoredShapeEraser shape (default is red square)
widget-tools-horizonpicker-erasershape-alignmentAnchorTypeAlignment according to the anchor point
widget-tools-horizonpicker-erasershape-axnumberAnchor x position
widget-tools-horizonpicker-erasershape-aynumberAnchor y position
widget-tools-horizonpicker-erasershape-clipstyleClipStyleClipping style
widget-tools-horizonpicker-erasershape-clipstyleGraphicsPathClipping style
widget-tools-horizonpicker-erasershape-cssclassstringThe css class name of this node
widget-tools-horizonpicker-erasershape-csscursorstringCSS cursor associated with node
widget-tools-horizonpicker-erasershape-cssstylestringCSS style to be applied to inserted elements
widget-tools-horizonpicker-erasershape-fillstylestringStyle applied on fill
widget-tools-horizonpicker-erasershape-fillstyleFillStyleStyle applied on fill
widget-tools-horizonpicker-erasershape-heightnumberShape height
widget-tools-horizonpicker-erasershape-idstring | numberId of the node, its a unique identifier
widget-tools-horizonpicker-erasershape-ispointingupbooleanDefines whether the shape is always pointing up
widget-tools-horizonpicker-erasershape-layoutstyleLayoutStyleLayout style to specify how to lay out shape
widget-tools-horizonpicker-erasershape-linestylestringStyle applied on outline
widget-tools-horizonpicker-erasershape-linestyleLineStyleStyle applied on outline
widget-tools-horizonpicker-erasershape-localtransformTransformationLocal transformation
widget-tools-horizonpicker-erasershape-marginsnumber | stringIt has properties for specifying the margins for each side
widget-tools-horizonpicker-erasershape-maxdimensionDimensionMaximum size for rendering
widget-tools-horizonpicker-erasershape-mindimensionDimensionMinimum size for rendering
widget-tools-horizonpicker-erasershape-namestringName of the node. It is often used for debugging purposes or to simplify queries
widget-tools-horizonpicker-erasershape-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
widget-tools-horizonpicker-erasershape-opacityblendmodeBlendModeNode opacity mode to blend it
widget-tools-horizonpicker-erasershape-preserveaspectratiobooleanPreserve aspect ratio of the anchored shape
widget-tools-horizonpicker-erasershape-preservereadingorientationbooleanPreserve reading orientation for local transform
widget-tools-horizonpicker-erasershape-preserverightanglebooleanPreserve right angle for local transformation
widget-tools-horizonpicker-erasershape-rotationanglenumberRotation angle at anchor
widget-tools-horizonpicker-erasershape-scalescrollstrategyScaleScrollStrategyScale scroll strategy
widget-tools-horizonpicker-erasershape-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
widget-tools-horizonpicker-erasershape-sizeisindevicespacebooleanIs coordinate in device space
widget-tools-horizonpicker-erasershape-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
widget-tools-horizonpicker-erasershape-transformstringAdditional CSS transformation applied to node or 'none'
widget-tools-horizonpicker-erasershape-transformTransformationAdditional CSS transformation applied to node or 'none'
widget-tools-horizonpicker-erasershape-useminmaxdimensionsbooleanUse the min max dimensions to limit visual size
widget-tools-horizonpicker-erasershape-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
widget-tools-horizonpicker-erasershape-widthnumberShape width
widget-tools-horizonpicker-erasershape-z-indexnumberDefine node z-index
widget-tools-horizonpicker-erasersizenumberEraser size
widget-tools-horizonpicker-extendedfocusbooleanTrue for extended focus
widget-tools-horizonpicker-focussymbolSymbolShapeSymbol for point focus (default is red square)
widget-tools-horizonpicker-focusthresholdnumberFocus threshold (in devices)
widget-tools-horizonpicker-highlightlinestylestringLinestyle of highlighted horizon (default is red)
widget-tools-horizonpicker-highlightlinestyleLineStyleLinestyle of highlighted horizon (default is red)
widget-tools-horizonpicker-linestylestringLinestyle of horizon (default is red)
widget-tools-horizonpicker-linestyleLineStyleLinestyle of horizon (default is red)
widget-tools-horizonpicker-modeModeMode of horizon picker
widget-tools-horizonpicker-propagatorthresholderrornumberPropagator threshold error (in percents, must be > 0)
widget-tools-panningOptionsPanning options
widget-tools-panningOptionsPanning options
widget-tools-panning-acceptxbooleanAccept x coordinates
widget-tools-panning-inertiacoefnumber | booleanInertia coefficient for inertia effect
widget-tools-panning-panningthresholdnumberThreshold to prevent panning. If user pointer movement is under this value the panning will be ignore. WARNING: if you set positive inertia coefficient, some panning events'll be fired with null eventArgs
widget-tools-panning-wheelrationumberNumber that represent the number default
widget-tools-rubberbandzoomOptionsRubber band zoom options
widget-tools-rubberbandzoomOptionsRubber band zoom options
widget-tools-rubberbandzoom-modeRubberBandRenderModeRubber mode
widget-tools-rubberbandzoomOptionsRubber band zoom options
widget-tools-rubberbandzoom-acceptemptyrectbooleanDoes rubber band accept empty rect
widget-tools-rubberbandzoom-autodisabledbooleanDoes rubber band automatically disabled on zoom end
widget-tools-rubberbandzoom-fillstylestringRubber band fillstyle
widget-tools-rubberbandzoom-fillstyleFillStyleRubber band fillstyle
widget-tools-rubberbandzoom-linestylestringRubber band linestyle
widget-tools-rubberbandzoom-linestyleLineStyleRubber band linestyle
widget-tools-rubberbandzoom-restrictionareaRectSpecify restriction area
widget-tools-zoomOptionsZoom options
widget-tools-zoomOptionsZoom options
widget-tools-zoom-easingFunctionsEasing animation function for elastic zooming
widget-tools-zoom-maxnumberMaximum limits for zooming (>= options.zoom.min)
widget-tools-zoom-minnumberMinimum limits for zooming (>= 0)
widget-tools-zoom-modeModeMode of pinch zooming
widget-tools-zoom-modifierModifierKeyModifier key for zoom, default is ModifierKey.None
widget-tools-zoom-speednumberSpeed of zooming (>= 1)
widget-tools-zoom-timenumberZooming time in ms (> 0 for elastic, 0 for instant)

Contents

Constructors

new Comparator(options, manipulatorLayer)

new Comparator(options?, manipulatorLayer?)

Create comparator tool

Parameters

Name Type Description
Optional optionsOptions | SeismicViewWidgetobject or the target widget to add the comparator to
Optional manipulatorLayerCompositeNode<Node>layer for holding temporary shapes

Overrides

AbstractTool.constructor

Methods

addListener

addListener(eventName, listener): Comparator

add event listener. The listener receives the message when the system event happens.

Deprecated

since 4.0 use .on() instead. Note that 3 args callback should be used in subscription via .on(): (eventType, source, args)

Parameters

Name Type Description
eventNamestringevent name or unique event identifier
listenerFunctionthe event listener

Returns

Comparator

Inherited from

AbstractTool.addListener


captureMouseUp

captureMouseUp(): void

listen to window mouse events in order to catch a mouse up action outside of the tool container DOM element. useful for example when you pan and release click outside of DOM element.

Returns

void

Inherited from

AbstractTool.captureMouseUp


dispose

dispose(): void

dispose object

Returns

void

Overrides

AbstractTool.dispose


fireEvent

fireEvent(eventName, eventArgs?): void

This method is Protected. Fire an Event.

Deprecated

since 4.0 use .notify() instead. Note that 3 args callback should be used in subscription via .on()

Parameters

Name Type Description
eventNamestringevent name
Optional eventArgsanycontains info of the event

Returns

void

Inherited from

AbstractTool.fireEvent


getClassName

getClassName(): string

Returns

string

Inherited from

AbstractTool.getClassName


getContinuous

getContinuous(): boolean

Return continuous mode flag

Returns

boolean


getEventRadius

Protected getEventRadius(eventArgs): number

Returns device radius for the provided event

Parameters

Name Type Description
eventArgsEventArgscontains info of the event

Returns

number

Inherited from

AbstractTool.getEventRadius


getManipulatorLayer

getManipulatorLayer(): CompositeNode<Node>

return manipulator layer

Returns

CompositeNode<Node>

layer

Inherited from

AbstractTool.getManipulatorLayer


getMouseRadius

getMouseRadius(): number

Returns current device radius for mouse events

Returns

number

Inherited from

AbstractTool.getMouseRadius


getName

getName(): string

return tool name if any

Returns

string

name of the tool

Inherited from

AbstractTool.getName


getOptions

getOptions(): OptionsOut

Returns visual options

Returns

OptionsOut

object containing visual options


getOrientation

getOrientation(): Orientation

returns splitter orientation

Returns

Orientation

orientation


getParentTool

getParentTool(): AbstractCompositeTool

Gets parent tool

Returns

AbstractCompositeTool

parent tool

Inherited from

AbstractTool.getParentTool


getPipeline

getPipeline(): SeismicPipeline

returns pipeline

Returns

SeismicPipeline

pipeline


getPosition

getPosition(): number

Returns split position

Returns

number

return splitter position (between 0..1)


getProperties

getProperties(context?): OptionsOut

Returns all the properties pertaining to this object

Parameters

Name Type Description
Optional contextISerializationContextserialization context

Returns

OptionsOut

An object containing the properties

Inherited from

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

AbstractTool.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

AbstractTool.getPropertyKeys


getRoot

getRoot(): AbstractCompositeTool

Gets root tool

Returns

AbstractCompositeTool

parent tool

Inherited from

AbstractTool.getRoot


getSplit

getSplit(): boolean

Returns split flag

Returns

boolean


getTouchRadius

getTouchRadius(): number

Returns current device radius for touch events

Returns

number

Inherited from

AbstractTool.getTouchRadius


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

AbstractTool.hasEventListener


isActive

isActive(): boolean

return active state

Returns

boolean

Inherited from

AbstractTool.isActive


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

AbstractTool.isDisposed


isDoubleClick

Protected isDoubleClick(point, eventArgs?): boolean

returns true if double clicked

Parameters

Name Type Description
pointPointClick point
Optional eventArgsEventArgsoptional event args to verify double click

Returns

boolean

Inherited from

AbstractTool.isDoubleClick


isEnabled

isEnabled(): boolean

returns enable state

Returns

boolean

state

Inherited from

AbstractTool.isEnabled


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

AbstractTool.isSilent


isTouchEvent

isTouchEvent(eventArgs): boolean

return true if the event is a touch event and false otherwise.

Parameters

Name Type Description
eventArgsEvent | EventArgscontains info of the event

Returns

boolean

Inherited from

AbstractTool.isTouchEvent


notify

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

Notify listeners

Type parameters

NameType
Eextends string

Parameters

Name Type Description
typeEevent types
sourceAbstractToolof the event
Optional argsEventMap[E]arguments of the event

Returns

Comparator

this

Inherited from

AbstractTool.notify


off

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

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

Returns

Comparator

this

Inherited from

AbstractTool.off


on

on<E>(type, callback): Comparator

Attach listener on event that will be called whenever the specified event is delivered to the target

If the callback function is already in the list of event listeners for this target, the function is not added a second time.

If a particular anonymous function is in the list of event listeners registered for a certain target, and then later in the code, an identical anonymous function is given in an "on" call, the second function will also be added to the list of event listeners for that target.

TypeScript hint: in case of creating derived tool with own events, EventMap should be extended and .on() and .notify() methods redeclared, see sample.

Example

// Using in derived tool
import type {EventMap as EventMapBase} from '@int/geotoolkit/controls/tools/AbstractTool';
export type EventMap = EventMapBase &amp; {
[MyToolEvents.onValueChanged]: MyToolEventArgs
}
export enum MyToolEvents {
onValueChanged = 'onValueChanged'
}
export class MyTool extends AbstractTool {
public declare on: <E extends keyof EventMap>(type: E, callback: (eventType: E, sender: this, args: EventMap[E]) => void) => this;
protected declare notify: <E extends keyof EventMap>(type: E, source: AbstractTool, args?: EventMap[E]) => this;
public declare off: <E extends keyof EventMap>(type: E, callback?: (eventType: E, sender: this, args: EventMap[E]) => void) => this;
// ...
}

Type parameters

NameType
Eextends string

Parameters

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

Returns

Comparator

Inherited from

AbstractTool.on


onActiveStateChanged

Protected onActiveStateChanged(): void

Fires

Events.onStateChanged

Returns

void

Inherited from

AbstractTool.onActiveStateChanged


onEnabledStateChanged

Protected onEnabledStateChanged(): void

Fires

Events.onEnabledStateChanged

Returns

void

Inherited from

AbstractTool.onEnabledStateChanged


pageToCanvas

pageToCanvas(eventArgs, externalPlot?): Object

return position relative to the canvas

Parameters

Name Type Description
eventArgsEvent | EventArgsparentElement the parent HTML element
Optional externalPlotPlotplot

Returns

Object

NameType
xnumber
ynumber

Inherited from

AbstractTool.pageToCanvas


pointToModel

pointToModel(model, eventArgs): Point

converts device coordinates to inner coordinates of node

Parameters

Name Type Description
modelNodethe model
eventArgsPoint | EventArgsarguments of the event OR point in device (plot) coordinates.

Returns

Point

Inherited from

AbstractTool.pointToModel


removeListener

removeListener(eventName, listener?): Comparator

remove event listener. The listener reveives the message when the system event happens.

Deprecated

since 4.0 use .off() instead.

Parameters

Name Type Description
eventNamestringevent name
Optional listenerFunction | Function[]the event listener, if null, remove all listeners for the event

Returns

Comparator

Inherited from

AbstractTool.removeListener


setActive

setActive(active): Comparator

set active state

Fires

Events.onStateChanged

Parameters

Name Type Description
activebooleanset active state

Returns

Comparator

Inherited from

AbstractTool.setActive


setContinuous

setContinuous(continuous): Comparator

Set continuous mode flag

Parameters

Name Type Description
continuousbooleancontinuous mode flag

Returns

Comparator


setEnabled

setEnabled(enabled): Comparator

set enable state

Fires

Events.onEnabledStateChanged

Fires

Events.onStateChanged

Parameters

Name Type Description
enabledbooleansets the enabled state

Returns

Comparator

this

Inherited from

AbstractTool.setEnabled


setMouseRadius

setMouseRadius(radius): Comparator

Sets device radius for mouse events

Parameters

Name Type Description
radiusnumberradius for mouse events

Returns

Comparator

this

Inherited from

AbstractTool.setMouseRadius


setName

setName(name): Comparator

set tool name

Parameters

Name Type Description
namestringthe tool name

Returns

Comparator

Inherited from

AbstractTool.setName


setOptions

setOptions(options): Comparator

Set visual options

Parameters

Name Type Description
optionsOptionsTypevisual options

Returns

Comparator

this


setOrientation

setOrientation(orientation): Comparator

Set orientation

Parameters

Name Type Description
orientationOrientationorientation

Returns

Comparator

this


setPipeline

setPipeline(pipeline, bounds?): Comparator

set pipeline

Parameters

Name Type Description
pipelineSeismicPipelinepipeline
Optional boundsRectbounds of seismic image

Returns

Comparator

this


setPosition

setPosition(position): Comparator

Set split position

Parameters

Name Type Description
positionnumbersplitter position (interval [0, 1])

Returns

Comparator

this


setProperties

setProperties(properties?): Comparator

Sets properties

Parameters

Name Type Description
Optional propertiesOptionsproperties

Returns

Comparator

this

Overrides

AbstractTool.setProperties


setProperty

setProperty(name, value): Comparator

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

Comparator

this

Inherited from

AbstractTool.setProperty


setSilent

setSilent(bool): Comparator

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

Comparator

this

Inherited from

AbstractTool.setSilent


setSlotEnabled

setSlotEnabled(eventName, value, target?): Comparator

Sets slot enabled

Parameters

Name Type Description
eventNamestringeventName
valuebooleanvalue
Optional targetEventTargettarget

Returns

Comparator

Inherited from

AbstractTool.setSlotEnabled


setSlots

setSlots(slots?, merge?): Comparator

Sets new slots.

Example

const slots = {
'pointerdown': (event: EventArgs) => {
// event is an instance of @int/geotoolkit/controls/tools/EventArgs
...
}
};
tool.setSlots(slots);

Parameters

Name Type Description
Optional slotsRecord<string, Slot | Slot[] | (eventArgs: EventArgs) => void>type of system events
Optional mergebooleanset to true if you want to merge with existing slots

Returns

Comparator

this

Inherited from

AbstractTool.setSlots


setSplit

setSplit(split): Comparator

Set split flag

Parameters

Name Type Description
splitbooleandefault is true

Returns

Comparator


setTouchRadius

setTouchRadius(radius): Comparator

Sets device radius for touch events

Parameters

Name Type Description
radiusnumberradius for touch events

Returns

Comparator

this

Inherited from

AbstractTool.setTouchRadius


start

Protected start(eventArgs?): Comparator

start

Parameters

Name Type Description
Optional eventArgsProxyEventArgsevent args

Returns

Comparator

Overrides

AbstractTool.start


stop

Protected stop(): Comparator

stop

Returns

Comparator

Inherited from

AbstractTool.stop


toggle

toggle(): Comparator

switch enable state to opposite state

Returns

Comparator

Inherited from

AbstractTool.toggle


canvasToClient

Static canvasToClient(plotPoint, plot): Point

Convert plot coordinates to global coordinates

Parameters

Name Type Description
plotPointPointpoint in plot coordinates
plotPlotplot with canvas

Returns

Point

Inherited from

AbstractTool.canvasToClient


clientToCanvas

Static clientToCanvas(nativeEvent, plot): Point

Convert global coordinates to plot coordinates

Parameters

Name Type Description
nativeEventEventnative browser event
plotPlotplot with canvas

Returns

Point

Inherited from

AbstractTool.clientToCanvas


getClassName

Static getClassName(): string

Returns

string

Inherited from

AbstractTool.getClassName


getExclusiveTool

Static getExclusiveTool(plot): AbstractTool

return exclusive tool associated with plot

Parameters

Name Type Description
plotPlotplot

Returns

AbstractTool

tool

Inherited from

AbstractTool.getExclusiveTool


getNativeEventName

Static getNativeEventName(eventName): string[]

Returns native event name

Parameters

Name Type Description
eventNamestringW3C Pointer Events Recommendation name

Returns

string[]

Inherited from

AbstractTool.getNativeEventName


isTouchEvent

Static isTouchEvent(eventArgs): eventArgs is TouchEvent

return true if the event is a touch event and false otherwise.

Parameters

Name Type Description
eventArgsEvent | EventArgscontains info of the event

Returns

eventArgs is TouchEvent

Inherited from

AbstractTool.isTouchEvent


lock

Static lock(plot, tool): void

Set exclusive tool for plot

Parameters

Name Type Description
plotPlotplot
toolAbstractTooltool

Returns

void

Inherited from

AbstractTool.lock


setDefaultMouseRadius

Static setDefaultMouseRadius(radius): void

Sets default device radius for mouse events

Parameters

Name Type Description
radiusnumberradius for mouse events

Returns

void

Inherited from

AbstractTool.setDefaultMouseRadius


setDefaultTouchRadius

Static setDefaultTouchRadius(radius): void

Sets default device radius for touch events

Parameters

Name Type Description
radiusnumberradius for touch events

Returns

void

Inherited from

AbstractTool.setDefaultTouchRadius


unlock

Static unlock(value): void

Remove exclusive tool from plot

Parameters

Name Type Description
valueAbstractTool | Plotvalue

Returns

void

Inherited from

AbstractTool.unlock