Last updated

API / geotoolkit / seismic / axis / TraceHeaderTickGenerator / TraceHeaderTickGenerator

Class: TraceHeaderTickGenerator

axis.TraceHeaderTickGenerator.TraceHeaderTickGenerator

Defines a tick generator for seismic traces header values. This tick generator can display ticks for the seismic traces headers.
It will retrieve the header values from the given SeismicPipeline for the given FieldDesc and display ticks for those trace headers.

Hierarchy

Table of contents

Constructors
[new TraceHeaderTickGenerator(options)](/solutions/geotoolkit/apis/classes/geotoolkit.seismic.axis-3.traceheadertickgenerator.traceheadertickgenerator.md#new traceheadertickgenerator(options))[new TraceHeaderTickGenerator(pipeline, headerField, invalidateHandler)](/solutions/geotoolkit/apis/classes/geotoolkit.seismic.axis-3.traceheadertickgenerator.traceheadertickgenerator.md#new traceheadertickgenerator(pipeline, headerfield, invalidatehandler))
Methods
Css Properties
Name Type Description
displayvaluetypeDisplayValueTypeDisplay value type
headerfieldstring | numberHeader field or name of the header field, or id
headerfieldFieldDescHeader field or name of the header field, or id
headerfield-fieldidstring | numberIdentifier (type)
headerfield-namestringName of the field
headerfield-titlestringTitle of the field
labelstylesTextStyleAn object containing label style for specified grades
labelstyles-alignmentAlignmentStyleAlignment
labelstyles-autosizebooleanAuto font size on high definition display
labelstyles-backgroundstringBackground style
labelstyles-backgroundFillStyleBackground style
labelstyles-background-colorstringColor in CSS form
labelstyles-background-evenoddmodebooleanEven-odd fill mode
labelstyles-background-fillpatternPatternPattern
labelstyles-background-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
labelstyles-background-fillpattern-patternnamestringName of this pattern for indexing
labelstyles-background-fillpattern-scalablebooleanFlag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported)
labelstyles-background-foregroundstringForeground color
labelstyles-background-patternPatternPattern
labelstyles-baselineBaseLineStyleBase line
labelstyles-colorstringColor in CSS form
labelstyles-fillFillStyleText fill style
labelstyles-fontstringFont see
labelstyles-fonturlstringThe place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword
labelstyles-lineheightstring | numberLine height
labelstyles-multilinebooleanAllow multi-line text
labelstyles-outlinestringOutline style
labelstyles-outlineLineStyleOutline style
labelstyles-outline-colorstringColor in CSS form
labelstyles-outline-fillstringOptional fill style to be used to fill lines generated with this style
labelstyles-outline-fillFillStyleOptional fill style to be used to fill lines generated with this style
labelstyles-outline-linecapCapStyleThe line cap style
labelstyles-outline-linedashoffsetnumberLine dash offset of dashed line
labelstyles-outline-linejoinJoinStyleThe line join style
labelstyles-outline-pixelsnapmodebooleanPixel Snap Mode, default(
labelstyles-outline-scalablebooleanTrue if width should depend on transformation
labelstyles-outline-unitstringOptional unit for the width
labelstyles-outline-widthnumber | stringThe line thickness
labelstyles-overflowwrapOverflowWrapStyleOverflow wrap
labelstyles-strikethroughstringStrikethrough style
labelstyles-strikethroughLineStyleStrikethrough style
labelstyles-textoverflowTextOverflowStyleText overflow
labelstyles-underlinestringUnderline style
labelstyles-underlineLineStyleUnderline style
labelstyles-underlineoffsetstring | numberUnderline offset distance
labelstyles-whitespaceWhiteSpaceStyleWhite space
labelstyles-wordbreakWordBreakStyleWord break
minimumspannumberMinimum span distance for labels and ticks
pipelineSeismicPipelineSeismic pipeline
pipeline-clippingmodeClippingModeClipping mode
pipeline-colorsColorMapOptionsColors
pipeline-colors-alphanumberAlpha value
pipeline-colors-colormapstringColor map, predefined color map name, color map options or color map instance
pipeline-colors-colormapColorMapColor map, predefined color map name, color map options or color map instance
pipeline-colors-colormap-maxnumber
pipeline-colors-colormap-minnumber
pipeline-colors-colormap-namestringColor map name
pipeline-colors-colormap-negativefillstylestringPositive fill style
pipeline-colors-colormap-negativefillstyleFillStylePositive fill style
pipeline-colors-colormap-positivefillstylestringPositive fill style
pipeline-colors-colormap-positivefillstyleFillStylePositive fill style
pipeline-colors-colormap-scaleKnownScales
pipeline-colors-colormap-sizenumberColor map size
pipeline-colors-colormap-tracelinestylestringTrace line style
pipeline-colors-colormap-tracelinestyleLineStyleTrace line style
pipeline-colors-opacitynumberOpacity value
pipeline-colors-reversedbooleanReversed color map
pipeline-maximumtracesperpixelnumberDefine maximum traces per pixel, which can be displayed in the image
pipeline-namestringPipeline name
pipeline-normalizationNormalizationOptionsNormalization options
pipeline-normalization-biasnumberThe bias value defines the start of the VA fill Bias can be null (default - means that fill starts from trace location), in swing model space from -1 to 1, or in normalization limits model space, see biastype option
pipeline-normalization-biastypeBiasTypeBias type, default is BiasType.Relative
pipeline-normalization-limitsRangeNormalization limits (min,max), which is used for NormalizationType.Limits only
pipeline-normalization-limits-highnumberUpper range boundary
pipeline-normalization-limits-lownumberLower range boundary
pipeline-normalization-limits-maxnumber
pipeline-normalization-limits-minnumber
pipeline-normalization-scalenumberScale factor
pipeline-normalization-swingnumberThe location in trace spacing units where the normalized value of data samples are mapped. This location can be modified by specifying a normalization scale factor
pipeline-normalization-typeNormalizationTypeEnum of normalization types
pipeline-plotPlotOptionsPlot options
pipeline-plot-clippingfactornumberClipping factor for traces
pipeline-plot-decimationspacingnumberDecimation spacing is the minimum spacing between seismic traces on a seismic image. It is a measured in device units (pixels). Decimation spacing is an important factor when interpreting seismic images, as it affects the resolution of the image. The greater the decimation spacing, the lower the resolution of the image. A higher resolution image will allow for more detail in the interpretation, while a lower resolution image will be less detailed
pipeline-plot-densityclippingfactornumberClipping factor for density
pipeline-plot-densitydecimationbooleanDecimation for traces in density mode
pipeline-plot-sampledecimationDecimationTypeDefine samples decimation type
pipeline-plot-typePlotTypeOptionsPlot type
pipeline-plot-type-interpolateddensitybooleanInterpolated density
pipeline-plot-type-negativecolorfillbooleanNegative color fill
pipeline-plot-type-negativefillbooleanNegative fill
pipeline-plot-type-positivecolorfillbooleanPositive color fill
pipeline-plot-type-positivefillbooleanPositive fill
pipeline-plot-type-reversedbooleanReversed amplitude direction
pipeline-plot-type-simpledensitybooleanSimple density
pipeline-plot-type-wigglebooleanWiggle
pipeline-plot-wigglesantialiasingbooleanWiggles antialiasing flag
pipeline-rasterizationlimitstypeRasterizationLimitsTypeRasterization limits type
pipeline-renderingsideRenderingSideRendering side
pipeline-statisticsStatisticsStatistics information
pipeline-statistics-averagenumberAverage
pipeline-statistics-maxnumberMaximum
pipeline-statistics-minnumberMinimum
pipeline-statistics-rmsnumberRms
pipeline-traceoffsetnumberOriginal trace offset
pipeline-versionstringVersion
taganyTag user can specify info associated with current object
tickstylesLineStyleAn object containing tick styles for specified grades

Contents

Constructors

new TraceHeaderTickGenerator(options)

new TraceHeaderTickGenerator(options?)

Parameters

Name Type Description
Optional optionsOptionsAn object containing the properties to set

Overrides

IndexTickGenerator.constructor


new TraceHeaderTickGenerator(pipeline, headerField, invalidateHandler)

new TraceHeaderTickGenerator(pipeline, headerField?, invalidateHandler?)

Parameters

Name Type Description
pipelineSeismicPipelinepipeline
Optional headerFieldstring | number | FieldDescheader field or name of the header field, or id
Optional invalidateHandler() => voidinvalidateHandler

Overrides

IndexTickGenerator.constructor

Methods

clone

clone(): TraceHeaderTickGenerator

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

Returns

TraceHeaderTickGenerator

clone

Overrides

IndexTickGenerator.clone


connectStyle

connectStyle(style, type, callback): TraceHeaderTickGenerator

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

TraceHeaderTickGenerator

Inherited from

IndexTickGenerator.connectStyle


copyConstructor

Protected copyConstructor(src, deepCopy?): TraceHeaderTickGenerator

Copy constructor

Parameters

Name Type Description
srcTraceHeaderTickGeneratorSource to copy from
Optional deepCopybooleandeep copy

Returns

TraceHeaderTickGenerator

this

Overrides

IndexTickGenerator.copyConstructor


disconnectStyle

disconnectStyle(style, type, callback): TraceHeaderTickGenerator

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

TraceHeaderTickGenerator

Inherited from

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

IndexTickGenerator.dispose


execute

execute(delegate): TraceHeaderTickGenerator

Executes delegate and returns the result

Parameters

Name Type Description
delegate(this: TraceHeaderTickGenerator) => voidexecute delegate and return the result

Returns

TraceHeaderTickGenerator

Inherited from

IndexTickGenerator.execute

execute<T>(delegate): T

Type parameters

Name
T

Parameters

Name Type
delegate(this: TraceHeaderTickGenerator) => T

Returns

T

Inherited from

IndexTickGenerator.execute


formatLabel

formatLabel(parent, orient, tickInfo, tickIndex, modelValue): string

Formats label text. This method must be overridden in the base classes and the the base class method must be called first.

Parameters

Name Type Description
parentIModelparent axis or grid
orientOrientationorientation
tickInfoTickInfoan info about tick
tickIndexnumbertickIndex tick index from 0 to count-1, which resetLabels returns
modelValuenumbermodel value

Returns

string

formatted label text

Inherited from

IndexTickGenerator.formatLabel


getAdjustLabelAnchor

getAdjustLabelAnchor(grade): boolean

Gets adjust label anchor flag for specified label grade

Parameters

Name Type Description
gradestringlabel grade

Returns

boolean

label anchor flag ("true" by default for any grade)

Inherited from

IndexTickGenerator.getAdjustLabelAnchor


getBoundingBox

getBoundingBox(tickInfo, orient, labelPos, labelText?): Rect

Returns bounding box of label

Parameters

Name Type Description
tickInfoTickInfoinfo about the tick
orientOrientationorientation
labelPosnumberlabel position along index direction
Optional labelTextstringlabel text. If not defined labelPos.toString() is used.

Returns

Rect

bbox bounding box

Inherited from

IndexTickGenerator.getBoundingBox


getClassName

getClassName(): string

Returns

string

Inherited from

IndexTickGenerator.getClassName


getDisplayValueType

getDisplayValueType(): DisplayValueType

returns type of display value

Returns

DisplayValueType

pipeline

Inherited from

IndexTickGenerator.getDisplayValueType


getFormatLabelHandler

getFormatLabelHandler(): LabelFormatHandler

Returns label format handler

Returns

LabelFormatHandler

Inherited from

IndexTickGenerator.getFormatLabelHandler


getGrades

getGrades(): string[]

Returns valid Tick string : "edge", "major", "intermediate", "minor"

Returns

string[]

array of known Tick string

Inherited from

IndexTickGenerator.getGrades


getInvalidateMethod

Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>

invalidate Method

Returns

AttributeCallback<EventDispatcher>

method to invalidate this object

Inherited from

IndexTickGenerator.getInvalidateMethod


getLabelAnchorType

getLabelAnchorType(grade, transformation?): AnchorType

Gets label anchor type

Parameters

Name Type Description
gradestringtick grade
Optional transformationTransformationoptional transformation from model to device. It is used only for custom label anchor handler

Returns

AnchorType

Inherited from

IndexTickGenerator.getLabelAnchorType


getLabelFormat

getLabelFormat(): Format

Returns label format

Returns

Format

Inherited from

IndexTickGenerator.getLabelFormat


getLabelRotationAngle

getLabelRotationAngle(tickGrade): number

Returns label rotation angle

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types

Returns

number

label rotation angle

Inherited from

IndexTickGenerator.getLabelRotationAngle


getLabelStyle

getLabelStyle(tickGrade): TextStyle

Returns label style

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types

Returns

TextStyle

label style

Inherited from

IndexTickGenerator.getLabelStyle


getLabelValueTransformer

getLabelValueTransformer(): ValueTransformer | (modelValue: number) => number

Gets label value transformer (by default: 'undefined' - no transformation is applied to a value)

Returns

ValueTransformer | (modelValue: number) => number

transformer label value transformer

Inherited from

IndexTickGenerator.getLabelValueTransformer


getMaxLabelMetrics

getMaxLabelMetrics(parent, orientation, tickInfo, fromValue, toValue): Dimension

Returns maximum label metrics. For internal use only

Parameters

Name Type Description
parentIModelparent axis or grid
orientationOrientationorientation
tickInfoTickInfoinfo about tick position
fromValuenumbergenerate labels from
toValuenumbergenerate labels to

Returns

Dimension

Inherited from

IndexTickGenerator.getMaxLabelMetrics


getMaxLabels

Protected getMaxLabels(tickInfo, orient, fromValue, toValue): { type: string ; value: string | number }[]

Returns max labels for each type of grades

Parameters

Name Type Description
tickInfoTickInfoinfo about the tick
orientOrientationorientation
fromValuenumbergenerate labels from
toValuenumbergenerate labels to

Returns

{ type: string ; value: string | number }[]

Inherited from

IndexTickGenerator.getMaxLabels


getMinimumSpan

getMinimumSpan(): number

Returns min device step

Returns

number

Inherited from

IndexTickGenerator.getMinimumSpan


getNeatLimits

getNeatLimits(min, max, options): Limits

Return nice limits, default implementation is for linear model space

Parameters

Name Type
minnumber
maxnumber
optionsObject
Optional options.preciseboolean
options.sizenumber
options.spannumber

Returns

Limits

Inherited from

IndexTickGenerator.getNeatLimits


getPipeline

getPipeline(): SeismicPipeline

returns active pipeline

Returns

SeismicPipeline

pipeline

Inherited from

IndexTickGenerator.getPipeline


getProperties

getProperties(): OptionsOut

Gets all the properties pertaining to this object

Returns

OptionsOut

An object containing the properties

Overrides

IndexTickGenerator.getProperties


getTag

getTag(): any

Returns tag

Returns

any

the tag

Inherited from

IndexTickGenerator.getTag


getTickSize

getTickSize(grade): number

Returns the size of specified tick

Parameters

Name Type Description
gradestringGrade of the tick to get the size see TickGenerator.getGrades for valid Tick types

Returns

number

Inherited from

IndexTickGenerator.getTickSize


getTickStyle

getTickStyle(tickGrade): LineStyle

Returns tick style

Parameters

Name Type Description
tickGradestringTick Grade see TickGenerator.getGrades for valid Tick types

Returns

LineStyle

line style

Inherited from

IndexTickGenerator.getTickStyle


getVisibleLabelGrades

getVisibleLabelGrades(supported): string[]

Return an array of the visible label grades

Parameters

Name Type Description
supportedstring[]supported grades see TickGenerator.getGrades for valid Tick types

Returns

string[]

the visible grades

Inherited from

IndexTickGenerator.getVisibleLabelGrades


getVisibleTickGrades

getVisibleTickGrades(supported): string[]

Returns an array of the visible tick grades

Parameters

Name Type Description
supportedstring[]supported grades see TickGenerator.getGrades for valid Tick types

Returns

string[]

the visible grades

Inherited from

IndexTickGenerator.getVisibleTickGrades


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

IndexTickGenerator.hasEventListener


isDisposed

isDisposed(): boolean

Returns whether this object has been disposed

Returns

boolean

Inherited from

IndexTickGenerator.isDisposed


isSilent

isSilent(): boolean

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

Returns

boolean

Inherited from

IndexTickGenerator.isSilent


isValid

isValid(parent, orient, tickInfo): boolean

Verify tick generator parameters to have better label distribution

Parameters

Name Type Description
parentIModelparent axis or grid
orientOrientationorientation
tickInfoTickInfotick info

Returns

boolean

true if no label intersection

Inherited from

IndexTickGenerator.isValid


isVisibleLabelGrade

isVisibleLabelGrade(tickGrade): boolean

Returns visibility of label for a specific tick grade

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types

Returns

boolean

true if label is visible

Inherited from

IndexTickGenerator.isVisibleLabelGrade


isVisibleTickGrade

isVisibleTickGrade(tickGrade): boolean

Returns visibility of tick for a specific tick grade

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types

Returns

boolean

true if the tick is visible

Inherited from

IndexTickGenerator.isVisibleTickGrade


nextLabel

nextLabel(parent, orient, tickInfo, tickIndex): number

Generates information about next label

Parameters

Name Type Description
parentIModelparent axis or grid
orientOrientationorientation
tickInfoTickInfoinfo about tick
tickIndexnumbertickIndex tick index from 0 to count-1, which resetLabels returns

Returns

number

the model position of the label

Inherited from

IndexTickGenerator.nextLabel


nextTick

nextTick(parent, orient, tickInfo, tickIndex): number

Generates information about next tick

Parameters

Name Type Description
parentIModelparent axis or grid
orientOrientationorientation
tickInfoTickInfoinfo about tick
tickIndexnumbertick index from 0 to count-1, which resetTicks returns

Returns

number

the model position of the tick

Inherited from

IndexTickGenerator.nextTick


notify

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

Notify listeners

Type parameters

NameType
Eextends string

Parameters

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

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.notify


off

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

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

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.off


on

on<E>(type, callback): TraceHeaderTickGenerator

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: TraceHeaderTickGenerator, args: EventMap[E]) => voidto be called

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.on


