Last updated

API / geotoolkit / welllog / LogAxis / LogAxis

Class: LogAxis

welllog.LogAxis.LogAxis

Creates the standard representation of a well log axis. It can be added to the track and a tickgenerator like DateTimeTickGenerator can be assigned to it based on the trajectory data.

Hierarchy

Table of contents

Constructors
Methods
addCssClassaddInvalidateHandlerapplyOpacity
applyResponsiveStylecheckCollisionclone
connectStylecopyConstructordisconnectStyle
disposeenableEventPropagationexecute
filtergetAnimationStylegetAutoLabelRotation
getAutoLabelRotationAnglegetAxisDimensiongetBaseLineStyle
getBaseLineVisiblegetBoundsgetClassName
getClipStylegetContentsTransformgetCss
getCssClassgetCssClassesgetCssTransform
getFillStylegetHideOverlappedTextgetId
getInfiniteModegetInvalidateMethodgetLabelManualSettings
getLabelOffsetgetLabelPaddinggetLabelPosition
getLayoutStylegetLineStylegetLocalTransform
getMarginsStylegetMaximumLabelSizegetMicroPositionLeft
getMicroPositionRightgetMicroPositionTransformationgetModelLimits
getNamegetOpacitygetOpacityBlendMode
getOrientationgetParentgetProperties
getPropertygetPropertyKeysgetRenderingFilter
getResponsiveStylegetRootgetScaleScrollStrategy
getSceneTransformgetShowTitleEllipsisgetTag
getTextStylegetTickGeneratorgetTickInfo
getTickPositiongetTitlegetTitleAlignment
getTitleAnchorgetTitleMargingetTitleOffset
getTitleTextStylegetTitleVisiblegetTrack
getVisiblegetWorldTransformgetZIndex
hasCssClasshasEventListenerinvalidate
invalidateLayoutinvalidateParentisDisposed
isEventPropagationEnabledisNotificationEnabledisSelectable
isSilentnotifyoff
ononAxisDimensionChangedonMicroPositionChanged
onParentChangedonVisibilityChangedpostRendering
preRenderingregisterAnimationStyleremoveCssClass
removeInvalidateHandlerrenderrenderAsync
rotatescalesetAnimationStyle
setAutoLabelRotationsetAutoLabelRotationAnglesetAxisDimension
setBaseLineStylesetBaseLineVisiblesetBounds
setClipStylesetCsssetCssClass
setCssTransformsetFillStylesetHideOverlappedText
setIdsetInfiniteModesetLabelManualSettings
setLabelOffsetsetLabelPaddingsetLabelPosition
setLayoutStylesetLineStylesetLocalTransform
setMarginsStylesetMaximumLabelSizesetMicroPosition
setModelLimitssetNamesetNotification
setOpacitysetOrientationsetProperties
setPropertysetRenderingFiltersetResponsiveStyle
setScaleScrollStrategysetSelectablesetShowTitleEllipsis
setSilentsetTagsetTextStyle
setTickGeneratorsetTickPositionsetTitle
setTitleAlignmentsetTitleAnchorsetTitleMargin
setTitleOffsetsetTitleTextsetTitleTextStyle
setTitleVisiblesetVisiblesetZIndex
sheartoStringtranslate
unregisterAnimationStyleupdateAxisDimensionupdateSceneTransformation
updateStateupdateTimeStampenableSceneGraphNotification
findParentgetClassNameintersectsBounds
isSceneGraphNotificationEnabled
Css Properties
Name Type Description
autolabelrotationbooleanAutomatic label rotation
autolabelrotationanglenumber
baselinestylestringBase line style
baselinestyleLineStyleBase line style
baselinestyle-colorstringColor in CSS form
baselinestyle-fillstringOptional fill style to be used to fill lines generated with this style
baselinestyle-fillFillStyleOptional fill style to be used to fill lines generated with this style
baselinestyle-fill-colorstringColor in CSS form
baselinestyle-fill-evenoddmodebooleanEven-odd fill mode
baselinestyle-fill-fillpatternPatternPattern
baselinestyle-fill-fillpattern-containernamestringAn optional container name, which creates an image pattern. This parameter is used for serialization if you want to save are reference to pattern instead of the pattern itself
baselinestyle-fill-fillpattern-patternnamestringName of this pattern for indexing
baselinestyle-fill-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
baselinestyle-fill-foregroundstringForeground color
baselinestyle-fill-patternPatternPattern
baselinestyle-linecapCapStyleThe line cap style
baselinestyle-linedashoffsetnumberLine dash offset of dashed line
baselinestyle-linejoinJoinStyleThe line join style
baselinestyle-pixelsnapmodebooleanPixel Snap Mode, default(
baselinestyle-scalablebooleanTrue if width should depend on transformation
baselinestyle-unitstringOptional unit for the width
baselinestyle-widthnumber | stringThe line thickness
boundsRectAxis bounds
bounds-heightnumberHeight
bounds-readonlybooleanReadonly
bounds-widthnumberWidth
bounds-xnumberLeft
bounds-ynumberTop
clipstyleGraphicsPathClipping style
clipstyle-boundsRectBounds
clipstyleClipStyleClipping style
clipstyle-evenoddbooleanTrue if evenodd mode is on ('nonzero' mode otherwise)
clipstyle-geometryGraphicsPathClipping geometry
cssclassstringThe css class name of this node
csscursorstringCSS cursor associated with node
cssstylestringCSS style to be applied to inserted elements
dimensionAxisMappingDimensionAxis dimension to setup axis limits
dimension-desiredmodelstepnumberDesired model step
dimension-logarithmicbooleanTrue for logarithmic axis
dimension-maxnumberMaximum value
dimension-minnumberMinimum value
dimension-minspannumberDesired minimum distance between ticks in pixels
dimension-namestringName of the dimension
dimension-neatlimitsbooleanEnable or disable neat limits
dimension-orientationOrientationAxis orientation
dimension-originnumber
dimension-preciselimitsbooleanEnable keeping the precise limits and calculate only step
dimension-spacingnumberDesired model spacing
fillstylestringStyle applied on fill
fillstyleFillStyleStyle applied on fill
hideoverlappedtextbooleanHide overlapped text flag
idstring | numberId of the node, its a unique identifier
infinitybooleanInfinity mode
labelmanualsettingsbooleanEnable / disable manual settings for labels like anchor
labeloffsetnumberOffset the label offset
labelpaddingnumberLabel padding size in pixels
labelpositionLabelPositionLabel position
layoutstyleLayoutStyleDesired layout style
layoutstyle-constraintSizeConstraintLayout constrains
layoutstyle-flexgrownumberNumber specifying how much the item will grow relative to the rest of the items inside the same container
layoutstyle-flexshrinknumberNumber specifying how much the item will shrink relative to the rest of the items inside the same container
layoutstyle-floatstringFloat position
layoutstyle-positionstringLayout position
layoutstyle-sizenumber | stringLayout size
linestylestringStyle applied on outline
linestyleLineStyleStyle applied on outline
localtransformTransformationLocal transformation
localtransform-dxnumberX axis translation
localtransform-dynumberY axis translation
localtransform-xxnumberX scale
localtransform-xynumberXy skew
localtransform-yxnumberYx skew
localtransform-yynumberY scale
marginsnumber | stringIt has properties for specifying the margins for each side
maximumlabelsizenumberMaximum label size (in device), text will be wrapped, if it is bigger than maximum label size
microposleftnumberLeft micro position
microposrightnumberRight micro position
modellimitsRectRectangle where to generate ticks
namestringName of the node. It is often used for debugging purposes or to simplify queries
opacitynumberNode opacity (from 0 to 1). If it is undefined or null it inherits property from the parent. It changes globalAlpha on the rendering context
opacityblendmodeBlendModeNode opacity mode to blend it
orientationOrientationAxis orientation
scalescrollstrategyScaleScrollStrategyScale scroll strategy
scalescrollstrategy-enabledbooleanEnable flag
selectablebooleanSelectable node, a boolean to determine if selection should consider this node
taganyCustom information associated with node. It is a user object which can be used by client code to store information or attach an application object to the shape
textstylestringLabels textstyle
textstyleTextStyleLabels textstyle
textstyle-alignmentAlignmentStyleAlignment
textstyle-autosizebooleanAuto font size on high definition display
textstyle-backgroundstringBackground style
textstyle-backgroundFillStyleBackground style
textstyle-baselineBaseLineStyleBase line
textstyle-colorstringColor in CSS form
textstyle-fillFillStyleText fill style
textstyle-fontstringFont see
textstyle-fonturlstringThe place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword
textstyle-lineheightstring | numberLine height
textstyle-multilinebooleanAllow multi-line text
textstyle-outlinestringOutline style
textstyle-outlineLineStyleOutline style
textstyle-overflowwrapOverflowWrapStyleOverflow wrap
textstyle-strikethroughstringStrikethrough style
textstyle-strikethroughLineStyleStrikethrough style
textstyle-textoverflowTextOverflowStyleText overflow
textstyle-underlinestringUnderline style
textstyle-underlineLineStyleUnderline style
textstyle-underlineoffsetstring | numberUnderline offset distance
textstyle-whitespaceWhiteSpaceStyleWhite space
textstyle-wordbreakWordBreakStyleWord break
tickgeneratorTickGeneratorTickGenerator to use in axis
tickgenerator-labelstylesTextStyleAn object containing label style for specified grades
tickgenerator-taganyTag user can specify info associated with current object
tickgenerator-tickstylesLineStyleAn object containing tick styles for specified grades
tickpositionTickPositionTick position
titleTitleAxis title
title-alignmentAnchorTypeAlignment
title-marginnumber | stringMargin style
title-offsetPointOffset
title-offset-xnumberX coordinate
title-offset-ynumberY coordinate
title-offsetDimensionOffset
title-offset-heightnumberHeight of dimension
title-offset-widthnumberWidth of dimension or properties
title-showellipsisbooleanEnables/disables ellipsis in case if text is too long
title-textstringAxis title text
title-textstylestringText style
title-textstyleTextStyleText style
title-visiblebooleanVisibility
transformstringAdditional CSS transformation applied to node or 'none'
transformTransformationAdditional CSS transformation applied to node or 'none'
visiblebooleanVisibility of the node, a boolean to determine if the node should be rendered or not
visiblebaselinebooleanVisibility of baseline
z-indexnumberDefine node z-index

Contents

Constructors

new LogAxis(options)

new LogAxis(options?)

Creates axis

Parameters

Name Type Description
Optional optionsTickGenerator | Optionsaxis tick generator or options object

Overrides

Axis.constructor

Methods

addCssClass

addCssClass(cssclass): LogAxis

Adds new css class to node

Parameters

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

Returns

LogAxis

this

Inherited from

Axis.addCssClass


addInvalidateHandler

addInvalidateHandler(handler): LogAxis

Add invalidate handler

Deprecated

since 4.0, use Node.on instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LogAxis

this

Inherited from

Axis.addInvalidateHandler


applyOpacity

Protected applyOpacity(context): LogAxis

This method is called to apply opacity if it is specified on the rendering context. The default implementation sets global alpha on the rendering context

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

LogAxis

this

Inherited from

Axis.applyOpacity


applyResponsiveStyle

Protected applyResponsiveStyle(): void

Apply a responsive style rules it is exists

Returns

void

Inherited from

Axis.applyResponsiveStyle


checkCollision

checkCollision(context): boolean

Check culling

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

true if object is inside of rendarable area

Inherited from

Axis.checkCollision


clone

clone(): LogAxis

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

Returns

LogAxis

clone

Overrides

Axis.clone


connectStyle

connectStyle(style, type, callback): LogAxis

Connects style.

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

Parameters

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

Returns

LogAxis

this

Inherited from

Axis.connectStyle


copyConstructor

Protected copyConstructor(src, deepCopy?): LogAxis

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

Parameters

Name Type Description
srcAxisSource to copy from
Optional deepCopybooleandeep copy

Returns

LogAxis

this

Inherited from

Axis.copyConstructor


disconnectStyle

disconnectStyle(style, type, callback): LogAxis

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

Parameters

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

Returns

LogAxis

this

Inherited from

Axis.disconnectStyle


dispose

dispose(): void

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

Returns

void

Inherited from

Axis.dispose


enableEventPropagation

enableEventPropagation(enable): LogAxis

Enable event propagation from the node hierarchy from bottom to top

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

Example

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

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

Parameters

Name Type Description
enablebooleanenable

Returns

LogAxis

this

Inherited from

Axis.enableEventPropagation


execute

execute(delegate): LogAxis

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

Example

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

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

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

Parameters

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

Returns

LogAxis

The result if any or this

Inherited from

Axis.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: LogAxis) => T

