Last updated

API / geotoolkit / contour / shapes / ContourShape / ContourShape

Class: ContourShape

shapes.ContourShape.ContourShape

The contour shape acts as a container for all the contour visuals. It may receive events from the visuals and may send its own events to the listeners.

Hierarchy

Table of contents

Constructors
Methods
addContourListeneraddCssClassaddInvalidateHandler
addVisualapplyOpacityapplyResponsiveStyle
checkCollisioncloneconnectStyle
copyConstructordisconnectStyledispose
enableEventPropagationexecutefilter
getAnimationStylegetBordergetBoundingBox
getBoundsgetClassNamegetClipStyle
getCssgetCssClassgetCssClasses
getCssTransformgetDataSourcegetFault
getFaultPointPrecisiongetFaultsListgetFillStyle
getGridgetGridToModelgetId
getIgnoreErroneousDatagetInvalidateMethodgetIsofill
getIsolinegetLabelsDirectiongetLineStyle
getListenersgetLocalTransformgetMarginsStyle
getMaxLabelWidthgetMaxVisibleLevelgetMinVisibleLevel
getNamegetNonProjectedBoundingBoxgetNotify
getOpacitygetOpacityBlendModegetParent
getProjectionBoxgetPropertiesgetProperty
getPropertyKeysgetRenderingFiltergetResponsiveStyle
getRootgetScalegetScaleScrollStrategy
getSceneTransformgetShapeProjectiongetSmoothingIsolines
getSmoothingIsolinesTypegetSmoothingLabelsgetSuppressIntersectingLabels
getTaggetVisiblegetVisuals
getWorldTransformgetZIndexhasCssClass
hasEventListenerinvalidateinvalidateParent
isDisposedisEventPropagationEnabledisNotificationEnabled
isSelectableisSilentnotify
notifyListenersoffon
onParentChangedonVisibilityChangedpostRendering
preRenderingregisterAnimationStyleremoveContourListener
removeCssClassremoveInvalidateHandlerremoveVisual
renderrenderAsyncrotate
scalesetAnimationStylesetBoundingBox
setClipStylesetCsssetCssClass
setCssTransformsetDataSourcesetFaultPointPrecision
setFaultsListsetFillStylesetGrid
setGridToModelsetIdsetIgnoreErroneousData
setLabelsDirectionsetLineStylesetListeners
setLocalTransformsetMarginsStylesetMaxLabelWidth
setMaxVisibleLevelsetMinVisibleLevelsetName
setNotificationsetNotifysetOpacity
setPropertiessetPropertysetRenderingFilter
setResponsiveStylesetScalesetScaleScrollStrategy
setSelectablesetShapeProjectionsetSilent
setSkipNearPointssetSmoothingIsolinessetSmoothingLabels
setSuppressIntersectingLabelssetTagsetVisible
setVisualssetZIndexshear
toStringtranslateunregisterAnimationStyle
updateLineReservationupdateSceneTransformationupdateState
updateTimeStampvisualInvalidatedenableSceneGraphNotification
findParentgetClassNameintersectsBounds
isSceneGraphNotificationEnabled
Css Properties
Name Type Description
borderContourBorderVisualBorder visual properties or new visual
border-clipstyleClipStyleClipping style
border-clipstyle-evenoddbooleanTrue if evenodd mode is on ('nonzero' mode otherwise)
border-clipstyle-geometryGraphicsPathClipping geometry
border-clipstyle-geometry-boundsRectBounds
border-clipstyle-geometry-bounds-heightnumberHeight
border-clipstyle-geometry-bounds-readonlybooleanReadonly
border-clipstyle-geometry-bounds-widthnumberWidth
border-clipstyle-geometry-bounds-xnumberLeft
border-clipstyle-geometry-bounds-ynumberTop
border-clipstyleGraphicsPathClipping style
border-colorbehaviorBehaviorTypeColor behavior type
border-colormapVisualColorMapColormap properties
border-colormap-visualAbstractVisualThe associated visual
border-colormap-visual-clipstyleClipStyleClipping style
border-colormap-visual-clipstyleGraphicsPathClipping style
border-colormap-visual-colorbehaviorBehaviorTypeColor behavior type
border-colormap-visual-colormapVisualColorMapColormap properties
border-colormap-visual-cssclassstringThe css class name of this node
border-colormap-visual-csscursorstringCSS cursor associated with node
border-colormap-visual-cssstylestringCSS style to be applied to inserted elements
border-colormap-visual-fillstylestringStyle applied on fill
border-colormap-visual-fillstyleFillStyleStyle applied on fill
border-colormap-visual-fillstyle-colorstringColor in CSS form
border-colormap-visual-fillstyle-evenoddmodebooleanEven-odd fill mode
border-colormap-visual-fillstyle-fillpatternPatternPattern
border-colormap-visual-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
border-colormap-visual-fillstyle-fillpattern-patternnamestringName of this pattern for indexing
border-colormap-visual-fillstyle-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
border-colormap-visual-fillstyle-foregroundstringForeground color
border-colormap-visual-fillstyle-patternPatternPattern
border-colormap-visual-idstring | numberId of the node, its a unique identifier
border-colormap-visual-linestylestringStyle applied on outline
border-colormap-visual-linestyleLineStyleStyle applied on outline
border-colormap-visual-linestyle-colorstringColor in CSS form
border-colormap-visual-linestyle-fillstringOptional fill style to be used to fill lines generated with this style
border-colormap-visual-linestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
border-colormap-visual-linestyle-linecapCapStyleThe line cap style
border-colormap-visual-linestyle-linedashoffsetnumberLine dash offset of dashed line
border-colormap-visual-linestyle-linejoinJoinStyleThe line join style
border-colormap-visual-linestyle-pixelsnapmodebooleanPixel Snap Mode, default(
border-colormap-visual-linestyle-scalablebooleanTrue if width should depend on transformation
border-colormap-visual-linestyle-unitstringOptional unit for the width
border-colormap-visual-linestyle-widthnumber | stringThe line thickness
border-colormap-visual-localtransformTransformationLocal transformation
border-colormap-visual-localtransform-dxnumberX axis translation
border-colormap-visual-localtransform-dynumberY axis translation
border-colormap-visual-localtransform-xxnumberX scale
border-colormap-visual-localtransform-xynumberXy skew
border-colormap-visual-localtransform-yxnumberYx skew
border-colormap-visual-localtransform-yynumberY scale
border-colormap-visual-marginsnumber | stringIt has properties for specifying the margins for each side
border-colormap-visual-namestringName of the node. It is often used for debugging purposes or to simplify queries
border-colormap-visual-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
border-colormap-visual-opacityblendmodeBlendModeNode opacity mode to blend it
border-colormap-visual-scalescrollstrategyScaleScrollStrategyScale scroll strategy
border-colormap-visual-scalescrollstrategy-enabledbooleanEnable flag
border-colormap-visual-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
border-colormap-visual-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
border-colormap-visual-transformstringAdditional CSS transformation applied to node or 'none'
border-colormap-visual-transformTransformationAdditional CSS transformation applied to node or 'none'
border-colormap-visual-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
border-colormap-visual-z-indexnumberDefine node z-index
border-cssclassstringThe css class name of this node
border-csscursorstringCSS cursor associated with node
border-cssstylestringCSS style to be applied to inserted elements
border-fillstylestringStyle applied on fill
border-fillstyleFillStyleStyle applied on fill
border-idstring | numberId of the node, its a unique identifier
border-linestylestringStyle applied on outline
border-linestyleLineStyleStyle applied on outline
border-localtransformTransformationLocal transformation
border-marginsnumber | stringIt has properties for specifying the margins for each side
border-namestringName of the node. It is often used for debugging purposes or to simplify queries
border-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
border-opacityblendmodeBlendModeNode opacity mode to blend it
border-scalescrollstrategyScaleScrollStrategyScale scroll strategy
border-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
border-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
border-transformstringAdditional CSS transformation applied to node or 'none'
border-transformTransformationAdditional CSS transformation applied to node or 'none'
border-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
border-z-indexnumberDefine node z-index
clipstyleClipStyleClipping style
clipstyleGraphicsPathClipping style
cssclassstringThe css class name of this node
csscursorstringCSS cursor associated with node
cssstylestringCSS style to be applied to inserted elements
faultContourFaultVisualFault visual properties or new visual
fault-clipstyleClipStyleClipping style
fault-clipstyleGraphicsPathClipping style
fault-closedlinestylestringThe closed fault line style
fault-closedlinestyleLineStyleThe closed fault line style
fault-colorbehaviorBehaviorTypeColor behavior type
fault-colormapVisualColorMapColormap properties
fault-cssclassstringThe css class name of this node
fault-csscursorstringCSS cursor associated with node
fault-cssstylestringCSS style to be applied to inserted elements
fault-faultvisualstylenumberThe fault visual style
fault-fillstylestringStyle applied on fill
fault-fillstyleFillStyleStyle applied on fill
fault-idstring | numberId of the node, its a unique identifier
fault-linestylestringStyle applied on outline
fault-linestyleLineStyleStyle applied on outline
fault-localtransformTransformationLocal transformation
fault-marginsnumber | stringIt has properties for specifying the margins for each side
fault-namestringName of the node. It is often used for debugging purposes or to simplify queries
fault-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
fault-opacityblendmodeBlendModeNode opacity mode to blend it
fault-openlinestylestringThe open fault line style
fault-openlinestyleLineStyleThe open fault line style
fault-scalescrollstrategyScaleScrollStrategyScale scroll strategy
fault-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
fault-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
fault-transformstringAdditional CSS transformation applied to node or 'none'
fault-transformTransformationAdditional CSS transformation applied to node or 'none'
fault-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
fault-z-indexnumberDefine node z-index
faultpointprecisionnumberFault point comparison precision (measured in grid cells)
fillstylestringStyle applied on fill
fillstyleFillStyleStyle applied on fill
gridtomodelTransformationThe grid to model transformation
idstring | numberId of the node, its a unique identifier
ignoreerroneousdatabooleanFlag indicating whether grid data changing should be enabled
isofillContourFillVisualIsofill visual properties or new visual
isofill-clipstyleClipStyleClipping style
isofill-clipstyleGraphicsPathClipping style
isofill-colorbehaviorBehaviorTypeColor behavior type
isofill-colormapVisualColorMapColormap properties
isofill-cssclassstringThe css class name of this node
isofill-csscursorstringCSS cursor associated with node
isofill-cssstylestringCSS style to be applied to inserted elements
isofill-fillstylestringStyle applied on fill
isofill-fillstyleFillStyleStyle applied on fill
isofill-holecolorstringThe color that will be used when rendering opaque holes
isofill-idstring | numberId of the node, its a unique identifier
isofill-linestylestringStyle applied on outline
isofill-linestyleLineStyleStyle applied on outline
isofill-localtransformTransformationLocal transformation
isofill-marginsnumber | stringIt has properties for specifying the margins for each side
isofill-namestringName of the node. It is often used for debugging purposes or to simplify queries
isofill-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
isofill-opacityblendmodeBlendModeNode opacity mode to blend it
isofill-scalescrollstrategyScaleScrollStrategyScale scroll strategy
isofill-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
isofill-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
isofill-transformstringAdditional CSS transformation applied to node or 'none'
isofill-transformTransformationAdditional CSS transformation applied to node or 'none'
isofill-transparentholesbooleanThe flag indicating whether hole transparency is true
isofill-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
isofill-z-indexnumberDefine node z-index
isolineContourLineVisualIsoline visual properties or new visual
isoline-clipstyleClipStyleClipping style
isoline-clipstyleGraphicsPathClipping style
isoline-colorbehaviorBehaviorTypeColor behavior type
isoline-colormapVisualColorMapColormap properties
isoline-cssclassstringThe css class name of this node
isoline-csscursorstringCSS cursor associated with node
isoline-cssstylestringCSS style to be applied to inserted elements
isoline-fillstylestringStyle applied on fill
isoline-fillstyleFillStyleStyle applied on fill
isoline-idstring | numberId of the node, its a unique identifier
isoline-indexstepnumberIndex step for line visual
isoline-labelformatNumberFormatLabel format
isoline-labelformat-fulllocalebooleanSpecify format how to provide locale
isoline-labelformat-grouplengthnumberSpecify group length of numbers
isoline-labelformat-localestringFormat locale
isoline-labelformat-localeLocaleFormat locale
isoline-labelformat-locale-localestringThe name of the locale
isoline-labelformat-locale-numberformatNumberFormatInfoDefines number format
isoline-labelformat-locale-numberformat-decstringDefines decimal symbol
isoline-labelformat-locale-numberformat-groupstringDefines group symbol
isoline-labelformat-locale-numberformat-infinitystringDefines infinity text
isoline-labelformat-locale-numberformat-negstringDefines negative symbol
isoline-labelformat-maximumfractiondigitsnumberSpecify maximum fraction digits
isoline-labelformat-minimumfractiondigitsnumberSpecify minimum fraction digits, have to be less or equal to maximumfractiondigits
isoline-labelformat-roundbooleanRound number
isoline-labelingstrategyAbstractContourLabelingStrategyLabeling strategy
isoline-labelingstrategy-labelformatNumberFormatLabel format
isoline-labelingstrategy-labelmarginnumberThe label margin for specified level
isoline-labelingstrategy-labelspacingnumberThe label spacing for specified level
isoline-labelingstrategy-textstyleTextStyleThe text style for specified level
isoline-labelingstrategy-textstyle-alignmentAlignmentStyleAlignment
isoline-labelingstrategy-textstyle-autosizebooleanAuto font size on high definition display
isoline-labelingstrategy-textstyle-backgroundstringBackground style
isoline-labelingstrategy-textstyle-backgroundFillStyleBackground style
isoline-labelingstrategy-textstyle-baselineBaseLineStyleBase line
isoline-labelingstrategy-textstyle-colorstringColor in CSS form
isoline-labelingstrategy-textstyle-fillFillStyleText fill style
isoline-labelingstrategy-textstyle-fontstringFont see
isoline-labelingstrategy-textstyle-fonturlstringThe place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword
isoline-labelingstrategy-textstyle-lineheightstring | numberLine height
isoline-labelingstrategy-textstyle-multilinebooleanAllow multi-line text
isoline-labelingstrategy-textstyle-outlinestringOutline style
isoline-labelingstrategy-textstyle-outlineLineStyleOutline style
isoline-labelingstrategy-textstyle-overflowwrapOverflowWrapStyleOverflow wrap
isoline-labelingstrategy-textstyle-strikethroughstringStrikethrough style
isoline-labelingstrategy-textstyle-strikethroughLineStyleStrikethrough style
isoline-labelingstrategy-textstyle-textoverflowTextOverflowStyleText overflow
isoline-labelingstrategy-textstyle-underlinestringUnderline style
isoline-labelingstrategy-textstyle-underlineLineStyleUnderline style
isoline-labelingstrategy-textstyle-underlineoffsetstring | numberUnderline offset distance
isoline-labelingstrategy-textstyle-whitespaceWhiteSpaceStyleWhite space
isoline-labelingstrategy-textstyle-wordbreakWordBreakStyleWord break
isoline-labelingstrategy-usefontcolorforlabelsbooleanFlag which indicates if font color is used for label text color
isoline-labelmarginnumberMargin around labels in device coordinates
isoline-labelspacingnumberLabel spacing between nearby labels on a isoline
isoline-labelsvisiblebooleanVisibility of labels
isoline-linestylestringStyle applied on outline
isoline-linestyleLineStyleStyle applied on outline
isoline-linestyleLineStyleStyle of line that is used to draw the isolines
isoline-linesvisiblebooleanVisibility of all isolines
isoline-localtransformTransformationLocal transformation
isoline-marginsnumber | stringIt has properties for specifying the margins for each side
isoline-namestringName of the node. It is often used for debugging purposes or to simplify queries
isoline-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
isoline-opacityblendmodeBlendModeNode opacity mode to blend it
isoline-scalescrollstrategyScaleScrollStrategyScale scroll strategy
isoline-selectablebooleanSelectable node, a boolean to determine if selection should consider this node
isoline-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
isoline-textstylestringText style attribute that is used to draw the labels
isoline-textstyleTextStyleText style attribute that is used to draw the labels
isoline-transformstringAdditional CSS transformation applied to node or 'none'
isoline-transformTransformationAdditional CSS transformation applied to node or 'none'
isoline-usefontcolorforlabelsbooleanFlag which indicates if font color is used for label text color
isoline-visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
isoline-z-indexnumberDefine node z-index
labelsdirectionContourLabelsDirectionThe labels direction
linestylestringStyle applied on outline
linestyleLineStyleStyle applied on outline
localtransformTransformationLocal transformation
marginsnumber | stringIt has properties for specifying the margins for each side
maxlabelwidthnumberThe max label width
maxvisiblelevelnumberThe last visible scale level
minvisiblelevelnumberThe first visible scale level
namestringName of the node. It is often used for debugging purposes or to simplify queries
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
opacityblendmodeBlendModeNode opacity mode to blend it
scalescrollstrategyScaleScrollStrategyScale scroll strategy
selectablebooleanSelectable node, a boolean to determine if selection should consider this node
smoothingisolinesbooleanFlag indicating whether isolines are smoothed
smoothinglabelsbooleanFlag indicating whether labels are smoothed
suppressintersectinglabelsbooleanThe flag indicating whether intersecting labels are suppressed
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
transformstringAdditional CSS transformation applied to node or 'none'
transformTransformationAdditional CSS transformation applied to node or 'none'
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
z-indexnumberDefine node z-index

Contents

Constructors

new ContourShape(options)

new ContourShape(options?)

Parameters

Name Type
Optional optionsOptions

Overrides

Shape.constructor

Methods

addContourListener

addContourListener(contourListener): void

Registers the specified contour listener to receive events from this contour shape.

Deprecated

since 4.0, use .on() instead

Parameters

Name Type Description
contourListenerAbstractVisualThe contour listener

Returns

void


addCssClass

addCssClass(cssclass): ContourShape

Adds new css class to node

Parameters

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

Returns

ContourShape

this

Inherited from

Shape.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): ContourShape

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