reset

reset(parent, orient, tickInfo): string[]

Resets tick generator

Parameters

Name Type Description
parentIModelparent axis or grid
orientOrientationorientation
tickInfoTickInfotick info

Returns

string[]

a supported tick grade list

Inherited from

IndexTickGenerator.reset


resetAsync

resetAsync(parent, orient, tickInfo, callback): void

Resets tick generator asynchronously

Parameters

Name Type Description
parentIModelparent axis or grid
orientOrientationorientation
tickInfoTickInfotick info
callback(x: string[]) => voidcalls when asynchronous reset is done

Returns

void

Inherited from

IndexTickGenerator.resetAsync


resetLabels

resetLabels(parent, orient, tickInfo): number

Reset labels. This method is called to start iteration by labels. The implementation also sets appropriate TextStyle on labels.

Parameters

Name Type Description
parentIModelparent axis or grid
orientOrientationorientation
tickInfoTickInfoan info about labels. This information is used to pass and receive information about the current tick or label

Returns

number

labels count for the current tick type

Inherited from

IndexTickGenerator.resetLabels


resetMaxLabels

resetMaxLabels(): TraceHeaderTickGenerator

Reset max label info

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.resetMaxLabels


resetTicks

resetTicks(parent, orient, tickInfo): number

Resets ticks. This method is called to start iteration by ticks. The implementation also sets appropriate LineStyle on the ticks as well as their tick size.