Returns

T

Inherited from

Axis.execute


filter

Protected filter(context): boolean

Filter node

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

boolean

flag filter flag ("true" to render node; "false" otherwise)

Inherited from

Axis.filter


getAnimationStyle

getAnimationStyle(): AnimationStyle

Return animation style

Returns

AnimationStyle

animationStyle current animation style

Inherited from

Axis.getAnimationStyle


getAutoLabelRotation

getAutoLabelRotation(): boolean

Get auto label rotation

Returns

boolean

Inherited from

Axis.getAutoLabelRotation


getAutoLabelRotationAngle

getAutoLabelRotationAngle(): number

Gets auto rotation angle for vertical axis

Returns

number

angle

Inherited from

Axis.getAutoLabelRotationAngle


getAxisDimension

getAxisDimension(): AxisMappingDimension

Gets axis dimension to synchronize tick generator parameters with external source

Returns

AxisMappingDimension

Inherited from

Axis.getAxisDimension


getBaseLineStyle

getBaseLineStyle(): LineStyle

Return a base line style

Returns

LineStyle

Inherited from

Axis.getBaseLineStyle


getBaseLineVisible

getBaseLineVisible(): boolean

Return base line visibility

Returns

boolean

Inherited from

Axis.getBaseLineVisible


getBounds