ContourShape

this

Inherited from

Shape.addInvalidateHandler


addVisual

addVisual(visual, order, refVisual?): void

Add a visual to this contour shape. It may be inserted at the front or the back. If there is no reference visual then valid order parameters include CG_O_FRONT and CG_O_BACK. If there is a reference visual then value order parameters include CG_O_ABOVE and CG_O_BELOW. Throws an exception for invalid order parameters and for null visual/refVisual.

Throws

Error if param is null

Parameters

Name Type Description
visualAbstractVisualThe visual to add to this shape.
orderVisualOrderThe order in which to add the visual.
Optional refVisualAbstractVisualThe reference visual.

Returns

void


applyOpacity

Protected applyOpacity(context): ContourShape

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

ContourShape

this

Inherited from

Shape.applyOpacity


applyResponsiveStyle

Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

Shape.applyResponsiveStyle


checkCollision

checkCollision(context): boolean

Check if this node is within the area being rendered by the context

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

true if object is inside of renderable area

Inherited from

Shape.checkCollision


clone

clone(): Node

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

Returns

Node

clone

Inherited from

Shape.clone


connectStyle

connectStyle(style, type, callback): ContourShape

Connects style.

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

Parameters

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

Returns

ContourShape

this

Inherited from

Shape.connectStyle