Parameters

Name Type Description
parentIModelparent axis or grid
orientOrientationorientation
tickInfoTickInfoan info about labels. This information is used to pass and receive information about the current tick or label

Returns

number

ticks count for the current tick type. The implementation returns 0 if the ticks can not be drawn; a positive number otherwise.

Inherited from

IndexTickGenerator.resetTicks


setAdjustLabelAnchor

setAdjustLabelAnchor(grade, flag): TraceHeaderTickGenerator

Sets adjust label anchor flag for specified label grade

Parameters

Name Type Description
gradestringlabel grade
flagbooleanadjust label anchor flag

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setAdjustLabelAnchor


setDisplayValueType

setDisplayValueType(displayValueType): TraceHeaderTickGenerator

set type of display value, support Original(trace number) and Mapped(trace position)

Parameters

Name Type Description
displayValueTypeDisplayValueTypetype of display value

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setDisplayValueType


setFormatLabelHandler

setFormatLabelHandler(handler): TraceHeaderTickGenerator

Sets format label handler

Parameters

Name Type Description
handlerLabelFormatHandler | FormatFunction called to generate the label of a value. Format type is deprecated since 4.0 use .setLabelFormat() instead

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setFormatLabelHandler


setLabelAnchorType

setLabelAnchorType(grade, anchorType): TraceHeaderTickGenerator

