API / geotoolkit / welllog / LogCurve / LogCurve
Creates the standard representation of a well log curve. Data is passed in a LogAbstractData.
The LogCurve is constructed from the passed data source, then addChild() has to be used to add the curve to the track. The corresponding Line Style and interpolation type is set with helper methods.
Several methods are also available to handle Clipping, Wrapping, Display Modes( symbols, values etc), curve limits , decimation etc.
setMicroPosition() can be used to place log curve at a specified position of the track in horizontal direction.
Similarly, the add/remove/get-Child() has to be used to add the track containing the curve, to the TrackContainer.
Example
import {TrackContainer} from '@int/geotoolkit/welllog/TrackContainer';
import {LogTrack} from '@int/geotoolkit/welllog/LogTrack';
import {LogCurve} from '@int/geotoolkit/welllog/LogCurve';
new TrackContainer(..)
.addChild(new LogTrack(..)
.addChild(new LogCurve(dataSource))
)↳
LogCurve
Constructors
| [new LogCurve(data, autoUpdate)](/solutions/geotoolkit/apis/classes/geotoolkit.welllog.logcurve.logcurve.md#new logcurve(data, autoupdate)) | [new LogCurve(params)](/solutions/geotoolkit/apis/classes/geotoolkit.welllog.logcurve.logcurve.md#new logcurve(params)) |
|---|
Accessors
Methods
Css Properties
| Name | Type | Description |
|---|---|---|
autobounds | boolean | Enables or disables auto bounds |
autoupdate | boolean | Automatic update from datasource. If true, curve listens to data changes from source |
barlinestyle | string | Value-bar line style |
barlinestyle | LineStyle | Value-bar line style |
barlinestyle-color | string | Color in CSS form |
barlinestyle-fill | string | Optional fill style to be used to fill lines generated with this style |
barlinestyle-fill | FillStyle | Optional fill style to be used to fill lines generated with this style |
barlinestyle-fill-color | string | Color in CSS form |
barlinestyle-fill-evenoddmode | boolean | Even-odd fill mode |
barlinestyle-fill-fillpattern | Pattern | Pattern |
barlinestyle-fill-fillpattern-containername | string | An 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 |
barlinestyle-fill-fillpattern-patternname | string | Name of this pattern for indexing |
barlinestyle-fill-fillpattern-scalable | boolean | Flag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported) |
barlinestyle-fill-foreground | string | Foreground color |
barlinestyle-fill-pattern | Pattern | Pattern |
barlinestyle-linecap | CapStyle | The line cap style |
barlinestyle-linedashoffset | number | Line dash offset of dashed line |
barlinestyle-linejoin | JoinStyle | The line join style |
barlinestyle-pixelsnapmode | boolean | Pixel Snap Mode, default( |
barlinestyle-scalable | boolean | True if width should depend on transformation |
barlinestyle-unit | string | Optional unit for the width |
barlinestyle-width | number | string | The line thickness |
basename | string | The base name |
bounds | Rect | The rectangle specifying position of the visual in the track. If set, autobounds will be switched off |
bounds-height | number | Height |
bounds-readonly | boolean | Readonly |
bounds-width | number | Width |
bounds-x | number | Left |
bounds-y | number | Top |
centeronzeroonnegativemin | boolean | Flag set to center the limits |
cliplimitsmax | number | Max clipping limits |
cliplimitsmin | number | Min clipping limits |
clipping | boolean | Flag to enable clipping |
clipstyle | ClipStyle | Clipping style |
clipstyle-evenodd | boolean | True if evenodd mode is on ('nonzero' mode otherwise) |
clipstyle-geometry | GraphicsPath | Clipping geometry |
clipstyle-geometry-bounds | Rect | Bounds |
clipstyle | GraphicsPath | Clipping style |
cssclass | string | The css class name of this node |
csscursor | string | CSS cursor associated with node |
cssstyle | string | CSS style to be applied to inserted elements |
description | string | The description |
displayunit | string | Display unit |
gradientlinestyle | LogGradientStyle | Gradient line style |
gradientlinestyle-color | string | Color in CSS form |
gradientlinestyle-colorprovider | string | Color provider |
gradientlinestyle-colorprovider | ColorProvider | Color provider |
gradientlinestyle-colorprovider-max | number | |
gradientlinestyle-colorprovider-min | number | |
gradientlinestyle-colorprovider-scale | KnownScales | |
gradientlinestyle-colorrange | Range | Color range (min and max value) |
gradientlinestyle-colorrange-high | number | Upper range boundary |
gradientlinestyle-colorrange-low | number | Lower range boundary |
gradientlinestyle-colorrange-max | number | |
gradientlinestyle-colorrange-min | number | |
gradientlinestyle-datasource | string | Log data id |
gradientlinestyle-evenoddmode | boolean | Even-odd fill mode |
gradientlinestyle-fillpattern | Pattern | Pattern |
gradientlinestyle-foreground | string | Foreground color |
gradientlinestyle-normalize | boolean | Normalize data value to color space, default true |
gradientlinestyle-pattern | Pattern | Pattern |
gradientlinestyle-renderbackground | boolean | Extra style parameter for background fill |
gradientlinestyle-renderforeground | boolean | Extra style parameter for foreground fill. Normally to render patterns |
gradientlinestyle-transparency | number | Value for alpha chanel |
hideoverlappedvalues | boolean | Hide overlapped value |
horizontalflip | boolean | Horizontal flip |
id | string | number | Id of the node, its a unique identifier |
interpolationedge | InterpolationEdge | Edge values interpolation type in case of properties.limitstype==LimitsType.Manual |
interpolationtype | InterpolationType | Interpolation type |
limitsmax | number | Max limits value in case of data.limitstype==LimitsType.Manual |
limitsmin | number | Min limits value in case of data.limitstype==LimitsType.Manual |
limitstype | LimitsType | Limits type |
linestyle | string | Linestyle |
linestyle | LineStyle | Linestyle |
localtransform | Transformation | Local transformation |
localtransform-dx | number | X axis translation |
localtransform-dy | number | Y axis translation |
localtransform-xx | number | X scale |
localtransform-xy | number | Xy skew |
localtransform-yx | number | Yx skew |
localtransform-yy | number | Y scale |
margins | number | string | It has properties for specifying the margins for each side |
maxwraps | number | Maximum count of wraps (by default 5) |
microposleft | number | Left micro position |
microposright | number | Right micro position |
name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
nullvaluesymbol | SymbolShape | Null value symbol |
nullvaluesymbol-alignment | AnchorType | Alignment according to the anchor point |
nullvaluesymbol-alignment | AnchorType | Anchor type of symbol |
nullvaluesymbol-ax | number | Anchor x position |
nullvaluesymbol-ay | number | Anchor y position |
nullvaluesymbol-cache | boolean | Set it to true if you want to cache complex geometry to raster |
nullvaluesymbol-clipstyle | ClipStyle | Clipping style |
nullvaluesymbol-clipstyle | GraphicsPath | Clipping style |
nullvaluesymbol-cssclass | string | The css class name of this node |
nullvaluesymbol-csscursor | string | CSS cursor associated with node |
nullvaluesymbol-cssstyle | string | CSS style to be applied to inserted elements |
nullvaluesymbol-fillstyle | string | Style applied on fill |
nullvaluesymbol-fillstyle | FillStyle | Style applied on fill |
nullvaluesymbol-height | number | Shape height |
nullvaluesymbol-id | string | number | Id of the node, its a unique identifier |
nullvaluesymbol-ispointingup | boolean | Defines whether the shape is always pointing up |
nullvaluesymbol-layoutstyle | LayoutStyle | Layout style to specify how to lay out shape |
nullvaluesymbol-layoutstyle-constraint | SizeConstraint | Layout constrains |
nullvaluesymbol-layoutstyle-flexgrow | number | Number specifying how much the item will grow relative to the rest of the items inside the same container |
nullvaluesymbol-layoutstyle-flexshrink | number | Number specifying how much the item will shrink relative to the rest of the items inside the same container |
nullvaluesymbol-layoutstyle-float | string | Float position |
nullvaluesymbol-layoutstyle-position | string | Layout position |
nullvaluesymbol-layoutstyle-size | number | string | Layout size |
nullvaluesymbol-linestyle | string | Style applied on outline |
nullvaluesymbol-linestyle | LineStyle | Style applied on outline |
nullvaluesymbol-localtransform | Transformation | Local transformation |
nullvaluesymbol-margins | number | string | It has properties for specifying the margins for each side |
nullvaluesymbol-maxdimension | Dimension | Maximum size for rendering |
nullvaluesymbol-maxdimension-height | number | Height of dimension |
nullvaluesymbol-maxdimension-width | number | Width of dimension or properties |
nullvaluesymbol-mindimension | Dimension | Minimum size for rendering |
nullvaluesymbol-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
nullvaluesymbol-opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
nullvaluesymbol-opacityblendmode | BlendMode | Node opacity mode to blend it |
nullvaluesymbol-painter | string | A function with has parameters: symbol, box, context |
nullvaluesymbol-painterproperties | any | Symbol's painter's properties |
nullvaluesymbol-preserveaspectratio | boolean | Preserve aspect ratio of the anchored shape |
nullvaluesymbol-preservereadingorientation | boolean | Preserve reading orientation for local transform |
nullvaluesymbol-preserverightangle | boolean | Preserve right angle for local transformation |
nullvaluesymbol-rotationangle | number | Rotation angle at anchor |
nullvaluesymbol-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
nullvaluesymbol-scalescrollstrategy-enabled | boolean | Enable flag |
nullvaluesymbol-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
nullvaluesymbol-sizeisindevicespace | boolean | Is coordinate in device space |
nullvaluesymbol-tag | any | Custom 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 |
nullvaluesymbol-transform | string | Additional CSS transformation applied to node or 'none' |
nullvaluesymbol-transform | Transformation | Additional CSS transformation applied to node or 'none' |
nullvaluesymbol-useminmaxdimensions | boolean | Use the min max dimensions to limit visual size |
nullvaluesymbol-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
nullvaluesymbol-width | number | Shape width |
nullvaluesymbol-z-index | number | Define node z-index |
nullvaluesymbolvisible | boolean | Flag to change visibility of null value symbol |
opacity | number | Node opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context |
opacityblendmode | BlendMode | Node opacity mode to blend it |
optimization | boolean | Optimization flags |
outofrangevalues | boolean | Outofrangevalues flag |
scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
scaletype | ScaleType | Values scale type |
selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
symbol | SymbolShape | Symbol to be used |
symboldecimationdistance | number | Symbol decimation distance |
symboldecimationstep | number | Symbol decimation step or level |
symbolgap | number | Symbol gap |
symbolgap | Dimension | Symbol gap |
tag | any | Custom 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 |
textautoalignment | boolean | Automatic text alignment for text values, which intersects border of the track |
textautoalignmentoffset | number | Text offset from anchor for automatic text alignment |
textautoalignmentoffset | Point | Text offset from anchor for automatic text alignment |
textautoalignmentoffset-x | number | X coordinate |
textautoalignmentoffset-y | number | Y coordinate |
textdecimationstep | number | Text decimation step |
textreference | TextReference | Type of the text to be put on the track |
textstyle | string | Text style |
textstyle | TextStyle | Text style |
textstyle-alignment | AlignmentStyle | Alignment |
textstyle-autosize | boolean | Auto font size on high definition display |
textstyle-background | string | Background style |
textstyle-background | FillStyle | Background style |
textstyle-baseline | BaseLineStyle | Base line |
textstyle-color | string | Color in CSS form |
textstyle-fill | FillStyle | Text fill style |
textstyle-font | string | Font see |
textstyle-fonturl | string | The place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword |
textstyle-lineheight | string | number | Line height |
textstyle-multiline | boolean | Allow multi-line text |
textstyle-outline | string | Outline style |
textstyle-outline | LineStyle | Outline style |
textstyle-overflowwrap | OverflowWrapStyle | Overflow wrap |
textstyle-strikethrough | string | Strikethrough style |
textstyle-strikethrough | LineStyle | Strikethrough style |
textstyle-textoverflow | TextOverflowStyle | Text overflow |
textstyle-underline | string | Underline style |
textstyle-underline | LineStyle | Underline style |
textstyle-underlineoffset | string | number | Underline offset distance |
textstyle-whitespace | WhiteSpaceStyle | White space |
textstyle-wordbreak | WordBreakStyle | Word break |
transform | string | Additional CSS transformation applied to node or 'none' |
transform | Transformation | Additional CSS transformation applied to node or 'none' |
visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
wrapping | boolean | Flag to enable wrapping based on if you want to see the clipped part of the track or not |
z-index | number | Define node z-index |
Constructors
• new LogCurve(data?, autoUpdate?)
| Name | Type |
|---|---|
Optional data | LogAbstractData |
Optional autoUpdate | boolean |
LogPointSet.constructor
• new LogCurve(params?)
| Name | Type |
|---|---|
Optional params | Options |
LogPointSet.constructor
Methods
▸ Protected _getDisplayMode(): DisplayMode
Returns display mode
▸ Protected _setDisplayMode(displayMode): LogCurve
Sets display mode
| Name | Type | Description |
|---|---|---|
displayMode | DisplayMode | display mode |
this
▸ addCssClass(cssclass): LogCurve
Adds new css class to node
| Name | Type | Description |
|---|---|---|
cssclass | string | string[] | css class name('s) |
this
▸ addInvalidateHandler(handler): LogCurve
Add invalidate handler
Deprecated
since 4.0, use Node.on instead
| Name | Type | Description |
|---|---|---|
handler | Function | handler to be notified about invalidation |
this
LogPointSet.addInvalidateHandler
▸ Protected applyOpacity(context): LogCurve
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
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
this
▸ Protected applyResponsiveStyle(): void
Apply a responsive style rules it is exists
void
LogPointSet.applyResponsiveStyle
▸ checkCollision(context): boolean
Check culling. Returns true if object is inside of renderable area
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
boolean
▸ clone(): LogCurve
All subclasses should override copyConstructor or provide custom implementation for this method
clone
▸ connectStyle(style, type, callback): LogCurve
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
| Name | Type | Description |
|---|---|---|
style | EventDispatcher | connect style |
type | string | type of event or property |
callback | AttributeCallback<EventDispatcher> | function to be called |
this
▸ convertCurveToDataValue(v): number
Converts curve model value to data sample value If the data source is not set, the method will yield NaN as a result.
| Name | Type | Description |
|---|---|---|
v | number | curve value |
number
a data value
▸ convertDataToCurveValue(v, d?): number
Converts data sample value to curve model value If the data source is not set, the method will yield NaN as a result.
| Name | Type | Description |
|---|---|---|
v | number | data value |
Optional d | number | data depth |
number
a curve value
▸ Protected copyConstructor(src, deepCopy?): LogCurve
Copy constructor function.
Function used as part of the cloning mechanism.
Implementations should copy the given instance state to this instance.
| Name | Type | Description |
|---|---|---|
src | LogCurve | Source to copy from |
Optional deepCopy | boolean | deep copy |
this
▸ disconnectStyle(style, type, callback): LogCurve
Disconnect style
This convenience method un-subscribes a listener to given style for the specified type.
| Name | Type | Description |
|---|---|---|
style | EventDispatcher | connect style |
type | string | type of event or property |
callback | AttributeCallback<EventDispatcher> | function to be called |
this
▸ 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.
void
▸ enableEventPropagation(enable): LogCurve
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();| Name | Type | Description |
|---|---|---|
enable | boolean | enable |
this
LogPointSet.enableEventPropagation
▸ execute(delegate): LogCurve
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");
});| Name | Type | Description |
|---|---|---|
delegate | (this: LogCurve) => void | Function to execute |
The result if any or this
▸ execute<T>(delegate): T
| Name |
|---|
T |
| Name | Type |
|---|---|
delegate | (this: LogCurve) => T |
T
▸ Protected filter(context): boolean
Filter node
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
boolean
flag filter flag ("true" to render node; "false" otherwise)
▸ getAnimationStyle(): AnimationStyle
Return animation style
animationStyle current animation style
▸ getAutoLimitsStrategy(): LogCurveLimitsStrategy
Return auto limits strategy. If it is null then default logic will be used depending on limits type
▸ getBarLineStyle(): LineStyle
Helper method to get value-bars line style
▸ getBaseName(): string
Returns the base name
string
The base name
▸ getBounds(): Rect
Return bound in the parent coordinates
▸ getClassName(): string
string
▸ getClipStyle(): ClipStyle
Gets the current clipping style
clipping style
▸ getContentsTransform(): Transformation
Retrieves the world transformation of the spatial
LogPointSet.getContentsTransform
▸ getCss(): CssStyle
Return CSS style
▸ getCssClass(): string
Returns css class name to be used to apply CSS style
string
the css class name
▸ getCssClasses(): string[]
Gets list of css class names which applied to this node
string[]
▸ getCssTransform(): string
Returns CSS transformation
string
▸ getDataLimits(fullLimits?): Rect
Return meaning data limits
| Name | Type | Description |
|---|---|---|
Optional fullLimits | boolean | default value is false |
▸ getDataRange(fromDepth, toDepth, transformation?): AbstractScaledData
Returns data range
| Name | Type | Description |
|---|---|---|
fromDepth | number | from depth |
toDepth | number | to depth |
Optional transformation | Transformation | transformation |
data range
▸ getDataSource(): LogAbstractData
Returns WellLog Data
▸ getDescription(): string
Gets the description
string
The description
▸ getDisplayMode(): string[]
Returns display mode
string[]
any combination of values: 'line', 'symbol', 'value', 'bar' or an empty array
▸ getDisplayUnit(): AbstractUnit
Returns display unit
▸ getDrawOutOfRangeValues(): boolean
Returns true if zero is a valid value in logarithmic mode
boolean
▸ getGapFillCutoffMode(): CutoffMode
Return cutoff mode
▸ getGapFillCutoffUnit(): AbstractUnit
Returns the unit of the cutoff used for removing NaN valued samples
The cutoff unit
▸ getGapFillCutoffValue(): number
Returns the value of the cutoff used for removing NaN valued samples
number
The cutoff value
▸ getGapUnit(): AbstractUnit
Returns the unit of the gap
The cutoff unit
▸ getGapValue(): number
Returns The maximum discontinuity allowed in depth or time
number
value
▸ getGradientLineStyle(): LogGradientStyle
Returns log gradient style
log gradient style
▸ getHeader(name): LogVisualHeader<Node>
Return the header registered by the name
| Name | Type | Description |
|---|---|---|
name | string | header name |
header
▸ getHeaders(): Record<string, LogVisualHeader<Node>>
Return an object that contains all headers registered with the visual
Record<string, LogVisualHeader<Node>>
headers
▸ getHideOverlappedValues(): boolean
Gets hide overlapped values flag
boolean
hide overlapped values
▸ getId(): string | number
Returns the associated identifier of the node
string | number
The node's id
▸ getInterpolationEdge(): InterpolationEdge
Returns edge values interpolation type
▸ getInterpolationType(): InterpolationType
Returns interpolation type
▸ Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>
Gets invalidate method
AttributeCallback<EventDispatcher>
method to invalidate this object
LogPointSet.getInvalidateMethod
▸ getLimitsType(): LimitsType
Returns limits type
▸ getLineStyle(): LineStyle
Returns line style
▸ getLocalTransform(): Transformation
Retrieves the transformation of bounds to parent
transform the local transform.
▸ getMarginsStyle(): SpaceStyle<string | number>
Return margins style
SpaceStyle<string | number>
▸ getMaxWraps(): number
Returns maximum count of the wraps
number
▸ getMaximumClippingLimit(): number
Returns maximum clipping limit
number
▸ getMaximumNormalizationLimit(): number
Returns maximum normalization limit
number
▸ getMicroPositionLeft(): number
Returns micro position left
number
LogPointSet.getMicroPositionLeft
▸ getMicroPositionRight(): number
Returns micro position right
number
LogPointSet.getMicroPositionRight
▸ Protected getMicroPositionTransformation(): Transformation
Returns micro position transformation
micro position transformation
LogPointSet.getMicroPositionTransformation
▸ getMinimumClippingLimit(): number
Returns minimum clipping limit
number
▸ getMinimumNormalizationLimit(): number
Returns minimum normalization limit
number
▸ getModelLimits(): Rect
Returns model limits
▸ getName(): string
Returns the node name
string
The node name
▸ getNearestSampleIndex(pt, maxDistance?, transformation?): number
Return nearest original sample index from data source by device point
| Name | Type | Description |
|---|---|---|
pt | Point | device point to find index of the sample |
Optional maxDistance | number | maximum distance in pixels from the current point |
Optional transformation | Transformation | transformation of curve to device. If it is not specified, getSceneTransform() is used. |
number
index of the sample. if data is not specified or sample is nof found it returns -1
▸ getNeatLogLimits(): boolean
Gets the value of centerOnZeroOnNegativeMin property
boolean
▸ getNullValueSymbol(): SymbolShape
Returns symbol to be used to draw markers for null value
▸ getOpacity(): number
Returns current node opacity
number
opacity
▸ getOpacityBlendMode(): BlendMode
Returns current node opacity
opacity blend mode
LogPointSet.getOpacityBlendMode
▸ getOptimizationBar(): boolean
Returns bars optimization flag
boolean
▸ getOptimizationCurve(): boolean
Returns curve optimization flag
boolean
▸ getOptimizationSymbol(): boolean
Returns symbol optimization flag
boolean
▸ getOptimizationValue(): boolean
Returns values optimization flag
boolean
▸ getParent(): Node
Return parent node
parent node
▸ getProperties(): OptionsOut
Gets all the properties pertaining to this object
▸ getProperty(name): any
Gets dynamic property by name. These properties can be used as a property bags
| Name | Type | Description |
|---|---|---|
name | string | property name |
any
▸ getPropertyKeys(): string[]
Returns known properties keys
string[]
▸ getReferenceCurve(): LogCurve | LogReferenceLine
Returns reference curve
reference curve
▸ getRenderingFilter(): IFilter
Return filter to be used for rendering and picking
current filter
LogPointSet.getRenderingFilter
▸ getResponsiveStyle(): ResponsiveStyle
Return responsive style
LogPointSet.getResponsiveStyle
▸ getRoot(): Node
Returns root node.
If node doesn't have parent then it returns itself.
the root node
▸ getScaleScrollStrategy(): Delegate
Gets scale scroll strategy
scale scroll strategy
LogPointSet.getScaleScrollStrategy
▸ getScaleType(): ScaleType
Returns current scale type.
▸ getScaledData(transformation?): AbstractScaledData
Returns scaled data
| Name | Type | Description |
|---|---|---|
Optional transformation | Transformation | transformation |
▸ getSceneTransform(): Transformation
Returns transformation from node to root scene
a transformation from node to root scene
▸ getSymbol(): SymbolShape
Returns symbol to be used to draw markers
▸ getSymbolDecimationDistance(): number
Returns symbol decimation distance
number
▸ getSymbolDecimationStep(): number
Returns symbol decimation step
number
▸ getSymbolFormatter(): SymbolFormatterCallback
Return symbol formatter
▸ getSymbolsGap(): Dimension
Returns symbols gap
▸ getSymbolsSkipIntersectionRatio(): number
Gets symbols' skip intersection ratio
number
▸ getTag(): any
Returns the object associated with the node by user.
any
The node's user-object
▸ getTextAnchorType(): AnchorType
Gets text anchor type
▸ getTextAutoAlignment(): boolean
Gets status if automatic text alignment is enabled for text values which intersect border of the track
boolean
enable enable automatic text alignment
▸ getTextAutoAlignmentOffset(): Point
Gets text offset from anchor for automatic text alignment
text offset for automatic text alignment
▸ getTextDecimationStep(): number
Returns text decimation step
number
▸ getTextReference(): TextReference
Gets sample's text reference type: 'track' or 'sample'
▸ getTextStyle(): TextStyle
Gets text style
▸ getTrack(): ITrack
Returns parent track if LogTrack
▸ getValue(depth): number
Returns interpolated value
| Name | Type | Description |
|---|---|---|
depth | number | depth |
number
▸ getValueDataLimits(): Range
Returns original data value limits
▸ getValueFormat(): NumberFormat
Returns formatter to format values
▸ getVisible(): boolean
Return visibility of the node
boolean
true if node is visible
▸ getWorldTransform(): Transformation
Retrieves the local transformation of the node which represents multiplication of parent to bounds and contents transformations.
▸ getWrapLineStyleHandler(): WrapLineStyleHandlerCallback
Returns wrap line style handler
wrap style handler
▸ getZIndex(): number
Returns node z-index (null if not set)
number
▸ hasCssClass(cssClass): boolean
Check if node has specified css class
| Name | Type | Description |
|---|---|---|
cssClass | string | css class name |
boolean
▸ hasEventListener(type, callback?): boolean
Check if a list of event listeners for this type contains this listener
| Name | Type | Description |
|---|---|---|
type | string | type of event or property |
Optional callback | Function | to be called, if null, check if any callback is registered |
boolean
▸ hitTest(area, radius?): number[]
Hit test symbols of the curve in the device coordinates
| Name | Type | Description |
|---|---|---|
area | Point | Rect | model area or position |
Optional radius | number | radius of selection |
number[]
a collection of selected symbols indices
▸ invalidate(bounds?, force?): LogCurve
Invalidate area of the shape. This method invalidates parent by default. invalidated from parent to root node.
| Name | Type | Description |
|---|---|---|
Optional bounds | Rect | bounds of the invalid rectangle in the inner node coordinates |
Optional force | boolean | true 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 |
this
▸ invalidateParent(bounds?, force?): LogCurve
Invalidate bounds
| Name | Type | Description |
|---|---|---|
Optional bounds | Rect | model bounds |
Optional force | boolean | force if null is provided then cache (if any will be completely refreshed) otherwise only specified rect or node.bounds will be refreshed |
this
▸ isAutoBounds(): boolean
Enable automatic bounds. If auto bounds is enabled then it equals to parent model limits
boolean
▸ isBarsRightAligned(): boolean
Returns true if value-bars right align is true
boolean
▸ isClippingEnabled(): boolean
Returns true if clipping is enabled
boolean
▸ isCustomLimits(): boolean
Returns true if limits are custom
boolean
▸ isDisposed(): boolean
Returns whether this object has been disposed
boolean
▸ isEventPropagationEnabled(): boolean
Return true if event propagation is enabled from child to parent
boolean
LogPointSet.isEventPropagationEnabled
▸ isHorizontalFlip(): boolean
Return true if the representation is flipped horizontally
boolean
horizontal flip
▸ isNormalizationEnabled(): boolean
Returns true if normalization is enabled
boolean
▸ isNotificationEnabled(): boolean
return state of notification
boolean
current notification state
LogPointSet.isNotificationEnabled
▸ isSelectable(): boolean
Returns true if node can be picked/selected.
boolean
The selectable flag
▸ isSilent(): boolean
Return true if the event dispatcher doesn't notify any events
boolean
▸ isVisibleBar(): boolean
Returns true if value-bars are visible
boolean
▸ isVisibleLine(): boolean
Returns true if line is visible (convenience method)
boolean
▸ isVisibleNullValueSymbol(): boolean
Returns true if symbol to be used to draw markers for null value is visible
boolean
▸ isVisibleSymbol(): boolean
Returns true if symbols are visible (convenience method)
boolean
▸ isVisibleValue(): boolean
Returns true if values are visible (convenience method)
boolean
▸ isWrapping(): boolean
Returns whether wrapping is enabled
boolean
▸ notify<E>(type, source, args?): LogCurve
Notify listeners of the Node
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | type of event |
source | LogCurve | source who called the event |
Optional args | EventMap[E] | event arguments |
this
▸ off<E>(type?, callback?): LogCurve
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.
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
Optional type | E | type of the event |
Optional callback | (eventType: E, sender: LogCurve, args: EventMap[E]) => void | function to be called |
this
▸ on<E>(type, callback): LogCurve
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.
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | type of event or property |
callback | (eventType: E, sender: LogCurve, args: EventMap[E]) => void | to be called |
this
▸ Protected onHeaderSet(name, headerInstance, silent?): void
This method is called if header is set. Send event Events.HeaderSet
| Name | Type | Description |
|---|---|---|
name | string | of the container. The 'header' and 'footer' is used. |
headerInstance | LogVisualHeader<Node> | the header instance |
Optional silent | boolean | silent node to avoid sending events that header is created |
void
▸ Protected onMicroPositionChanged(): LogCurve
calls when microPosition has been changed
this
LogPointSet.onMicroPositionChanged
▸ Protected onParentChanged(node): LogCurve
This method is called when parent changes. Do not call it directly.
| Name | Type | Description |
|---|---|---|
node | Node | node to change parent |
this
▸ Protected onVisibilityChanged(): void
This method is called if visibility is changed. Send event Events.VisibilityChanged
void
LogPointSet.onVisibilityChanged
▸ Protected postRendering(context): void
To be called after rendering. Call this method if you override method render
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
void
▸ Protected preRendering(context): void
Occurs before rendering this method sets clipping by default. Call this method if you override method render
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
void
▸ registerAnimationStyle(root): void
Register animation style.
| Name | Type | Description |
|---|---|---|
root | Node | root node for node |
void
LogPointSet.registerAnimationStyle
▸ removeCssClass(cssclass): LogCurve
Removes css class from node
| Name | Type | Description |
|---|---|---|
cssclass | string | string[] | css class name('s) |
this
▸ removeInvalidateHandler(handler): LogCurve
Remove invalidate handler
Deprecated
since 4.0, use Node.off instead
| Name | Type | Description |
|---|---|---|
handler | Function | handler to be notified about invalidation |
this
LogPointSet.removeInvalidateHandler
▸ render(context): void
Renders node
| Name | Type | Description |
|---|---|---|
context | RenderingContext | The rendering context to be used to draw the node |
void
▸ renderAsync(context, callback): void
Render node in asynchronous mode. Default implementation creates call method "render" inside
| Name | Type | Description |
|---|---|---|
context | RenderingContext | The rendering context to be used to draw the node |
callback | () => void | callback function |
void
▸ Protected renderContent(context): void
Renders node content
| Name | Type | Description |
|---|---|---|
context | RenderingContext | The rendering context to be used to draw the node |
void
▸ resetClippingLimits(): LogCurve
This method resets clipping limits
this
▸ resetNormalizationLimits(): LogCurve
This method resets custom normalization limits
this
▸ rotate(theta, x, y): LogCurve
Rotate bounds around a given coordinate
| Name | Type | Description |
|---|---|---|
theta | number | angle to rotate node, in radians |
x | number | x coordinate to rotate around |
y | number | y coordinate to rotate around |
this
▸ scale(xx, yy): LogCurve
Scale node
| Name | Type | Description |
|---|---|---|
xx | number | x scale factor |
yy | number | y scale factor |
this
▸ setAnimationStyle(animationStyle): LogCurve
Sets animation style
| Name | Type | Description |
|---|---|---|
animationStyle | Type | animation style |
▸ setAutoBounds(enable): LogCurve
Enable or disable auto bounds If auto bounds is enabled then it equals to parent model limits
| Name | Type | Description |
|---|---|---|
enable | boolean | Enable or disable auto bounds |
this
▸ setAutoLimitsStrategy(strategy): LogCurve
Sets auto limits strategy
| Name | Type | Description |
|---|---|---|
strategy | LogCurveLimitsStrategy | strategy to calculate auto limits |
this
▸ setBarLineStyle(lineStyle, merge?): LogCurve
Helper method to set value-bars line style.
| Name | Type | Description |
|---|---|---|
lineStyle | Type | line style or options |
Optional merge | boolean | true if you want to merge lineStyle with existing attribute, false by default |
this
▸ setBarsRightAligned(enable): LogCurve
Helper method to set alignment of value-bars to the right
| Name | Type | Description |
|---|---|---|
enable | boolean | defines if value-bars right align is true or false |
this
▸ setBaseName(name): LogCurve
Sets base name of the visual
| Name | Type | Description |
|---|---|---|
name | string | The base name |
this
▸ setBounds(bounds): LogCurve
Sets bounds of the point set in the parent coordinates false
| Name | Type | Description |
|---|---|---|
bounds | Rect | bounds of the point set |
this
▸ setClipStyle(style): LogCurve
Sets a new clipping style
| Name | Type | Description |
|---|---|---|
style | GraphicsPath | ClipStyle | Options | a new clipping style |
this
▸ setClippingLimits(minValue, maxValue, clippingType?): LogCurve
Sets Clipping limits of the data values. The data limits are used by default.
| Name | Type | Description |
|---|---|---|
minValue | number | This provides a way to specify min limit for clipping. |
maxValue | number | This provides a way to specify max limit for clipping. |
Optional clippingType | ClippingType | optional clipping type |
this
▸ setCss(style, merge?): LogCurve
Sets CSS style. This style will be applied for all inserted elements
| Name | Type | Description |
|---|---|---|
style | Type | CSS style to be applied to inserted elements |
Optional merge | boolean | merge flag |
this
▸ setCssClass(name): LogCurve
Sets css class name of the node to be used to apply CSS style
| Name | Type | Description |
|---|---|---|
name | string | css class name of the node |
this
▸ setCssTransform(transform): LogCurve
Set CSS transformation
| Name | Type | Description |
|---|---|---|
transform | string | Transformation | transformation css transformation instruction or Transformation instance |
this
▸ setData(data?, resetNormalizationLimits?, autoUpdate?): LogCurve
Sets data source to be displayed.
| Name | Type | Description |
|---|---|---|
Optional data | Data | data to display |
Optional resetNormalizationLimits | boolean | resets custom normalization limits and take it from data. By default it is true |
Optional autoUpdate | boolean | automatic update from data source. If it sets to true then curve listens on data changes from data source. |
▸ setDescription(description): LogCurve
Sets the description
| Name | Type | Description |
|---|---|---|
description | string | The visual description |
this
▸ setDisplayMode(displayMode): LogCurve
Sets display mode
| Name | Type | Description |
|---|---|---|
displayMode | string[] | display mode; an array with a combination of values: 'line', 'symbol', 'both', 'value', 'bar' or 'none' |
this
▸ setDisplayUnit(unit): LogCurve
Sets display unit
| Name | Type | Description |
|---|---|---|
unit | string | AbstractUnit | display unit like feet, meters etc |
this
▸ setDrawOutOfRangeValues(outOfRangeValues): LogCurve
Set state of rendering for out of range values
| Name | Type | Description |
|---|---|---|
outOfRangeValues | boolean | value to set |
this
▸ setGapFillCutoffMode(cutoffMode): LogCurve
Set a flag how to process NaN samples in cutoff range
| Name | Type | Description |
|---|---|---|
cutoffMode | CutoffMode | mode, by default is CutoffMode.RemoveSample |
this
▸ setGapFillCutoffUnit(unit): LogCurve
Sets the unit of the cutoff used for removing NaN valued samples. Gaps will only be 'filled' when the cutoff value is non zero and the unit is convertible to the index unit. If unit is not specified then curve index unit is used. if a depth or time interval is less than specified cutoff value then interval is connected and NaN values between are removed.
| Name | Type | Description |
|---|---|---|
unit | string | AbstractUnit | The unit or unit symbol to use for the gap fill cutoff |
this
▸ setGapFillCutoffValue(cutoff, merge?): LogCurve
Sets the value of the cutoff used for removing NaN valued samples. Gaps will only be 'filled' when the cutoff value is non zero and the unit is convertible to the index unit.
| Name | Type | Description |
|---|---|---|
cutoff | string | number | The cutoff value. When non zero and a matching unit is set |
Optional merge | boolean | true if you want to convert new value to existing unit |
this
▸ setGapUnit(unit): LogCurve
Sets the unit of the gap to show discontinuity in sample when the cutoff value is non-zero and the unit is convertible to the index unit. If unit is not specified then curve index unit is used. if a depth or time interval is less than specified cutoff value then interval is connected and NaN values between are removed.
| Name | Type | Description |
|---|---|---|
unit | string | AbstractUnit | The unit |
this
▸ setGapValue(value, merge?): LogCurve
Set the value of the gap. Value will be used to disconnect the sample if the distance between two samples in depth or time is more than specified value
| Name | Type | Description |
|---|---|---|
value | string | number | The maximum discontinuity allowed in depth or time |
Optional merge | boolean | true if you want to convert new value to existing unit |
this
▸ setGradientLineStyle(gradientLineStyle): LogCurve
Set log gradient style
| Name | Type | Description |
|---|---|---|
gradientLineStyle | LogGradientStyle | style |
this
▸ setHeader(name, headerInstance, silent?): LogCurve
Sets header instance with specified name. This name usually defines header or footer.
Throws
if header name is null
| Name | Type | Description |
|---|---|---|
name | string | of the container. The 'header' and 'footer' is used. |
headerInstance | LogVisualHeader<Node> | the header instance |
Optional silent | boolean | silent node to avoid sending events that header is created |
this
▸ setHideOverlappedValues(enable): LogCurve
Sets hide overlapped values
| Name | Type | Description |
|---|---|---|
enable | boolean | hide overlapped values |
this
▸ setHorizontalFlip(enable): LogCurve
Set horizontal flip of the representation
| Name | Type | Description |
|---|---|---|
enable | boolean | enable flip |
this
▸ setId(id): LogCurve
Allows the user to associate any identifier
| Name | Type | Description |
|---|---|---|
id | string | number | object id |
this
▸ setInterpolationEdge(interpolationEdge): LogCurve
Set edge values interpolation type in case of properties.limitstype==LimitsType.Manual
| Name | Type | Description |
|---|---|---|
interpolationEdge | InterpolationEdge | edge values interpolation type |
this
▸ setInterpolationType(interpolationType): LogCurve
Sets interpolation type
| Name | Type | Description |
|---|---|---|
interpolationType | InterpolationType | interpolation type |
this
▸ setLineStyle(lineStyle, merge?): LogCurve
Sets line style
| Name | Type | Description |
|---|---|---|
lineStyle | Type | The style in which the line is displayed object can be in format of constructor of LineStyle |
Optional merge | boolean | true if you want to merge lineStyle with existing attribute, false by default |
this
▸ setLocalTransform(localTransform, force?): LogCurve
Sets local transformation to be used to transform from local to parent coordinate
| Name | Type | Description |
|---|---|---|
localTransform | Transformation | local transformation for this node |
Optional force | boolean | boolean flag to force update event if transformations are equal, false by default |
this
▸ setMarginsStyle(margins, merge?): LogCurve
Sets margins style
| Name | Type | Description |
|---|---|---|
margins | Type<string | number> | margins style |
Optional merge | boolean | true if you want to merge marginsStyle with existing attribute, false by default |
this
▸ setMaxWraps(count): LogCurve
Sets maximum count of wraps for wrap interpolation
Throws
if count is less then zero
| Name | Type | Description |
|---|---|---|
count | number | count of wraps |
this
▸ setMicroPosition(left, right): LogCurve
Sets micro position (0 - 1). It allows application code to display the visual in a subarea of the track.
By default log visuals uses all space of the trace in the horizontal direction, but micro position allows to place log visual in the specified position of the track in horizontal direction. See example below
Example
// The following code places curve 20% from left and 20% from right.
curve.setMicroPosition(0.2,0.8);| Name | Type | Description |
|---|---|---|
left | number | left position |
right | number | right position |
this
▸ setName(name): LogCurve
Sets name of the node
| Name | Type | Description |
|---|---|---|
name | string | The node name |
this
▸ setNeatLogLimits(centerOnZeroOnNegativeMin): LogCurve
Sets neat log limits
| Name | Type | Description |
|---|---|---|
centerOnZeroOnNegativeMin | boolean | center the limits |
this
▸ setNormalizationLimits(minValue, maxValue?, interpolationEdge?): LogCurve
Sets normalization limits of the data values. The data limits are used by default.
Example
curve.setNormalizationLimits(100, 130); // It means that each sample value that is less than 100 should have value 100, Same for 130| Name | Type | Description |
|---|---|---|
minValue | number | Range | min value which can be specified for normalization |
Optional maxValue | number | max value which can be specified for normalization |
Optional interpolationEdge | InterpolationEdge | edge values interpolation type, edge interpolation type does not change if it was not specified |
this
▸ setNotification(notify, force?): LogCurve
set notification state
| Name | Type | Description |
|---|---|---|
notify | boolean | flag set to invalidate parent or not |
Optional force | boolean | true if parent should be invalidated immediately |
this
▸ setNullValueSymbol(symbol): LogCurve
Sets symbol to be used to render markers for null value
| Name | Type | Description |
|---|---|---|
symbol | SymbolShape | symbol used at the start and end of the gap(null value) |
this
▸ setOpacity(opacity, blendMode?): LogCurve
Sets node opacity
| Name | Type | Description |
|---|---|---|
opacity | number | node opacity from 0 to 1 |
Optional blendMode | BlendMode | opacity blend mode. If it is normal, opacity will be replaced. |
this
▸ setOptimizationBar(needOptimize?): LogCurve
Turns on/off optimization for bars
| Name | Type | Description |
|---|---|---|
Optional needOptimize | boolean | Is optimization for bars on |
this
▸ setOptimizationCurve(needOptimize?): LogCurve
Turns on/off optimization for curve
| Name | Type | Description |
|---|---|---|
Optional needOptimize | boolean | Is optimization for curve on |
this
▸ setOptimizationSymbol(needOptimize?): LogCurve
Turns on/off optimization for symbols
| Name | Type | Description |
|---|---|---|
Optional needOptimize | boolean | Is optimization for symbols on |
this
▸ setOptimizationType(optimizationType): LogCurve
Sets optimization type
| Name | Type | Description |
|---|---|---|
optimizationType | OptimizationType | optimization type which used with current curve |
this
▸ setOptimizationValue(needOptimize?): LogCurve
Turns on/off optimization for values
| Name | Type | Description |
|---|---|---|
Optional needOptimize | boolean | Is optimization for values on |
this
▸ setProperties(properties?): LogCurve
Sets all the properties pertaining to this object
| Name | Type | Description |
|---|---|---|
Optional properties | Options | An object containing the properties to set |
this
▸ setProperty(name, value): LogCurve
Sets dynamic property by name
| Name | Type | Description |
|---|---|---|
name | string | property name |
value | any | property value |
this
▸ setReferenceCurve(referenceCurve): LogCurve
Set reference curve
| Name | Type | Description |
|---|---|---|
referenceCurve | LogCurve | LogReferenceLine | reference curve |
this
▸ setRenderingFilter(filter): LogCurve
Sets filter to be applied before rendering and picking
| Name | Type | Description |
|---|---|---|
filter | IFilter | filter to set |
this
LogPointSet.setRenderingFilter
▸ setResponsiveStyle(style): LogCurve
Sets responsive style.
| Name | Type | Description |
|---|---|---|
style | Options | ResponsiveStyle | responsive style |
this
LogPointSet.setResponsiveStyle
▸ setScaleScrollStrategy(strategy?): LogCurve
Sets scale scroll strategy
| Name | Type | Description |
|---|---|---|
Optional strategy | Delegate | scale scroll strategy |
this
LogPointSet.setScaleScrollStrategy
▸ setScaleType(type): LogCurve
Sets scale type. This applies function to data values.
| Name | Type | Description |
|---|---|---|
type | ScaleType | scale type |
this
▸ setSelectable(selectable): LogCurve
Allows to select node. If node is not selectable then child node is not selectable.
| Name | Type | Description |
|---|---|---|
selectable | boolean | flag to allow node selection |
this
▸ setSilent(bool): LogCurve
Set silent mode
| Name | Type | Description |
|---|---|---|
bool | boolean | flag to enable silent mode |
this
▸ setSymbol(symbol): LogCurve
Sets symbol to be used to render markers
| Name | Type | Description |
|---|---|---|
symbol | SymbolShape | Options | symbols to be used for markers |
this
▸ setSymbolDecimationDistance(distance): LogCurve
Sets symbol decimation distance
| Name | Type | Description |
|---|---|---|
distance | number | minimum distance between symbols' centers in device coordinates |
this
▸ setSymbolDecimationStep(step): LogCurve
Sets symbol decimation step
| Name | Type | Description |
|---|---|---|
step | number | range to skip the symbols |
this
▸ setSymbolFormatter(symbolFormatter): LogCurve
Set symbol formatter
Example
curve.setSymbolFormatter(function (symbol, sample) {
symbol.setPainter(sample.getOriginalValue() > 70 ? CirclePainter : DiamondPainter);
if (sample.getOriginalValue() < 60) {
symbol.getFillStyle().setColor('red');
} else if (sample.getOriginalValue() > 80) {
symbol.getFillStyle().setColor('green');
} else {
symbol.getFillStyle().setColor('blue');
}
return symbol;
});| Name | Type | Description |
|---|---|---|
symbolFormatter | SymbolFormatterCallback | formatter to be used to adjust symbol |
▸ setSymbolOptimizationType(optimizationType): LogCurve
Sets optimization type
| Name | Type | Description |
|---|---|---|
optimizationType | SymbolOptimizationType | optimization type which used with current symbols |
this
▸ setSymbolSkipIntersectionRatio(symbolSkipIntersectionRatio): LogCurve
Sets symbol's skip intersection ratio
| Name | Type | Description |
|---|---|---|
symbolSkipIntersectionRatio | number | value to set |
▸ setSymbolsGap(symbolsGap): LogCurve
Set symbol gap
| Name | Type | Description |
|---|---|---|
symbolsGap | number | Dimension | symbol gap |
this
▸ setTag(tag): LogCurve
Allows the user to associate any arbitrary object with the node.
| Name | Type | Description |
|---|---|---|
tag | any | The object to be associated with the node. |
this
▸ setTextAnchorType(anchorType): LogCurve
Sets text anchor type
Throws
if anchorType value is not valid
| Name | Type | Description |
|---|---|---|
anchorType | AnchorType | position to place the anchor |
▸ setTextAutoAlignment(enabled): LogCurve
Enable / disable automatic text alignment for text values, which intersects border of the track If it is enabled text is shifted inside the track. By default it is false.
| Name | Type | Description |
|---|---|---|
enabled | boolean | enable automatic text alignment |
this
▸ setTextAutoAlignmentOffset(offset): LogCurve
Set text offset from anchor for automatic text alignment
this
▸ setTextDecimationStep(step): LogCurve
Sets text decimation step
| Name | Type | Description |
|---|---|---|
step | number | range to skip while decimating |
▸ setTextReference(textReference): LogCurve
Sets text reference. Accepted values: 'curve', 'track' or 'sample'.
| Name | Type | Description |
|---|---|---|
textReference | TextReference | sets textreference 'curve', 'track' or 'sample'. |
this
▸ setTextStyle(textStyle, merge?): LogCurve
Sets text style
| Name | Type | Description |
|---|---|---|
textStyle | Type | a new shape text style |
Optional merge | boolean | true if you want to merge textStyle with existing attribute, false by default |
▸ setValueFormat(format): LogCurve
Sets formatter to be used to format values
| Name | Type | Description |
|---|---|---|
format | Options | DecimalFormat | number formatter |
this
▸ setVisible(value): LogCurve
Sets visibility of the node. Send event Events.VisibilityChanged
| Name | Type | Description |
|---|---|---|
value | boolean | flag specifying visibility of the node |
this
▸ setVisibleBar(enable): LogCurve
Helper method to set up value-bars visibility.
| Name | Type | Description |
|---|---|---|
enable | boolean | value-bars visibility on or off |
this
▸ setVisibleLine(enable): LogCurve
Helper method to setup line visibility
| Name | Type | Description |
|---|---|---|
enable | boolean | visibility of the line |
this
▸ setVisibleNullValueSymbol(visible): LogCurve
Display or hide null values symbols
| Name | Type | Description |
|---|---|---|
visible | boolean | visible null value symbols |
this
▸ setVisibleSymbol(enable): LogCurve
Helper method to set up symbols visibility
| Name | Type | Description |
|---|---|---|
enable | boolean | symbols visibility on or off |
this
▸ setVisibleValue(enable): LogCurve
Helper method to set up values visibility.
| Name | Type | Description |
|---|---|---|
enable | boolean | values visibility on or off |
this
▸ setWrapLineStyleHandler(wrapLineStyleHandler): LogCurve
Set wrap line style handler. Custom colors can be set for different wrap levels, please refer to example below.
Example
import {LineStyle} from '@int/geotoolkit/attributes/LineStyle';
curve
.setClippingLimits(60, 90)
.setWrapping(true)
.setMaxWraps(1)
.setWrapLineStyleHandler((sender, wrapLevel) => {
if (wrapLevel < 0) {
return new LineStyle('blue');
}
if (wrapLevel > 0) {
return new LineStyle('red');
}
return null;
}));| Name | Type | Description |
|---|---|---|
wrapLineStyleHandler | WrapLineStyleHandlerCallback | handler should return LineStyle |
this
▸ setWrapping(wrapping): LogCurve
Sets whether wrapping is enabled.
Example
import {LogCurve} from '@int/geotoolkit/welllog/LogCurve';
// if you enable wrapping, you also need to specify ClippingLimits
const logCurve = new LogCurve()
.setWrapping(true)
.setClippingLimits(0, 100);| Name | Type | Description |
|---|---|---|
wrapping | boolean | wrapping on or off, based on if you want to see the clipped part of the track or not |
this
▸ setZIndex(value): LogCurve
Sets z-index for node (set null for default)
| Name | Type | Description |
|---|---|---|
value | number | index determining node z-position |
this
▸ shear(shx, shy): LogCurve
Shear this node's bounds
| Name | Type | Description |
|---|---|---|
shx | number | x-axis shear |
shy | number | y-axis shear |
this
▸ toString(): string
Returns a string representation of this object (generally the classname)
string
A string representation
▸ translate(tx, ty): LogCurve
Translate bounds
| Name | Type | Description |
|---|---|---|
tx | number | x translation |
ty | number | y translation |
this
▸ unregisterAnimationStyle(root): void
Unregister animation style.
| Name | Type | Description |
|---|---|---|
root | Node | root node for node |
void
LogPointSet.unregisterAnimationStyle
▸ updateFromData(rect?, args?, silent?): LogCurve
Synchronize state from data
| Name | Type | Description |
|---|---|---|
Optional rect | Rect | optional area to invalidate |
Optional args | LogDataEvent | event arguments |
Optional silent | boolean | silent default is false, set it to true if do now want to rise notification |
▸ updateSceneTransformation(): LogCurve
Update scene transformation
this
LogPointSet.updateSceneTransformation
▸ updateState(regions?, changes?): LogCurve
Update state
| Name | Type | Description |
|---|---|---|
Optional regions | Rect[] | optional array to return invalid rectangles |
Optional changes | StateChanges | optional parameter to specify a reason of changes |
this
▸ Protected updateTimeStamp(): LogCurve
Update time stamp to indicate that Node or Children has been changed.
this
▸ Static convertOptimizationTypeValue(optimizationType): OptimizationType
Converts optimization type value
| Name | Type | Description |
|---|---|---|
optimizationType | OptimizationType | optimization type |
▸ Static enableSceneGraphNotification(enabled): void
Enable / disable all notifications
| Name | Type | Description |
|---|---|---|
enabled | boolean | sets if this object sends notifications |
void
LogPointSet.enableSceneGraphNotification
▸ Static findParent<T>(node, classType, filter?): InstanceType<T>
Find root of the node with specified type
| Name | Type |
|---|---|
T | extends Constructor<any> |
| Name | Type | Description |
|---|---|---|
node | Node | node to start search |
classType | T | type of the class to search for |
Optional filter | (node: Node) => boolean | additional filter to apply |
InstanceType<T>
▸ Static findParent(node, classType, filter?): Node
Find root of the node with specified type
| Name | Type | Description |
|---|---|---|
node | Node | node to start search |
classType | string | interface name to search for |
Optional filter | (node: Node) => boolean | additional filter to apply |
▸ Static getClassName(): string
string
▸ Static isSceneGraphNotificationEnabled(): boolean
Return status of the global notification for all nodes.
boolean