copyConstructor

Protected copyConstructor(src, deepCopy?): ContourShape

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

Parameters

Name Type Description
srcShapeSource to copy from
Optional deepCopybooleandeep copy

Returns

ContourShape

this

Inherited from

Shape.copyConstructor


disconnectStyle

disconnectStyle(style, type, callback): ContourShape

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

Parameters

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

Returns

ContourShape

this

Inherited from

Shape.disconnectStyle


dispose

dispose(): void

Disposes this node, once disposes a node should not be used anymore.
Clear all listeners, and disconnect styles to avoid memory leaks.
Also aggressively 'cleanup' this node by setting some of its members to null.

Returns

void

Inherited from

Shape.dispose


enableEventPropagation

enableEventPropagation(enable): ContourShape

Enable event propagation from the node hierarchy from bottom to top

This option is similar to DOM Event bubbling, which allows to get any event from child node. By default it is disabled for better performance.

Example

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

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

Parameters

Name Type Description
enablebooleanenable

Returns

ContourShape

this

Inherited from

Shape.enableEventPropagation


execute

execute(delegate): ContourShape

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

Example

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

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

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

Parameters

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

Returns

ContourShape

The result if any or this

Inherited from

Shape.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: ContourShape) => T

Returns

T

Inherited from

Shape.execute


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