Sets label anchor type

Parameters

Name Type Description
gradestringtick grade
anchorTypeAnchorType | AnchorStyleHandleranchorType

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setLabelAnchorType


setLabelFormat

setLabelFormat(format): TraceHeaderTickGenerator

Sets label format

Parameters

Name Type Description
formatFormatformat

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setLabelFormat


setLabelRotationAngle

setLabelRotationAngle(tickGrade, angle): TraceHeaderTickGenerator

Sets label rotation angle

Example

// user can customize the label rotation angle based on tick grade.
tickGenerator.setLabelRotationAngle('major', -Math.PI / 2);

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types
anglenumberlabel rotation angle, in radians

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setLabelRotationAngle


setLabelStyle

setLabelStyle(tickGrade, labelStyle?, merge?): TraceHeaderTickGenerator

Sets label style

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types
Optional labelStyleTypetick text style
Optional mergebooleantrue if you want to merge labelStyle with existing attribute, false by default

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setLabelStyle


setLabelValueTransformer

setLabelValueTransformer(transformer): TraceHeaderTickGenerator

Sets label value transformer (optional)

Parameters

Name Type Description
transformerValueTransformer | (modelValue: number) => numberlabel value transformer

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setLabelValueTransformer


setMinimumSpan

setMinimumSpan(minimumSpan): TraceHeaderTickGenerator