getBounds(): Rect

Gets axis bounds

Returns

Rect

axis bounds

Inherited from

Axis.getBounds


getClassName

getClassName(): string

Returns

string

Inherited from

Axis.getClassName


getClipStyle

getClipStyle(): ClipStyle

Gets the current clipping style

Returns

ClipStyle

clipping style

Inherited from

Axis.getClipStyle


getContentsTransform

getContentsTransform(): Transformation

Retrieves the world transformation of the spatial

Returns

Transformation

Overrides

Axis.getContentsTransform


getCss

getCss(): CssStyle

Return CSS style

Returns

CssStyle

Inherited from

Axis.getCss


getCssClass

getCssClass(): string

Returns css class name to be used to apply CSS style

Returns

string

the css class name

Inherited from

Axis.getCssClass


getCssClasses

getCssClasses(): string[]

Gets list of css class names which applied to this node

Returns

string[]

Inherited from

Axis.getCssClasses


getCssTransform

getCssTransform(): string

Returns CSS transformation

Returns

string

Inherited from

Axis.getCssTransform


getFillStyle

getFillStyle(): FillStyle

Return fill style

Returns

FillStyle

fillStyle current fill style

Inherited from

Axis.getFillStyle


getHideOverlappedText

getHideOverlappedText(): boolean

Gets hide overlapped text flag

Returns

boolean

hide overlapped text flag

Inherited from

Axis.getHideOverlappedText


getId

getId(): string | number

Returns the associated identifier of the node

Returns

string | number

The node's id

Inherited from

Axis.getId


getInfiniteMode

getInfiniteMode(): boolean

Return infinity mode flag

Returns

boolean

flag

Inherited from

Axis.getInfiniteMode


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

Gets invalidate method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

Axis.getInvalidateMethod


getLabelManualSettings

getLabelManualSettings(): boolean

Gets label manual settings mode (AnchorType and no shifts)

Returns

boolean

label manual settings mode