Shape.filter


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

Shape.getAnimationStyle


getBorder

getBorder(): ContourBorderVisual

Gets first ContourBorderVisual of visuals

Returns

ContourBorderVisual

[visual] First ContourBorderVisual of visuals


getBoundingBox

getBoundingBox(): Rect

Gets the bounding box of this contour shape. If projection has been set, then the projected bounding box is returned.

Returns

Rect

bbox The bounding box of the contour shape.


getBounds

getBounds(): Rect

Return bounds

Returns

Rect

bounds


getClassName

getClassName(): string

Returns

string

Inherited from

Shape.getClassName


getClipStyle

getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

Shape.getClipStyle


getCss

getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

Shape.getCss


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

Shape.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

Shape.getCssClasses


getCssTransform

getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

Shape.getCssTransform


getDataSource

getDataSource(): AbstractContourDataSource

Gets the data source which provides grids to the contour.

Returns

AbstractContourDataSource

dataSource The contour data source.


getFault

getFault(): ContourFaultVisual

Gets first ContourFaultVisual of visuals

Returns

ContourFaultVisual

[visual] First ContourFaultVisual of visuals


getFaultPointPrecision

getFaultPointPrecision(): number

Gets the fault point comparison precision (measured in grid cells)

Returns

number

precision The fault point precision.