Set min device step

Parameters

Name Type Description
minimumSpannumbermin span between ticks

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setMinimumSpan


setPipeline

setPipeline(pipeline): TraceHeaderTickGenerator

set pipeline

Parameters

Name Type Description
pipelineSeismicPipelineSeismic Pipeline

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setPipeline


setProperties

setProperties(properties?): TraceHeaderTickGenerator

Sets all the properties pertaining to this object

Parameters

Name Type Description
Optional propertiesOptionsAn object containing the properties to set

Returns

TraceHeaderTickGenerator

this

Overrides

IndexTickGenerator.setProperties


setSilent

setSilent(bool): TraceHeaderTickGenerator

Set silent mode

Parameters

Name Type Description
boolbooleanflag to enable silent mode

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setSilent


setTag

setTag(tag): TraceHeaderTickGenerator

Sets tag

Parameters

Name Type Description
taganyuser can specify info associated with current object

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setTag


setTickOptions

setTickOptions(properties?, tickGrade?): TraceHeaderTickGenerator

Sets all the properties pertaining to this tick

Parameters

Name Type Description
Optional propertiesRecord<string, TickOptions>An object containing the properties to set
Optional tickGradestringTick grade

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setTickOptions


setTickSize

setTickSize(grade, size): TraceHeaderTickGenerator