Inherited from

Axis.getLabelManualSettings


getLabelOffset

getLabelOffset(): number

Return the label offset

Returns

number

Inherited from

Axis.getLabelOffset


getLabelPadding

getLabelPadding(): number

Gets label padding

Returns

number

padding label padding

Inherited from

Axis.getLabelPadding


getLabelPosition

getLabelPosition(): LabelPosition

Return the label position

Returns

LabelPosition

Inherited from

Axis.getLabelPosition


getLayoutStyle

getLayoutStyle(): LayoutStyle<string | number>

return desired layout style

Returns

LayoutStyle<string | number>

Inherited from

Axis.getLayoutStyle


getLineStyle

getLineStyle(): LineStyle

Return line style

Returns

LineStyle

lineStyle current line style

Inherited from

Axis.getLineStyle


getLocalTransform

getLocalTransform(): Transformation

Retrieves the transformation of bounds to parent

Returns

Transformation

transform the local transform.

Inherited from

Axis.getLocalTransform


getMarginsStyle

getMarginsStyle(): SpaceStyle<string | number>

Return margins style

Returns

SpaceStyle<string | number>

Inherited from

Axis.getMarginsStyle


getMaximumLabelSize

getMaximumLabelSize(): number

Gets maximum label size

Returns

number

maximum label size (in device space)

Inherited from

Axis.getMaximumLabelSize


getMicroPositionLeft

getMicroPositionLeft(): number

Returns micro position left

Returns

number


getMicroPositionRight

getMicroPositionRight(): number

Returns micro position right

Returns

number


getMicroPositionTransformation

Protected getMicroPositionTransformation(): Transformation

Returns micro position transformation

Returns

Transformation

micro position transformation


getModelLimits

getModelLimits(): Rect

Gets model limits

Returns

Rect

model limits

Inherited from

Axis.getModelLimits


getName

getName(): string

Returns the node name

Returns

string

The node name

Inherited from

Axis.getName


getOpacity

getOpacity(): number

Returns current node opacity

Returns

number

opacity

Inherited from

Axis.getOpacity


getOpacityBlendMode

getOpacityBlendMode(): BlendMode

Returns current node opacity

Returns

BlendMode

opacity blend mode

Inherited from

Axis.getOpacityBlendMode


getOrientation

getOrientation(): Orientation

Return axis orientation

Returns

Orientation

"horizontal" or "vertical"

Inherited from

Axis.getOrientation


getParent

getParent(): Node

Return parent node

Returns

Node

parent node

Inherited from

Axis.getParent


getProperties

getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

An object containing the properties

Overrides

Axis.getProperties


getProperty

getProperty(name): any

Gets dynamic property by name. These properties can be used as a property bags

Parameters

Name Type Description
namestringproperty name

Returns

any

Inherited from

Axis.getProperty


getPropertyKeys

getPropertyKeys(): string[]

Returns known properties keys

Returns

string[]

Inherited from

Axis.getPropertyKeys


getRenderingFilter

getRenderingFilter(): IFilter

Return filter to be used for rendering and picking

Returns

IFilter

current filter

Inherited from

Axis.getRenderingFilter


getResponsiveStyle

getResponsiveStyle(): ResponsiveStyle

Return responsive style

Returns

ResponsiveStyle

Inherited from

Axis.getResponsiveStyle


getRoot

getRoot(): Node

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

Returns

Node

the root node

Inherited from

Axis.getRoot


getScaleScrollStrategy

getScaleScrollStrategy(): Delegate

Gets scale scroll strategy

Returns

Delegate

scale scroll strategy

Inherited from

Axis.getScaleScrollStrategy


getSceneTransform

getSceneTransform(): Transformation

Returns transformation from node to root scene

Returns

Transformation

a transformation from node to root scene

Inherited from

Axis.getSceneTransform


getShowTitleEllipsis

getShowTitleEllipsis(): boolean

Return boolean flag that enables/disables ellipsis in case if text is too long

Returns

boolean

Inherited from

Axis.getShowTitleEllipsis


getTag

getTag(): any

Returns the object associated with the node by user.

Returns

any

The node's user-object

Inherited from

Axis.getTag


getTextStyle

getTextStyle(): TextStyle

Return a text style

Returns

TextStyle

textStyle

Inherited from

Axis.getTextStyle


getTickGenerator

getTickGenerator(): TickGenerator

Return a current tick generator

Returns

TickGenerator

a current tick generator

Inherited from

Axis.getTickGenerator


getTickInfo

getTickInfo(): TickInfo

Returns axis tick info

Returns

TickInfo

tickInfo

Inherited from

Axis.getTickInfo


getTickPosition

getTickPosition(): string

Return tick position

Returns

string

tickPosition

Inherited from

Axis.getTickPosition


getTitle

getTitle(): string

Get axis title

Returns

string

axis title

Inherited from

Axis.getTitle


getTitleAlignment

getTitleAlignment(): TitleAlignment

Get title alignment

Returns

TitleAlignment

alignment


getTitleAnchor

getTitleAnchor(): AnchorType

Get title anchor

Returns

AnchorType

alignment

Inherited from

Axis.getTitleAnchor


getTitleMargin

getTitleMargin(): SpaceStyle<string | number>

Returns title margin

Returns

SpaceStyle<string | number>

Inherited from

Axis.getTitleMargin


getTitleOffset

getTitleOffset(): Point