getFaultsList

getFaultsList(): ContourFaultList

Gets the faults.

Returns

ContourFaultList

faults Object that stores the faults for this Contour Shape.


getFillStyle

getFillStyle(): FillStyle

Return fill style

Returns

FillStyle

fillStyle current fill style

Inherited from

Shape.getFillStyle


getGrid

getGrid(): ContourAbstractGrid

Gets the contour grid. (Object that stores grid data for this contour shape)

Returns

ContourAbstractGrid

grid The contour grid.


getGridToModel

getGridToModel(): Transformation

Gets the grid to model transform

Returns

Transformation

gridToModel The grid to model transformation.


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

Shape.getId


getIgnoreErroneousData

getIgnoreErroneousData(): boolean

Gets the flag for grid data checking. DEFAULT: IgnoreErroneousData=false

Returns

boolean

ignore Flag indicating whether grid data changing should be enabled.


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

Gets invalidate method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

Shape.getInvalidateMethod


getIsofill

getIsofill(): ContourFillVisual

Gets first ContourFillVisual of visuals

Returns

ContourFillVisual

[visual] First ContourFillVisual of visuals


getIsoline

getIsoline(): ContourLineVisual

Gets first ContourLineVisual of visuals

Returns

ContourLineVisual

[visual] First ContourIsolineVisual of visuals


getLabelsDirection

getLabelsDirection(): ContourLabelsDirection

Gets the labels direction.

Returns

ContourLabelsDirection

direction The labels direction.


getLineStyle

getLineStyle(): LineStyle

Return line style

Returns

LineStyle

lineStyle current line style

Inherited from

Shape.getLineStyle


getListeners

getListeners(): AbstractVisual[]

Gets all the contour listeners.

Returns

AbstractVisual[]

listeners The contour listeners.


getLocalTransform

getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

Shape.getLocalTransform


getMarginsStyle

getMarginsStyle(): SpaceStyle<string | number>

Return margins style

Returns

SpaceStyle<string | number>

Inherited from

Shape.getMarginsStyle


getMaxLabelWidth

getMaxLabelWidth(): number

Gets the max label width.

Returns

number

maxLabelWidth The max label width.


getMaxVisibleLevel

getMaxVisibleLevel(): number

Gets the last visible scale level.

Returns

number

maxLevel The last visible scale level.


getMinVisibleLevel

getMinVisibleLevel(): number

Gets the first visible scale level.

Returns

number

minLevel The first visible scale level.


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

Shape.getName


getNonProjectedBoundingBox

getNonProjectedBoundingBox(tr): Rect

Gets the non-projected bounding box.

Parameters

Name Type Description
trTransformationThe transformation from model to device space.

Returns

Rect

bbox The non-projected bounding box of the contour shape.


getNotify

getNotify(): boolean

Gets the listeners notification flag

Deprecated

since 4.0, use .isSilent() instead

Returns

boolean

notify The boolean notification flag.


getOpacity

getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

Shape.getOpacity


getOpacityBlendMode

getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

Shape.getOpacityBlendMode


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

Shape.getParent


getProjectionBox

getProjectionBox(modelBox, reverse?): Rect

Converts the model box to the projection box and returns it.

Parameters

Name Type Description
modelBoxRectThe model box.
Optional reversebooleanTrue if reverse projection is requested.

Returns

Rect

modelBox


getProperties

getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

Contour shape properties

Overrides

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

Shape.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

Shape.getPropertyKeys


getRenderingFilter

getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

Shape.getRenderingFilter


getResponsiveStyle

getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

Shape.getResponsiveStyle


getRoot

getRoot(): Node

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

Returns

Node

the root node

Inherited from

Shape.getRoot


getScale

getScale(): ContourScale

Gets the contour scale. This is used to determine the data values for the isolines in this Contour Shape

Returns

ContourScale

scale The contour scale.


getScaleScrollStrategy

getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

Shape.getScaleScrollStrategy


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

Shape.getSceneTransform


getShapeProjection

getShapeProjection(): AbstractProjection

Gets the shape projection that is to be used when drawing this shape.

Returns

AbstractProjection

projection The shape projection.


getSmoothingIsolines

