API / geotoolkit / welllog / header / LogLithologyHeader / LogLithologyHeader
header.LogLithologyHeader.LogLithologyHeader
Define visual to render curve header
↳
LogLithologyHeader
Constructors
Methods
Css Properties
| Name | Type | Description |
|---|---|---|
autobounds | boolean | Automatic calculation of header size on or off |
borderlinestyle | string | Border line style |
borderlinestyle | LineStyle | Border line style |
borderlinestyle-color | string | Color in CSS form |
borderlinestyle-fill | string | Optional fill style to be used to fill lines generated with this style |
borderlinestyle-fill | FillStyle | Optional fill style to be used to fill lines generated with this style |
borderlinestyle-fill-color | string | Color in CSS form |
borderlinestyle-fill-evenoddmode | boolean | Even-odd fill mode |
borderlinestyle-fill-fillpattern | Pattern | Pattern |
borderlinestyle-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 |
borderlinestyle-fill-fillpattern-patternname | string | Name of this pattern for indexing |
borderlinestyle-fill-fillpattern-scalable | boolean | Flag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported) |
borderlinestyle-fill-foreground | string | Foreground color |
borderlinestyle-fill-pattern | Pattern | Pattern |
borderlinestyle-linecap | CapStyle | The line cap style |
borderlinestyle-linedashoffset | number | Line dash offset of dashed line |
borderlinestyle-linejoin | JoinStyle | The line join style |
borderlinestyle-pixelsnapmode | boolean | Pixel Snap Mode, default( |
borderlinestyle-scalable | boolean | True if width should depend on transformation |
borderlinestyle-unit | string | Optional unit for the width |
borderlinestyle-width | number | string | The line thickness |
bounds | Rect | Bounds of the curve in the parent coordinates |
bounds-height | number | Height |
bounds-readonly | boolean | Readonly |
bounds-width | number | Width |
bounds-x | number | Left |
bounds-y | number | Top |
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 |
depth | number | Depth |
displaymode | string | Display mode |
displaystring | string | Display string |
displayvaluetextstyle | string | Display value textstyle |
displayvaluetextstyle | TextStyle | Display value textstyle |
displayvaluetextstyle-alignment | AlignmentStyle | Alignment |
displayvaluetextstyle-autosize | boolean | Auto font size on high definition display |
displayvaluetextstyle-background | string | Background style |
displayvaluetextstyle-background | FillStyle | Background style |
displayvaluetextstyle-baseline | BaseLineStyle | Base line |
displayvaluetextstyle-color | string | Color in CSS form |
displayvaluetextstyle-fill | FillStyle | Text fill style |
displayvaluetextstyle-font | string | Font see |
displayvaluetextstyle-fonturl | string | The place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword |
displayvaluetextstyle-lineheight | string | number | Line height |
displayvaluetextstyle-multiline | boolean | Allow multi-line text |
displayvaluetextstyle-outline | string | Outline style |
displayvaluetextstyle-outline | LineStyle | Outline style |
displayvaluetextstyle-overflowwrap | OverflowWrapStyle | Overflow wrap |
displayvaluetextstyle-strikethrough | string | Strikethrough style |
displayvaluetextstyle-strikethrough | LineStyle | Strikethrough style |
displayvaluetextstyle-textoverflow | TextOverflowStyle | Text overflow |
displayvaluetextstyle-underline | string | Underline style |
displayvaluetextstyle-underline | LineStyle | Underline style |
displayvaluetextstyle-underlineoffset | string | number | Underline offset distance |
displayvaluetextstyle-whitespace | WhiteSpaceStyle | White space |
displayvaluetextstyle-wordbreak | WordBreakStyle | Word break |
fillstyle | string | The fill style |
fillstyle | FillStyle | The fill style |
flexbox | FlexBoxOptions | Flexbox layout options |
flexbox-enabled | boolean | Enable/disable flexbox layout options |
flexbox-margin | number | string | Flexbox item margins |
headertype | HeaderType | Enum of header type |
horizontalflip | boolean | Flip horizontal from right to left |
id | string | number | Id of the node, its a unique identifier |
ispointingup | boolean | Defines whether the text is always pointing up |
layoutstyle | LayoutStyle | Layoutstyle |
layoutstyle-constraint | SizeConstraint | Layout constrains |
layoutstyle-flexgrow | number | Number specifying how much the item will grow relative to the rest of the items inside the same container |
layoutstyle-flexshrink | number | Number specifying how much the item will shrink relative to the rest of the items inside the same container |
layoutstyle-float | string | Float position |
layoutstyle-position | string | Layout position |
layoutstyle-size | number | string | Layout size |
linestyle | string | The line style |
linestyle | LineStyle | The line style |
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 |
modellimits | Rect | Desired model Limits |
name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
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 |
padding | number | string | It has properties for specifying the padding for each side |
scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
scalescrollstrategy-enabled | boolean | Enable flag |
selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
symbol | SymbolShape | Symbol to set |
symbol-alignment | AnchorType | Alignment according to the anchor point |
symbol-alignment | AnchorType | Anchor type of symbol |
symbol-ax | number | Anchor x position |
symbol-ay | number | Anchor y position |
symbol-cache | boolean | Set it to true if you want to cache complex geometry to raster |
symbol-clipstyle | ClipStyle | Clipping style |
symbol-clipstyle | GraphicsPath | Clipping style |
symbol-cssclass | string | The css class name of this node |
symbol-csscursor | string | CSS cursor associated with node |
symbol-cssstyle | string | CSS style to be applied to inserted elements |
symbol-fillstyle | string | Style applied on fill |
symbol-fillstyle | FillStyle | Style applied on fill |
symbol-height | number | Shape height |
symbol-id | string | number | Id of the node, its a unique identifier |
symbol-ispointingup | boolean | Defines whether the shape is always pointing up |
symbol-layoutstyle | LayoutStyle | Layout style to specify how to lay out shape |
symbol-linestyle | string | Style applied on outline |
symbol-linestyle | LineStyle | Style applied on outline |
symbol-localtransform | Transformation | Local transformation |
symbol-margins | number | string | It has properties for specifying the margins for each side |
symbol-maxdimension | Dimension | Maximum size for rendering |
symbol-maxdimension-height | number | Height of dimension |
symbol-maxdimension-width | number | Width of dimension or properties |
symbol-mindimension | Dimension | Minimum size for rendering |
symbol-name | string | Name of the node. It is often used for debugging purposes or to simplify queries |
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 |
symbol-opacityblendmode | BlendMode | Node opacity mode to blend it |
symbol-painter | string | A function with has parameters: symbol, box, context |
symbol-painterproperties | any | Symbol's painter's properties |
symbol-preserveaspectratio | boolean | Preserve aspect ratio of the anchored shape |
symbol-preservereadingorientation | boolean | Preserve reading orientation for local transform |
symbol-preserverightangle | boolean | Preserve right angle for local transformation |
symbol-rotationangle | number | Rotation angle at anchor |
symbol-scalescrollstrategy | ScaleScrollStrategy | Scale scroll strategy |
symbol-selectable | boolean | Selectable node, a boolean to determine if selection should consider this node |
symbol-sizeisindevicespace | boolean | Is coordinate in device space |
symbol-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 |
symbol-transform | string | Additional CSS transformation applied to node or 'none' |
symbol-transform | Transformation | Additional CSS transformation applied to node or 'none' |
symbol-useminmaxdimensions | boolean | Use the min max dimensions to limit visual size |
symbol-visible | boolean | Visibility of the node, a boolean to determine if the node should be rendered or not |
symbol-width | number | Shape width |
symbol-z-index | number | Define node z-index |
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 |
textstyle | string | The text style |
textstyle | TextStyle | The text style |
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 |
z-index | number | Define node z-index |
Constructors
• new LogLithologyHeader(options?)
| Name | Type | Description |
|---|---|---|
Optional options | LogLithology | Options | visual for the header or properties object |
LogVisualHeader<LogLithology&gt;.constructor
Methods
▸ addCssClass(cssclass): LogLithologyHeader
Adds new css class to node
| Name | Type | Description |
|---|---|---|
cssclass | string | string[] | css class name('s) |
▸ addInvalidateHandler(handler): LogLithologyHeader
Add invalidate handler
Deprecated
since 4.0, use Node.on instead
| Name | Type | Description |
|---|---|---|
handler | Function | handler to be notified about invalidation |
this
LogVisualHeader.addInvalidateHandler
▸ Protected applyOpacity(context): LogLithologyHeader
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
LogVisualHeader.applyResponsiveStyle
▸ Protected calculateDesiredHeight(): number
Get header desired height
number
header desired height
LogVisualHeader.calculateDesiredHeight
▸ checkCollision(context): boolean
Check culling Returns true if object is inside of renderable area
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
boolean
LogVisualHeader.checkCollision
▸ checkTextSize(context, text, maxLen): string
Returns biggest text in specified width
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
text | string | Text to calculate the size for |
maxLen | number | max length available for the text |
string
▸ clone(): LogLithologyHeader
All subclasses should override copyConstructor or provide custom implementation for this method
clone
▸ connectStyle(style, type, callback): LogLithologyHeader
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
▸ Protected copyConstructor(src, deepCopy?): LogLithologyHeader
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 | LogLithologyHeader | Source to copy from |
Optional deepCopy | boolean | deep copy |
this
LogVisualHeader.copyConstructor
▸ disconnectStyle(style, type, callback): LogLithologyHeader
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
LogVisualHeader.disconnectStyle
▸ dispose(): void
Dispose node. Clear all listeners and disconnect style to avoid memory leaks
void
▸ drawBorder(context, borderLineStyle?, modelLimits?): LogLithologyHeader
Stroke border with specified
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
Optional borderLineStyle | LineStyle | the LineStyle for the border |
Optional modelLimits | Rect | the border bounds |
▸ Protected drawRoundedBox(context, bounds, options?): LogLithologyHeader
| Name | Type |
|---|---|
context | RenderingContext |
bounds | Rect |
Optional options | Object |
Optional options.fillstyle | FillStyle |
Optional options.linestyle | LineStyle |
Optional options.radius | number |
LogVisualHeader.drawRoundedBox
▸ Protected drawText(context, x?, y?, text?, style?, alignment?, theta?, maxSize?): void
for internal use only, make text always readable
| Name | Type | Description |
|---|---|---|
context | RenderingContext | rendering context |
Optional x | number | x position to place text |
Optional y | number | y position to place text |
Optional text | string | text to be displayed |
Optional style | TextStyle | text style |
Optional alignment | AnchorType | alignment for placement of text |
Optional theta | number | of rotation |
Optional maxSize | number | Dimension | max size or width |
void
▸ enableEventPropagation(enable): LogLithologyHeader
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
LogVisualHeader.enableEventPropagation
▸ execute(delegate): LogLithologyHeader
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: LogLithologyHeader) => void | Function to execute |
The result if any or this
▸ execute<T>(delegate): T
| Name |
|---|
T |
| Name | Type |
|---|---|
delegate | (this: LogLithologyHeader) => T |
T
▸ fillBorder(context, fillStyle?, modelLimits?): LogLithologyHeader
Draws a rectangle at the model limits and fill it with specified fillStyle
| Name | Type | Description |
|---|---|---|
context | RenderingContext | Rendering Context |
Optional fillStyle | FillStyle | Fill Style for the rectangle |
Optional modelLimits | Rect | rectangle bounds |
▸ 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
LogVisualHeader.getAnimationStyle
▸ getBorderLineStyle(): LineStyle
Gets border line style
LogVisualHeader.getBorderLineStyle
▸ getBounds(): Rect
Return bound in the parent coordinates
▸ getClassName(): string
string
▸ getClipStyle(): ClipStyle
Gets the current clipping style
clipping style
▸ getContentsArea(transformation?): Rect
Return area without paddings. Model limits are mapped to content area, where children are layout.
| Name | Type | Description |
|---|---|---|
Optional transformation | Transformation | scene transformation |
LogVisualHeader.getContentsArea
▸ getContentsTransform(): Transformation
Return transformation from model to bounds
LogVisualHeader.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
LogVisualHeader.getCssTransform
▸ getDesiredHeight(width?): number
Return header desired height
| Name | Type | Description |
|---|---|---|
Optional width | number | width to fit elements in case wrapping |
number
LogVisualHeader.getDesiredHeight
▸ getDisplayDepth(): number
Returns the displayed depth value
number
LogVisualHeader.getDisplayDepth
▸ getDisplayMode(): string | string[]
Returns the displayed mode value
string | string[]
LogVisualHeader.getDisplayMode
▸ getDisplayString(): string
Returns the displayed value
string
displayString
LogVisualHeader.getDisplayString
▸ getDisplayValue(): number
Returns 0
number
LogVisualHeader.getDisplayValue
▸ getDisplayValueTextStyle(): TextStyle
Return a current text style for displayed value
Deprecated
since 4.0. Use getTextStyle() instead
▸ getFillStyle(): FillStyle
Return fill style
▸ getFlexBoxOptions(): FlexBoxOptionsOut
Get flexbox layout options
flexbox layout options
▸ getHeaderType(): HeaderType
Gets the current header type
▸ getHighlightOptions(): HighlightOptions
Returns highlight options
highlight options
LogVisualHeader.getHighlightOptions
▸ getId(): string | number
Returns the associated identifier of the node
string | number
The node's id
▸ Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>
Gets invalidate method
AttributeCallback<EventDispatcher>
method to invalidate this object
LogVisualHeader.getInvalidateMethod
▸ getIsPointingUp(): boolean
Returns true if the text is always pointing up
boolean
true if the text is always pointing up
LogVisualHeader.getIsPointingUp
▸ getLayoutStyle(): LayoutStyle<string | number>
Return desired layout style
LayoutStyle<string | number>
LogVisualHeader.getLayoutStyle
▸ getLineStyle(): LineStyle
Return line style
▸ getLocalTransform(): Transformation
Retrieves the transformation of bounds to parent
transform the local transform.
LogVisualHeader.getLocalTransform
▸ getMarginsStyle(): SpaceStyle<string | number>
Return margins style
SpaceStyle<string | number>
LogVisualHeader.getMarginsStyle
▸ getModelLimits(): Rect
Return model limits
LogVisualHeader.getModelLimits
▸ getName(): string
Returns the node name
string
The node name
▸ getOpacity(): number
Returns current node opacity
number
opacity
▸ getOpacityBlendMode(): BlendMode
Returns current node opacity
opacity blend mode
LogVisualHeader.getOpacityBlendMode
▸ getPaddingStyle(): SpaceStyle<string | number>
Return padding style
SpaceStyle<string | number>
padding
LogVisualHeader.getPaddingStyle
▸ getParent(): Node
Return parent node
parent node
▸ getProperties(): OptionsOut
Gets all the properties pertaining to this object
properties 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[]
LogVisualHeader.getPropertyKeys
▸ getRenderingFilter(): IFilter
Return filter to be used for rendering and picking
current filter
LogVisualHeader.getRenderingFilter
▸ getResponsiveStyle(): ResponsiveStyle
Return responsive style
LogVisualHeader.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
LogVisualHeader.getScaleScrollStrategy
▸ getSceneTransform(): Transformation
Returns transformation from node to root scene
a transformation from node to root scene
LogVisualHeader.getSceneTransform
▸ getTag(): any
Returns the object associated with the node by user.
any
The node's user-object
▸ Protected getTextBoundingBox(context, x?, y?, text?, style?, alignment?, theta?): Rect
Returns bounding box of the text
| Name | Type | Description |
|---|---|---|
context | RenderingContext | rendering context |
Optional x | number | x position to place text |
Optional y | number | y position to place text |
Optional text | string | text to be displayed |
Optional style | TextStyle | text style |
Optional alignment | AnchorType | alignment for placement of text |
Optional theta | number | of rotation |
LogVisualHeader.getTextBoundingBox
▸ Protected getTextShapeHelper(x?, y?, text?, textStyle?, alignment?): Text
Return text shape helper instance
| Name | Type | Description |
|---|---|---|
Optional x | number | x coordinate |
Optional y | number | y coordinate |
Optional text | string | text to display |
Optional textStyle | Type | a new shape text style |
Optional alignment | AnchorType | anchor alignment |
text shape helper
LogVisualHeader.getTextShapeHelper
▸ getTextStyle(): TextStyle
Return a current text style
▸ getVisible(): boolean
Return visibility of the header
boolean
true if header itself and associated LogVisual is visible
▸ getVisual(): LogLithology
Gets visual to be used to render header
visual
▸ getWorldTransform(): Transformation
getWorldTransform retrieves the local transformation of the node which represents multiplication of parent to bounds and contents transformations.
LogVisualHeader.getWorldTransform
▸ 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
LogVisualHeader.hasEventListener
▸ hitTest(area, radius?): Hits[]
Hit test in device coordinates
| Name | Type | Description |
|---|---|---|
area | HitTestArea | the device area or position |
Optional radius | number | the selection radius |
Hits[]
▸ invalidate(bounds?, force?): LogLithologyHeader
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
▸ invalidateLayout(propagate?): LogLithologyHeader
Notify that layout is invalidated. Send event Events.LayoutInvalidated
| Name | Type | Description |
|---|---|---|
Optional propagate | boolean | propagate invalidate layout to parent |
this
LogVisualHeader.invalidateLayout
▸ Protected invalidateParent(bounds?, force?): LogLithologyHeader
Invalidate parent and notify all listeners. NOTE: Don't keep arguments of the event, because instance can be changed
Fires
| Name | Type | Description |
|---|---|---|
Optional bounds | Rect | bounds of the invalid rectangle in the inner node coordinates |
Optional force | boolean | force rendering |
this
LogVisualHeader.invalidateParent
▸ isAutoBounds(): boolean
Enable automatic bounds. If auto bounds is enabled then it equals to parent model limits
Deprecated
since 4.1, use .getLayoutStyle instead
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
LogVisualHeader.isEventPropagationEnabled
▸ isHorizontalFlip(): boolean
Return true if the representation is flipped horizontally
boolean
horizontal flip
LogVisualHeader.isHorizontalFlip
▸ isNotificationEnabled(): boolean
return state of notification
boolean
current notification state
LogVisualHeader.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
▸ notify<E>(type, source, args?): LogLithologyHeader
Notify listeners of the Node
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | type of event |
source | LogVisualHeader<Node> | source who called the event |
Optional args | EventMap[E] | event arguments |
this
▸ off<E>(type?, callback?): LogLithologyHeader
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: LogLithologyHeader, args: EventMap[E]) => void | function to be called |
this
▸ on<E>(type, callback): LogLithologyHeader
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: LogLithologyHeader, args: EventMap[E]) => void | to be called |
this
▸ Protected onParentChanged(node): LogLithologyHeader
This method is called when parent changes. Do not call it directly.
| Name | Type | Description |
|---|---|---|
node | Node | node to change parent |
this
LogVisualHeader.onParentChanged
▸ Protected onVisibilityChanged(): void
This method is called if visibility is changed. Send event Events.VisibilityChanged
void
LogVisualHeader.onVisibilityChanged
▸ Protected onVisualChanged(): void
This method is called if visual is changed. Send event Events.VisualChanged
void
LogVisualHeader.onVisualChanged
▸ Protected onVisualChanging(): void
This method is called if visual is changing.
void
LogVisualHeader.onVisualChanging
▸ Protected onVisualStateChanged(type, source): void
| Name | Type |
|---|---|
type | Events | Events |
source | LogLithology |
void
LogVisualHeader.onVisualStateChanged
▸ 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
LogVisualHeader.registerAnimationStyle
▸ removeCssClass(cssclass): LogLithologyHeader
Removes css class from node
| Name | Type | Description |
|---|---|---|
cssclass | string | string[] | css class name('s) |
LogVisualHeader.removeCssClass
▸ removeInvalidateHandler(handler): LogLithologyHeader
Remove invalidate handler
Deprecated
since 4.0, use Node.off instead
| Name | Type | Description |
|---|---|---|
handler | Function | handler to be notified about invalidation |
this
LogVisualHeader.removeInvalidateHandler
▸ render(inputContext): void
Renders node
| Name | Type | Description |
|---|---|---|
inputContext | 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
▸ rotate(theta, x, y): LogLithologyHeader
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): LogLithologyHeader
Scale node
| Name | Type | Description |
|---|---|---|
xx | number | x scale factor |
yy | number | y scale factor |
this
▸ setAnimationStyle(animationStyle): LogLithologyHeader
Sets animation style
| Name | Type | Description |
|---|---|---|
animationStyle | Type | animation style |
LogVisualHeader.setAnimationStyle
▸ setAutoBounds(enable): LogLithologyHeader
Enable or disable auto bounds If auto bounds is enabled then it equals to parent model limits
Deprecated
since 4.1, use .setLayoutStyle instead
| Name | Type | Description |
|---|---|---|
enable | boolean | Enable or disable auto bounds |
▸ setBorderLineStyle(lineStyle, merge?): LogLithologyHeader
Sets border 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
LogVisualHeader.setBorderLineStyle
▸ setBounds(bounds): LogLithologyHeader
Sets bounds of the curve in the parent coordinates and set up auto bounds false
| Name | Type | Description |
|---|---|---|
bounds | Rect | bounds of the curve in the parent coordinates |
this
▸ setClipStyle(style): LogLithologyHeader
Sets a new clipping style
| Name | Type | Description |
|---|---|---|
style | GraphicsPath | ClipStyle | Options | a new clipping style |
this
▸ setCss(style, merge?): LogLithologyHeader
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): LogLithologyHeader
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): LogLithologyHeader
Set CSS transformation
| Name | Type | Description |
|---|---|---|
transform | string | Transformation | transformation css transformation instruction or Transformation instance |
this
LogVisualHeader.setCssTransform
▸ setDesiredHeight(value, silent?): LogLithologyHeader
Sets desired height of the header as a layoutable object
| Name | Type | Description |
|---|---|---|
value | string | number | desired height to set, use 'auto' for automatic desired height |
Optional silent | boolean | silent setting |
this
LogVisualHeader.setDesiredHeight
▸ setDisplayMode(displayMode): LogLithologyHeader
Sets the displayed mode value
| Name | Type | Description |
|---|---|---|
displayMode | string | string[] | header display mode |
LogVisualHeader.setDisplayMode
▸ setDisplayString(displayString): LogLithologyHeader
Sets the displayed value
| Name | Type | Description |
|---|---|---|
displayString | string | the displayed value |
LogVisualHeader.setDisplayString
▸ setDisplayValueTextStyle(textStyle, merge?): LogLithologyHeader
Sets a current text style for displayed value
Deprecated
since 4.0. Use setTextStyle() instead
| 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 |
this
▸ setFillStyle(fillStyle, merge?): LogLithologyHeader
Sets fill style
| Name | Type | Description |
|---|---|---|
fillStyle | Type | a new fill style |
Optional merge | boolean | true if you want to merge fillStyle with existing attribute, false by default |
▸ setFlexBoxOptions(flexBox): LogLithologyHeader
Set flexbox layout options
| Name | Type | Description |
|---|---|---|
flexBox | FlexBoxOptions | Flexbox layout options |
this
▸ setHeaderType(type): LogLithologyHeader
Sets Header Type
| Name | Type | Description |
|---|---|---|
type | HeaderType | Enum of lithography header display types |
this
▸ setHighlightOptions(options): LogLithologyHeader
Set highlight options
| Name | Type | Description |
|---|---|---|
options | HighlightOptions | highlight options |
LogVisualHeader.setHighlightOptions
▸ setHorizontalFlip(enable): LogLithologyHeader
Set horizontal flip of the representation
| Name | Type | Description |
|---|---|---|
enable | boolean | enable flip flag, if it is null [default] header try to use same property from associated visual |
this
LogVisualHeader.setHorizontalFlip
▸ setId(id): LogLithologyHeader
Allows the user to associate any identifier
| Name | Type | Description |
|---|---|---|
id | string | number | object id |
this
▸ setIsPointingUp(isPointingUp): LogLithologyHeader
Sets whether the text is always pointing up.
| Name | Type | Description |
|---|---|---|
isPointingUp | boolean | flag setting whether the text is always pointing up |
this
LogVisualHeader.setIsPointingUp
▸ setLayoutStyle(layoutStyle, merge?): LogLithologyHeader
Specify desired layout style
| Name | Type | Description |
|---|---|---|
layoutStyle | LayoutStyle<string | number> | Options<string | number> | desired layout style |
Optional merge | boolean | true if you want to merge layoutStyle with existing attribute, false by default |
LogVisualHeader.setLayoutStyle
▸ setLineStyle(lineStyle, merge?): LogLithologyHeader
Sets a 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
▸ setLocalTransform(localTransform, force?): LogLithologyHeader
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
LogVisualHeader.setLocalTransform
▸ setMarginsStyle(margins, merge?): LogLithologyHeader
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
LogVisualHeader.setMarginsStyle
▸ setModelLimits(modelLimits): LogLithologyHeader
Sets model limits
| Name | Type | Description |
|---|---|---|
modelLimits | Rect | desired model Limits |
LogVisualHeader.setModelLimits
▸ setName(name): LogLithologyHeader
Sets name of the node
| Name | Type | Description |
|---|---|---|
name | string | The node name |
this
▸ setNotification(notify, force?): LogLithologyHeader
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
LogVisualHeader.setNotification
▸ setOpacity(opacity, blendMode?): LogLithologyHeader
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
▸ setPaddingStyle(paddingStyle, merge?): LogLithologyHeader
Sets padding style
| Name | Type | Description |
|---|---|---|
paddingStyle | Type<string | number> | padding style |
Optional merge | boolean | true if you want to merge paddingStyle with existing attribute, false by default |
LogVisualHeader.setPaddingStyle
▸ setProperties(properties?): LogLithologyHeader
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): LogLithologyHeader
Sets dynamic property by name
| Name | Type | Description |
|---|---|---|
name | string | property name |
value | any | property value |
this
▸ setRenderingFilter(filter): LogLithologyHeader
Sets filter to be applied before rendering and picking
| Name | Type | Description |
|---|---|---|
filter | IFilter | filter to set |
this
LogVisualHeader.setRenderingFilter
▸ setResponsiveStyle(style): LogLithologyHeader
Sets responsive style.
| Name | Type | Description |
|---|---|---|
style | Options | ResponsiveStyle | responsive style |
this
LogVisualHeader.setResponsiveStyle
▸ setScaleScrollStrategy(strategy?): LogLithologyHeader
Sets scale scroll strategy
| Name | Type | Description |
|---|---|---|
Optional strategy | Delegate | scale scroll strategy |
this
LogVisualHeader.setScaleScrollStrategy
▸ setSelectable(selectable): LogLithologyHeader
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): LogLithologyHeader
Set silent mode
| Name | Type | Description |
|---|---|---|
bool | boolean | flag to enable silent mode |
this
▸ setTag(tag): LogLithologyHeader
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
▸ setTextStyle(textStyle, merge?): LogLithologyHeader
Sets a current 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 |
this
▸ setVisible(value): LogLithologyHeader
Sets visibility of the node. Send event Events.VisibilityChanged
| Name | Type | Description |
|---|---|---|
value | boolean | flag specifying visibility of the node |
this
▸ setVisual(visual): LogLithologyHeader
| Name | Type |
|---|---|
visual | LogLithology |
▸ setZIndex(value): LogLithologyHeader
Sets z-index for node (set null for default)
| Name | Type | Description |
|---|---|---|
value | number | index determining node z-position |
this
▸ shear(shx, shy): LogLithologyHeader
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): LogLithologyHeader
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
LogVisualHeader.unregisterAnimationStyle
▸ Protected updateGeometry(): LogLithologyHeader
Update state.
this
LogVisualHeader.updateGeometry
▸ updateSceneTransformation(): LogLithologyHeader
Update scene transformation
this
LogVisualHeader.updateSceneTransformation
▸ updateState(regions?, changes?): LogLithologyHeader
Update state. These methods reset node state and update state for children. this method is useful to refresh a scene graph
| Name | Type | Description |
|---|---|---|
Optional regions | Rect[] | optional array to return invalid rectangles in the parent coordinates |
Optional changes | StateChanges | optional parameter to specify a reason of changes |
this
▸ Protected updateTimeStamp(): LogLithologyHeader
Update time stamp to indicate that Node or Children has been changed.
this
LogVisualHeader.updateTimeStamp
▸ Static enableSceneGraphNotification(enabled): void
Enable / disable all notifications
| Name | Type | Description |
|---|---|---|
enabled | boolean | sets if this object sends notifications |
void
LogVisualHeader.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 getDesiredHeight(header, width?): number
Return header desired content height with padding
| Name | Type | Description |
|---|---|---|
header | LogVisualHeader<Node> | header instance |
Optional width | number | available width, for header, to calculate required height |
number
LogVisualHeader.getDesiredHeight
▸ Static isSceneGraphNotificationEnabled(): boolean
Return status of the global notification for all nodes.
boolean