Returns title offset

Returns

Point

offset

Inherited from

Axis.getTitleOffset


getTitleTextStyle

getTitleTextStyle(): TextStyle

The style associated with this axis title.

Returns

TextStyle

textStyle

Inherited from

Axis.getTitleTextStyle


getTitleVisible

getTitleVisible(): boolean

Get title visibility state

Returns

boolean

visible state

Inherited from

Axis.getTitleVisible


getTrack

getTrack(): LogTrack

Returns a parent log track

Returns

LogTrack


getVisible

getVisible(): boolean

Return visibility of the node

Returns

boolean

true if node is visible

Inherited from

Axis.getVisible


getWorldTransform

getWorldTransform(): Transformation

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

Returns

Transformation

Inherited from

Axis.getWorldTransform


getZIndex

getZIndex(): number

Returns node z-index (null if not set)

Returns

number

Inherited from

Axis.getZIndex


hasCssClass

hasCssClass(cssClass): boolean

Check if node has specified css class

Parameters

Name Type Description
cssClassstringcss class name

Returns

boolean

Inherited from

Axis.hasCssClass


hasEventListener

hasEventListener(type, callback?): boolean

Check if a list of event listeners for this type contains this listener

Parameters

Name Type Description
typestringtype of event or property
Optional callbackFunctionto be called, if null, check if any callback is registered

Returns

boolean

Inherited from

Axis.hasEventListener


invalidate

invalidate(bounds?, force?): LogAxis

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

Parameters

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

Returns

LogAxis

this

Inherited from

Axis.invalidate


invalidateLayout

invalidateLayout(): LogAxis

Notify that layout is invalidated. Send event Events.LayoutInvalidated

Returns

LogAxis

this

Inherited from

Axis.invalidateLayout


invalidateParent

invalidateParent(bounds?, force?): LogAxis

Invalidate parent area

Parameters

Name Type Description
Optional boundsRectarea to invalidate
Optional forcebooleanforce

Returns

LogAxis

this

Inherited from

Axis.invalidateParent


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

Axis.isDisposed


isEventPropagationEnabled

isEventPropagationEnabled(): boolean

Return true if event propagation is enabled from child to parent

Returns

boolean

Inherited from

Axis.isEventPropagationEnabled


isNotificationEnabled

isNotificationEnabled(): boolean

return state of notification

Returns

boolean

current notification state

Inherited from

Axis.isNotificationEnabled


isSelectable

isSelectable(): boolean

Returns true if node can be picked/selected.

Returns

boolean

The selectable flag

Inherited from

Axis.isSelectable


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

Axis.isSilent


notify

notify<E>(event, source, args?): LogAxis

Notify listeners of the Node

Type parameters

NameType
Eextends string

Parameters

Name Type Description
eventEtype of event
sourceAbstractNodesource who called the event
Optional argsEventMap[E]event arguments

Returns

LogAxis

this

Inherited from

Axis.notify


off

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

Detach listener on event. Calling .off() with no arguments removes all attached listeners. Calling .off(type) with no callback removes all attached listeners for specific type.

Type parameters

NameType
Eextends string

Parameters

Name Type Description
Optional typeEtype of the event
Optional callback(eventType: E, sender: LogAxis, args: EventMap[E]) => voidfunction to be called

Returns

LogAxis

this

Overrides

Axis.off


on

on<E>(type, callback): LogAxis

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

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

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

Type parameters

NameType
Eextends string

Parameters

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

Returns

LogAxis

this

Overrides

Axis.on


onAxisDimensionChanged

Protected onAxisDimensionChanged(dimension): void

Called if axis dimension is changed

Parameters

Name Type Description
dimensionAxisMappingDimensiondimension

Returns

void

Inherited from

Axis.onAxisDimensionChanged


onMicroPositionChanged

Protected onMicroPositionChanged(): LogAxis

calls when microPosition has been changed

Returns

LogAxis

this


onParentChanged

Protected onParentChanged(node): LogAxis

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

Parameters

Name Type Description
nodeNodenode to change parent

Returns

LogAxis

this

Inherited from

Axis.onParentChanged


onVisibilityChanged

Protected onVisibilityChanged(): void

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

Returns

void

Inherited from

Axis.onVisibilityChanged


postRendering

Protected postRendering(context): void

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

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

Axis.postRendering


preRendering

Protected preRendering(context): void

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

Parameters

Name Type Description
contextRenderingContextRendering Context

Returns

void

Inherited from

Axis.preRendering


registerAnimationStyle

registerAnimationStyle(root): void

Register animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

Axis.registerAnimationStyle


removeCssClass

removeCssClass(cssclass): LogAxis

Removes css class from node

Parameters

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

Returns

LogAxis

this

Inherited from

Axis.removeCssClass


removeInvalidateHandler

removeInvalidateHandler(handler): LogAxis

Remove invalidate handler

Deprecated

since 4.0, use Node.off instead

Parameters

Name Type Description
handlerFunctionhandler to be notified about invalidation

Returns

LogAxis

this

Inherited from

Axis.removeInvalidateHandler


render

render(context): void

Renders node

Parameters

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

Returns

void

Inherited from

Axis.render


renderAsync

renderAsync(context, callback): void

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

Parameters

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

Returns

void

Inherited from

Axis.renderAsync


rotate

rotate(theta, x, y): LogAxis

Rotate bounds around a given coordinate

Parameters