getSmoothingIsolines(): boolean

Gets a flag indicating if isolines are smoothed.

Returns

boolean

smoothed Flag indicating whether isolines are smoothed.


getSmoothingIsolinesType

getSmoothingIsolinesType(): IsoLineSmoothingType

Returns smoothing type

Returns

IsoLineSmoothingType

smoothingType smoothing type


getSmoothingLabels

getSmoothingLabels(): boolean

Gets the smoothLabels flag.

Returns

boolean

smoothLabels The smoothLabels flag.


getSuppressIntersectingLabels

getSuppressIntersectingLabels(): boolean

Gets the intersecting labels suppression status. Default is false. This status indicates if contour will render labels without intersecting each other. Default is FALSE. The status is true if labels don't intersect each other.

Returns

boolean

suppress The flag indicating whether intersecting labels are suppressed.


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

Shape.getTag


getVisible

getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

Shape.getVisible


getVisuals

getVisuals(visualClassName): ContourFillVisual[]

Get all fill visuals

Parameters

Name Type
visualClassName"geotoolkit.contour.visuals.ContourFillVisual"

Returns

ContourFillVisual[]

getVisuals(visualClassName): ContourBorderVisual[]

Get all border visuals

Parameters

Name Type
visualClassName"geotoolkit.contour.visuals.ContourBorderVisual"

Returns

ContourBorderVisual[]

getVisuals(visualClassName): ContourFaultVisual[]

Get all fault visuals

Parameters

Name Type
visualClassName"geotoolkit.contour.visuals.ContourFaultVisual"

Returns

ContourFaultVisual[]

getVisuals(visualClassName): ContourLineVisual[]

Get all isoline visuals

Parameters

Name Type
visualClassName"geotoolkit.contour.visuals.ContourLineVisual"

Returns

ContourLineVisual[]

getVisuals(): AbstractVisual[]

Get all visuals

Returns

AbstractVisual[]

getVisuals(visualClassName?): AbstractVisual[]

Gets the visuals by theirs classname

Parameters

Name Type Description
Optional visualClassNamestringClass name of visual

Returns

AbstractVisual[]

visuals The visuals.


getWorldTransform

getWorldTransform(): Transformation

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

Returns

Transformation

transform the world transform.

Inherited from

Shape.getWorldTransform


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

Shape.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

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

Shape.hasEventListener


invalidate

invalidate(bounds?, force?): ContourShape

Invalidate area of the shape. This method invalidates parent by default. invalidated from parent to root node.

Parameters

Name Type Description
Optional boundsRectbounds of the invalid rectangle in the inner node coordinates
Optional forcebooleantrue if parent should be invalidated immediately if null is provided then cache (if any will be completely refreshed) otherwise only specified rect or node.bounds will be refreshed

Returns

ContourShape

this

Inherited from

Shape.invalidate


invalidateParent

invalidateParent(bounds?, force?): ContourShape

Invalidate bounds

Parameters

Name Type Description
Optional boundsRectif null is provided then cache (if any will be completely refreshed) otherwise only specified rect or node.bounds will be refreshed
Optional forcebooleanflag indicating if the parent must be forcibly invalidated

Returns

ContourShape

this

Inherited from

Shape.invalidateParent


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

Shape.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

Shape.isEventPropagationEnabled


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

Shape.isNotificationEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

Shape.isSelectable


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

Shape.isSilent


notify

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

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

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

Returns

ContourShape

this

Overrides

Shape.notify


notifyListeners

notifyListeners(args): void

Notifies the registered listeners of an event.

Deprecated

since 4.0, use .notify() instead

Parameters

Name Type Description
argsContourEventThe event to pass to the listeners.

Returns

void


off

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

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

Returns

ContourShape

this

Overrides

Shape.off


on

on<E>(type, callback): ContourShape

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

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

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

Type parameters

NameType
Eextends string

Parameters

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

Returns

ContourShape

this

Overrides

Shape.on


onParentChanged

Protected onParentChanged(node): ContourShape

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

ContourShape

this

Inherited from

Shape.onParentChanged


onVisibilityChanged

Protected onVisibilityChanged(): void

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

Returns

void

Inherited from

Shape.onVisibilityChanged


postRendering

Protected postRendering(context): void

To be called after rendering. Call this method if you override method render

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

Shape.postRendering


preRendering

Protected preRendering(context): void

Occurs before rendering this method sets clipping by default. Call this method if you override method render

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

Shape.preRendering


registerAnimationStyle

registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

Shape.registerAnimationStyle


removeContourListener

removeContourListener(contourListener): void

Removes the specified contour listener from receiving events from this contour shape.

Deprecated

since 4.0, use .off() instead

Parameters

Name Type Description
contourListenerAbstractVisualThe contour listener

Returns

void


removeCssClass

removeCssClass(cssclass): ContourShape

Removes css class from node

Parameters

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

Returns

ContourShape

this

Inherited from

Shape.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): ContourShape

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

ContourShape

this

Inherited from

Shape.removeInvalidateHandler


removeVisual

removeVisual(visual): void

Remove the specified visual from this contour shape.

Throws

Error if param is null

Parameters

Name Type Description
visualAbstractVisualThe visual that is to be removed.

Returns

void


render

render(renderingContext): void

Renders node

Parameters