Changes the size of specified ticks

Parameters

Name Type Description
gradestringGrade of the tick to set the size see TickGenerator.getGrades for valid Tick types
sizenumberNew size

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setTickSize


setTickStyle

setTickStyle(tickGrade, lineStyle?, merge?): TraceHeaderTickGenerator

Sets tick style

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types
Optional lineStyleTypeline style for the tick
Optional mergebooleantrue if you want to merge lineStyle with existing attribute, false by default

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setTickStyle


setVisibleLabelGrade

setVisibleLabelGrade(tickGrade, visible): TraceHeaderTickGenerator

Sets visibility of label for a specific tick grade Implementation of the reset should check visibility of the labels.

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types
visiblebooleantick label visibility flag

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setVisibleLabelGrade


setVisibleTickGrade

setVisibleTickGrade(tickGrade, visible): TraceHeaderTickGenerator

Sets visibility of tick for a specific tick grade Implementation of the reset should check visibility of the ticks

Parameters

Name Type Description
tickGradestringTick grade see TickGenerator.getGrades for valid Tick types
visiblebooleantick grade visibility flag

Returns

TraceHeaderTickGenerator

this

Inherited from

IndexTickGenerator.setVisibleTickGrade


getClassName

Static getClassName(): string

Returns

string

Inherited from

IndexTickGenerator.getClassName