Name Type Description
thetanumberangle to rotate node, in radians
xnumberx coordinate to rotate around
ynumbery coordinate to rotate around

Returns

LogAxis

this

Inherited from

Axis.rotate


scale

scale(xx, yy): LogAxis

Scale node

Parameters

Name Type Description
xxnumberx scale factor
yynumbery scale factor

Returns

LogAxis

this

Inherited from

Axis.scale


setAnimationStyle

setAnimationStyle(animationStyle): LogAxis

Sets animation style

Parameters

Name Type Description
animationStyleTypeanimation style

Returns

LogAxis

Inherited from

Axis.setAnimationStyle


setAutoLabelRotation

setAutoLabelRotation(enable): LogAxis

Set auto label rotation

Parameters

Name Type Description
enablebooleanenable automatic label rotation

Returns

LogAxis

this

Inherited from

Axis.setAutoLabelRotation


setAutoLabelRotationAngle

setAutoLabelRotationAngle(angle): LogAxis

Sets auto rotation angle for vertical axis

Parameters

Name Type Description
anglenumberangle of label auto rotation

Returns

LogAxis

this

Inherited from

Axis.setAutoLabelRotationAngle


setAxisDimension

setAxisDimension(dimension): LogAxis

Sets axis dimension to synchronize tick generator parameters with external source

Parameters

Name Type Description
dimensionAxisMappingDimension | Optionsdimension

Returns

LogAxis

Inherited from

Axis.setAxisDimension


setBaseLineStyle

setBaseLineStyle(lineStyle, merge?): LogAxis

Sets a base line style

Parameters

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

Returns

LogAxis

this

Inherited from

Axis.setBaseLineStyle


setBaseLineVisible

setBaseLineVisible(visible): LogAxis

Set base line visibility

Parameters

Name Type Description
visiblebooleanvisible

Returns

LogAxis

Inherited from

Axis.setBaseLineVisible


setBounds

setBounds(bounds): LogAxis

Sets an axis bounds

Parameters

Name Type Description
boundsRectaxis bounds

Returns

LogAxis

this

Inherited from

Axis.setBounds


setClipStyle

setClipStyle(style): LogAxis

Sets a new clipping style

Parameters

Name Type Description
styleGraphicsPath | ClipStyle | Optionsa new clipping style

Returns

LogAxis

this

Inherited from

Axis.setClipStyle


setCss

setCss(style, merge?): LogAxis

Sets CSS style. This style will be applied for all inserted elements

Parameters

Name Type Description
styleTypeCSS style to be applied to inserted elements
Optional mergebooleanmerge flag

Returns

LogAxis

this

Inherited from

Axis.setCss


setCssClass

setCssClass(name): LogAxis

Sets css class name of the node to be used to apply CSS style

Parameters

Name Type Description
namestringcss class name of the node

Returns

LogAxis

this

Inherited from

Axis.setCssClass


setCssTransform

setCssTransform(transform): LogAxis

Set CSS transformation

Parameters

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

Returns

LogAxis

this

Inherited from

Axis.setCssTransform


setFillStyle

setFillStyle(fillStyle, merge?): LogAxis

Sets fill style

Parameters

Name Type Description
fillStyleTypea new fill style
Optional mergebooleantrue if you want to merge fillStyle with existing attribute, false by default

Returns

LogAxis

this

Inherited from

Axis.setFillStyle


setHideOverlappedText

setHideOverlappedText(flag): LogAxis

Sets hide overlapped text flag

Parameters

Name Type Description
flagbooleanhide overlapped text flag

Returns

LogAxis

this

Inherited from

Axis.setHideOverlappedText


setId

setId(id): LogAxis

Allows the user to associate any identifier

Parameters

Name Type Description
idstring | numberobject id

Returns

LogAxis

this

Inherited from

Axis.setId


setInfiniteMode

setInfiniteMode(infinityMode): LogAxis

Set infinity mode flag to draw axis outside the model limits

Parameters

Name Type Description
infinityModebooleaninfinity mode flag

Returns

LogAxis

this

Inherited from

Axis.setInfiniteMode


setLabelManualSettings

setLabelManualSettings(state): LogAxis

Sets label manual settings mode (AnchorType and no shifts)

Parameters

Name Type Description
statebooleanlabel manual settings mode

Returns

LogAxis

this

Inherited from

Axis.setLabelManualSettings


setLabelOffset

setLabelOffset(offset): LogAxis

Sets the label offset

Parameters

Name Type Description
offsetnumberthe label offset

Returns

LogAxis

this

Inherited from

Axis.setLabelOffset


setLabelPadding

setLabelPadding(padding): LogAxis

Sets label padding

Parameters

Name Type Description
paddingnumberlabel padding

Returns

LogAxis

this

Inherited from

Axis.setLabelPadding


setLabelPosition

setLabelPosition(position): LogAxis

Sets the label position

Parameters

Name Type Description
positionLabelPositionlabel position

Returns

LogAxis

this

Inherited from

Axis.setLabelPosition


setLayoutStyle

setLayoutStyle(layoutStyle, merge?): LogAxis

Specify desired layout style

Parameters

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

Returns

LogAxis

Inherited from

Axis.setLayoutStyle


setLineStyle

setLineStyle(lineStyle, merge?): LogAxis

Sets line style

Parameters

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

Returns

LogAxis

this

Inherited from

Axis.setLineStyle