Name Type Description
renderingContextRenderingContextThe rendering context to be used to draw the node

Returns

void

Overrides

Shape.render


renderAsync

renderAsync(context, callback): void

Render node in asynchronous mode. Default implementation creates call method "render" inside

Parameters

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

Returns

void

Inherited from

Shape.renderAsync


rotate

rotate(theta, x, y): ContourShape

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

ContourShape

this

Inherited from

Shape.rotate


scale

scale(xx, yy): ContourShape

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

ContourShape

this

Inherited from

Shape.scale


setAnimationStyle

setAnimationStyle(animationStyle): ContourShape

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

ContourShape

Inherited from

Shape.setAnimationStyle


setBoundingBox

setBoundingBox(bbox): ContourShape

Sets the bounding box for the contour shape, in non-projected model space.

Parameters

Name Type Description
bboxRectSpecifies the new bounding box.

Returns

ContourShape

this


setClipStyle

setClipStyle(style): ContourShape

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

ContourShape

this

Inherited from

Shape.setClipStyle


setCss

setCss(style, merge?): ContourShape

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

ContourShape

this

Inherited from

Shape.setCss


setCssClass

setCssClass(name): ContourShape

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

ContourShape

this

Inherited from

Shape.setCssClass


setCssTransform

setCssTransform(transform): ContourShape

Set CSS transformation

Parameters

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

Returns

ContourShape

this

Inherited from

Shape.setCssTransform


setDataSource

setDataSource(dataSource): ContourShape

Sets the data source which provides grids to the contour.

Parameters

Name Type Description
dataSourceAbstractContourDataSourceThe contour data source.

Returns

ContourShape

this


setFaultPointPrecision

setFaultPointPrecision(precision): ContourShape

Sets the fault point comparison precision (measured in grid cells)

Parameters

Name Type Description
precisionnumberThe fault point precision.

Returns

ContourShape

this


setFaultsList

setFaultsList(faults): ContourShape

Sets the faults by assigning the Faults property to a new ContourFaultList object storing the faults. If you attempt to assign the Faults property a null value, this will be translated into an empty ContourFaultList.

Parameters

Name Type Description
faultsContourFaultListObject that stores the faults for this Contour Shape.

Returns

ContourShape

this


setFillStyle

setFillStyle(fillStyle, merge?): ContourShape

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

ContourShape

this

Inherited from

Shape.setFillStyle


setGrid

setGrid(grid): ContourShape

Sets the contour grid.(Object that stores grid data for this contour shape). This will throw an exception if grid is set to null.

Throws

Error if grid is null

Parameters

Name Type Description
gridContourAbstractGridThe contour grid.

Returns

ContourShape

this


setGridToModel

setGridToModel(gridToModel): ContourShape

Sets the grid to model transform Throws exception when it is set to null.

Throws

Error if param is null

Parameters

Name Type Description
gridToModelTransformationThe grid to model Transformation.

Returns

ContourShape

this


setId

setId(id): ContourShape

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

ContourShape

this

Inherited from

Shape.setId


setIgnoreErroneousData

setIgnoreErroneousData(ignore?): ContourShape

Sets the flag for grid data checking. It is recommended to set value to FALSE always. DEFAULT: IgnoreErroneousData=false

Parameters

Name Type Description
Optional ignorebooleanFlag indicating whether grid data changing should be enabled.

Returns

ContourShape

this


setLabelsDirection

setLabelsDirection(direction): ContourShape

Sets the labels direction.

Parameters

Name Type Description
directionContourLabelsDirectionThe labels direction.

Returns

ContourShape

this


setLineStyle

setLineStyle(lineStyle, merge?): ContourShape

Sets line style

Parameters

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

Returns

ContourShape

this

Inherited from

Shape.setLineStyle


setListeners

setListeners(listeners): ContourShape

Sets all the contour listeners.

Parameters

Name Type Description
listenersAbstractVisual[]The contour listeners.

Returns

ContourShape

this


setLocalTransform

setLocalTransform(localTransform, force?): ContourShape

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

ContourShape

this

Inherited from

Shape.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): ContourShape

Sets margins style

Parameters

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

Returns

ContourShape

this

Inherited from

Shape.setMarginsStyle


setMaxLabelWidth

setMaxLabelWidth(maxLabelWidth): ContourShape

Sets the max label width.

Parameters

Name Type Description
maxLabelWidthnumberThe max label width.

Returns

ContourShape

this


setMaxVisibleLevel

setMaxVisibleLevel(maxLevel): ContourShape

Sets the last visible scale level.

Parameters

Name Type Description
maxLevelnumberThe last visible scale level.

Returns

ContourShape

this


setMinVisibleLevel

setMinVisibleLevel(minLevel): ContourShape

Sets the first visible scale level.

Parameters

Name Type Description
minLevelnumberThe first visible scale level.

Returns

ContourShape

this


setName

setName(name): ContourShape

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

ContourShape

this

Inherited from

Shape.setName


setNotification

setNotification(notify, force?): ContourShape

set notification state

Parameters

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

Returns

ContourShape

this

Inherited from

Shape.setNotification


setNotify

setNotify(notify): ContourShape

Sets the listeners notification flag

Deprecated

since 4.0, use .setSilent() instead

Parameters

Name Type Description
notifybooleanThe boolean notification flag.

Returns

ContourShape

this


setOpacity

setOpacity(opacity, blendMode?): ContourShape

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

ContourShape

this

Inherited from

Shape.setOpacity


setProperties

setProperties(properties?): ContourShape

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

ContourShape

this

Overrides

Shape.setProperties


setProperty

setProperty(name, value): ContourShape

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

ContourShape

this

Inherited from

Shape.setProperty


setRenderingFilter

setRenderingFilter(filter): ContourShape

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

ContourShape

this

Inherited from

Shape.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): ContourShape

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

ContourShape

this

Inherited from

Shape.setResponsiveStyle


setScale

setScale(scale): ContourShape

Sets the contour scale This is used to determine the data values for the isolines in this Contour Shape

Parameters

Name Type Description
scaleContourScaleThe contour scale.

Returns

ContourShape

this


setScaleScrollStrategy

setScaleScrollStrategy(strategy?): ContourShape

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

ContourShape

this

Inherited from

Shape.setScaleScrollStrategy


setSelectable

setSelectable(selectable): ContourShape

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

ContourShape

this

Inherited from

Shape.setSelectable


setShapeProjection

setShapeProjection(projection): ContourShape

Sets the shape projection that is to be used when drawing this shape. Set to null (the default) if you do not wish to use a projection

Parameters

Name Type Description
projectionAbstractProjectionThe shape projection.

Returns

ContourShape

this


setSilent

setSilent(bool): ContourShape

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

ContourShape

this

Inherited from

Shape.setSilent


setSkipNearPoints

setSkipNearPoints(skipNearPoints): ContourShape

Sets skipping of near points when rendering isolines and isofills (to speed up process).

Parameters

Name Type Description
skipNearPointsbooleanIf true then point skipping will be enabled.

Returns

ContourShape

this


setSmoothingIsolines

setSmoothingIsolines(smoothing): ContourShape

Sets a flag for indicating if isolines are smoothed.

Parameters

Name Type Description
smoothingboolean | IsoLineSmoothingTypeFlag indicating whether isolines are smoothed.

Returns

ContourShape

this


setSmoothingLabels

setSmoothingLabels(smoothLabels): ContourShape

Sets the smoothLabels flag.

Parameters

Name Type Description
smoothLabelsbooleanThe smoothLabels flag.

Returns

ContourShape

this


setSuppressIntersectingLabels

setSuppressIntersectingLabels(suppress): ContourShape

Sets the intersecting labels suppression status. This status indicates if contour will render labels without intersecting each other. Default is FALSE. The status is true if labels don't intersect each other.

Parameters

Name Type Description
suppressbooleanThe flag indicating whether intersecting labels are suppressed.

Returns

ContourShape

this


setTag

setTag(tag): ContourShape

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

Parameters

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

Returns

ContourShape

this

Inherited from

Shape.setTag


setVisible

setVisible(value): ContourShape

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

ContourShape

this

Inherited from

Shape.setVisible


setVisuals

setVisuals(visuals): ContourShape

Sets the visuals.

Parameters

Name Type Description
visualsAbstractVisual[]The visuals.

Returns

ContourShape

this


setZIndex

setZIndex(value): ContourShape

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

ContourShape

this

Inherited from

Shape.setZIndex


shear

shear(shx, shy): ContourShape

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

ContourShape

this

Inherited from

Shape.shear


toString

toString(): string

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

Returns

string

A string representation

Inherited from

Shape.toString


translate

translate(tx, ty): ContourShape

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

ContourShape

this

Inherited from

Shape.translate


unregisterAnimationStyle

unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

Shape.unregisterAnimationStyle


updateLineReservation

updateLineReservation(): void

Updates the line reservations. This is called when something happens which may affect them. E.g. the contour scale changes, a visual's index step changes

Returns

void


updateSceneTransformation

updateSceneTransformation(): ContourShape

Update scene transformation

Returns

ContourShape

this

Inherited from

Shape.updateSceneTransformation


updateState

updateState(regions?, changes?): ContourShape

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

ContourShape

this

Inherited from

Shape.updateState


updateTimeStamp

Protected updateTimeStamp(): ContourShape

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

Returns

ContourShape

this

Inherited from

Shape.updateTimeStamp


visualInvalidated

visualInvalidated(args): void

This method is called when any of the visuals containing this contour shape are invalidated. In response, this calls the AbstractShape's 'invalidateShape' method, initiating repainting.

Deprecated

since 4.0

Parameters

Name Type Description
argsVisualEventThe event from the visual

Returns

void


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

Shape.enableSceneGraphNotification


findParent

Static findParent<T>(node, classType, filter?): InstanceType<T>

Find root of the node with specified type

Type parameters

NameType
Textends Constructor<any>

Parameters

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

Returns

InstanceType<T>

Inherited from

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

Shape.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

Shape.getClassName


intersectsBounds

Static intersectsBounds(bounds, localTransformation, parentInvalidArea, expand?): boolean

Check collision of the shape bounds with parent invalid area

Parameters

Name Type Description
boundsRectshape bounds
localTransformationTransformationlocal transformation of the bounds
parentInvalidAreaRectinvalid parent area
Optional expandDimensionoptional expand the bounds in model coordinate

Returns

boolean

true if bounds intersect the invalid area

Inherited from

Shape.intersectsBounds


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

Shape.isSceneGraphNotificationEnabled