setLocalTransform

setLocalTransform(localTransform, force?): LogAxis

Sets local transformation to be used to transform from local to parent coordinate

Parameters

Name Type Description
localTransformTransformationlocal transformation for this node
Optional forcebooleanboolean flag to force update event if transformations are equal, false by default

Returns

LogAxis

this

Inherited from

Axis.setLocalTransform


setMarginsStyle

setMarginsStyle(margins, merge?): LogAxis

Sets margins style

Parameters

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

Returns

LogAxis

this

Inherited from

Axis.setMarginsStyle


setMaximumLabelSize

setMaximumLabelSize(maximumLabelSize): LogAxis

Sets maximum label size

Parameters

Name Type Description
maximumLabelSizenumbermaximum label size (in device space)

Returns

LogAxis

this

Inherited from

Axis.setMaximumLabelSize


setMicroPosition

setMicroPosition(left, right): LogAxis

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);

Parameters

Name Type Description
leftnumberleft position
rightnumberright position

Returns

LogAxis

this


setModelLimits

setModelLimits(modelLimits): LogAxis

Sets model limits

Parameters

Name Type Description
modelLimitsRectmodel limits or rectangle where ticks are to be generated

Returns

LogAxis

this

Inherited from

Axis.setModelLimits


setName

setName(name): LogAxis

Sets name of the node

Parameters

Name Type Description
namestringThe node name

Returns

LogAxis

this

Inherited from

Axis.setName


setNotification

setNotification(notify, force?): LogAxis

set notification state

Parameters

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

Returns

LogAxis

this

Inherited from

Axis.setNotification


setOpacity

setOpacity(opacity, blendMode?): LogAxis

Sets node opacity

Parameters

Name Type Description
opacitynumbernode opacity from 0 to 1
Optional blendModeBlendModeopacity blend mode. If it is normal, opacity will be replaced.

Returns

LogAxis

this

Inherited from

Axis.setOpacity


setOrientation

setOrientation(orientation): LogAxis

Sets axis orientation

Parameters

Name Type Description
orientationstring(It can be "Vertical" or "Horizontal");

Returns

LogAxis

this

Inherited from

Axis.setOrientation


setProperties

setProperties(properties?): LogAxis

Set properties

Parameters

Name Type Description
Optional propertiesOptions & { animationstyle?: Type } & { clipstyle?: GraphicsPath | ClipStyle | Options ; csscursor?: string ; cssstyle?: string | CssStyle | Options ; localtransform?: Transformation ; margins?: Type<string | number> ; opacity?: number ; opacityblendmode?: BlendMode ; renderingfilter?: IFilter ; responsivestyle?: Options | ResponsiveStyle ; scalescrollstrategy?: Delegate ; transform?: string | Transformation } & { fillstyle?: Type ; linestyle?: Type } & OptionsBase & { microposleft?: number ; microposright?: number } & { title?: { alignment?: TitleAlignment } }properties to set

Returns

LogAxis

Overrides

Axis.setProperties


setProperty

setProperty(name, value): LogAxis

Sets dynamic property by name

Parameters

Name Type Description
namestringproperty name
valueanyproperty value

Returns

LogAxis

this

Inherited from

Axis.setProperty


setRenderingFilter

setRenderingFilter(filter): LogAxis

Sets filter to be applied before rendering and picking

Parameters

Name Type Description
filterIFilterfilter to set

Returns

LogAxis

this

Inherited from

Axis.setRenderingFilter


setResponsiveStyle

setResponsiveStyle(style): LogAxis

Sets responsive style.

Parameters

Name Type Description
styleOptions | ResponsiveStyleresponsive style

Returns

LogAxis

this

Inherited from

Axis.setResponsiveStyle


setScaleScrollStrategy

setScaleScrollStrategy(strategy?): LogAxis

Sets scale scroll strategy

Parameters

Name Type Description
Optional strategyDelegatescale scroll strategy

Returns

LogAxis

this

Inherited from

Axis.setScaleScrollStrategy


setSelectable

setSelectable(selectable): LogAxis

Allows to select node. If node is not selectable then child node is not selectable.

Parameters

Name Type Description
selectablebooleanflag to allow node selection

Returns

LogAxis

this

Inherited from

Axis.setSelectable


setShowTitleEllipsis

setShowTitleEllipsis(showellipsis): LogAxis

Enables/disables ellipsis in case if text is too long

Parameters

Name Type Description
showellipsisbooleantrue for ellipsis

Returns

LogAxis

this

Inherited from

Axis.setShowTitleEllipsis


setSilent

setSilent(bool): LogAxis

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

LogAxis

this

Inherited from

Axis.setSilent


setTag

setTag(tag): LogAxis

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

Parameters

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

Returns

LogAxis

this

Inherited from

Axis.setTag


setTextStyle

setTextStyle(textStyle, merge?): LogAxis

Set text style

Parameters

Name Type Description
textStyleTypea new shape text style
Optional mergebooleantrue if you want to merge textStyle with existing attribute, false by default

Returns

LogAxis

this

Inherited from

Axis.setTextStyle


setTickGenerator

setTickGenerator(tickGenerator): LogAxis

Sets tick generator

Parameters

Name Type Description
tickGeneratorTickGenerator | Optionsa tick generator to be used

Returns

LogAxis

this

Inherited from

Axis.setTickGenerator


setTickPosition

setTickPosition(position): LogAxis

Sets tick position as text

Parameters

Name Type
positionstring

Returns

LogAxis

Inherited from

Axis.setTickPosition


setTitle

setTitle(title): LogAxis

Set title

Parameters

Name Type Description
titlestring | Titleaxis title text or title object

Returns

LogAxis

this

Inherited from

Axis.setTitle


setTitleAlignment

setTitleAlignment(titleAlignment): LogAxis

Set title alignment

Parameters

Name Type Description
titleAlignmentTitleAlignmenttitle alignment

Returns

LogAxis


setTitleAnchor

setTitleAnchor(titleAnchor): LogAxis

Set title alignment

Parameters

Name Type Description
titleAnchorAnchorTypeanchor

Returns

LogAxis

Inherited from

Axis.setTitleAnchor


setTitleMargin

setTitleMargin(titleMargin, merge?): LogAxis

Sets title margin

Parameters

Name Type Description
titleMarginType<string | number>title margin style
Optional mergebooleantrue if you want to merge paddingStyle with existing attribute, false by default

Returns

LogAxis

this

Inherited from

Axis.setTitleMargin


setTitleOffset

setTitleOffset(titleOffset): LogAxis

Sets title offset

Parameters

Name Type Description
titleOffsetnumber | Point | Options | Dimensionoffset

Returns

LogAxis

Inherited from

Axis.setTitleOffset


setTitleText

setTitleText(titleText): LogAxis

Sets title text

Parameters

Name Type Description
titleTextstringtitle text

Returns

LogAxis

this

Inherited from

Axis.setTitleText


setTitleTextStyle

setTitleTextStyle(titleTextStyle, merge?): LogAxis

Set axis title text style

Parameters

Name Type Description
titleTextStyleTypea new title text style
Optional mergebooleantrue if you want to merge textStyle with existing attribute, false by default

Returns

LogAxis

this

Inherited from

Axis.setTitleTextStyle


setTitleVisible

setTitleVisible(visible): LogAxis

Set title visibility state

Parameters

Name Type Description
visiblebooleanvisible title

Returns

LogAxis

Inherited from

Axis.setTitleVisible


setVisible

setVisible(value): LogAxis

Sets visibility of the node. Send event Events.VisibilityChanged

Parameters

Name Type Description
valuebooleanflag specifying visibility of the node

Returns

LogAxis

this

Inherited from

Axis.setVisible


setZIndex

setZIndex(value): LogAxis

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

Parameters

Name Type Description
valuenumberindex determining node z-position

Returns

LogAxis

this

Inherited from

Axis.setZIndex


shear

shear(shx, shy): LogAxis

Shear this node's bounds

Parameters

Name Type Description
shxnumberx-axis shear
shynumbery-axis shear

Returns

LogAxis

this

Inherited from

Axis.shear


toString

toString(): string

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

Returns

string

A string representation

Inherited from

Axis.toString


translate

translate(tx, ty): LogAxis

Translate bounds

Parameters

Name Type Description
txnumberx translation
tynumbery translation

Returns

LogAxis

this

Inherited from

Axis.translate


unregisterAnimationStyle

unregisterAnimationStyle(root): void

Unregister animation style.

Parameters

Name Type Description
rootNoderoot node for node

Returns

void

Inherited from

Axis.unregisterAnimationStyle


updateAxisDimension

updateAxisDimension(minValue, maxValue, size?): LogAxis

Update axis dimension for new data limits and optional device size of the axis

Parameters

Name Type Description
minValuenumberminimum value
maxValuenumbermaximum value
Optional sizenumbersize of the axis in device space. if size is not provided then size is calculated based on limits and current transformation.

Returns

LogAxis

this

Inherited from

Axis.updateAxisDimension


updateSceneTransformation

updateSceneTransformation(): LogAxis

Update scene transformation

Returns

LogAxis

this

Inherited from

Axis.updateSceneTransformation


updateState

updateState(regions?, changes?): LogAxis

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

Parameters

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

Returns

LogAxis

this

Inherited from

Axis.updateState


updateTimeStamp

Protected updateTimeStamp(): LogAxis

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

Returns

LogAxis

this

Inherited from

Axis.updateTimeStamp


enableSceneGraphNotification

Static enableSceneGraphNotification(enabled): void

Enable / disable all notifications

Parameters

Name Type Description
enabledbooleansets if this object sends notifications

Returns

void

Inherited from

Axis.enableSceneGraphNotification


findParent

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

Find root of the node with specified type

Type parameters

NameType
Textends Constructor<any>

Parameters

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

Returns

InstanceType<T>

Inherited from

Axis.findParent

Static findParent(node, classType, filter?): Node

Find root of the node with specified type

Parameters

Name Type Description
nodeNodenode to start search
classTypestringinterface name to search for
Optional filter(node: Node) => booleanadditional filter to apply

Returns

Node

Inherited from

Axis.findParent


getClassName

Static getClassName(): string

Returns

string

Inherited from

Axis.getClassName


intersectsBounds

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

Check collision of the shape bounds with parent invalid area

Parameters

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

Returns

boolean

true if bounds intersect the invalid area

Inherited from

Axis.intersectsBounds


isSceneGraphNotificationEnabled

Static isSceneGraphNotificationEnabled(): boolean

Return status of the global notification for all nodes.

Returns

boolean

Inherited from

Axis.isSceneGraphNotificationEnabled