API / geotoolkit / seismic / axis / TraceHeaderTickGenerator / 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.
↳
TraceHeaderTickGenerator
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 |
|---|---|---|
displayvaluetype | DisplayValueType | Display value type |
headerfield | string | number | Header field or name of the header field, or id |
headerfield | FieldDesc | Header field or name of the header field, or id |
headerfield-fieldid | string | number | Identifier (type) |
headerfield-name | string | Name of the field |
headerfield-title | string | Title of the field |
labelstyles | TextStyle | An object containing label style for specified grades |
labelstyles-alignment | AlignmentStyle | Alignment |
labelstyles-autosize | boolean | Auto font size on high definition display |
labelstyles-background | string | Background style |
labelstyles-background | FillStyle | Background style |
labelstyles-background-color | string | Color in CSS form |
labelstyles-background-evenoddmode | boolean | Even-odd fill mode |
labelstyles-background-fillpattern | Pattern | Pattern |
labelstyles-background-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 |
labelstyles-background-fillpattern-patternname | string | Name of this pattern for indexing |
labelstyles-background-fillpattern-scalable | boolean | Flag that sets scalability of the pattern coordinates, or relative to the shape it is filling (It is not supported) |
labelstyles-background-foreground | string | Foreground color |
labelstyles-background-pattern | Pattern | Pattern |
labelstyles-baseline | BaseLineStyle | Base line |
labelstyles-color | string | Color in CSS form |
labelstyles-fill | FillStyle | Text fill style |
labelstyles-font | string | Font see |
labelstyles-fonturl | string | The place from which the font will be loaded, if null - uses system fonts. It can be base64 with url keyword |
labelstyles-lineheight | string | number | Line height |
labelstyles-multiline | boolean | Allow multi-line text |
labelstyles-outline | string | Outline style |
labelstyles-outline | LineStyle | Outline style |
labelstyles-outline-color | string | Color in CSS form |
labelstyles-outline-fill | string | Optional fill style to be used to fill lines generated with this style |
labelstyles-outline-fill | FillStyle | Optional fill style to be used to fill lines generated with this style |
labelstyles-outline-linecap | CapStyle | The line cap style |
labelstyles-outline-linedashoffset | number | Line dash offset of dashed line |
labelstyles-outline-linejoin | JoinStyle | The line join style |
labelstyles-outline-pixelsnapmode | boolean | Pixel Snap Mode, default( |
labelstyles-outline-scalable | boolean | True if width should depend on transformation |
labelstyles-outline-unit | string | Optional unit for the width |
labelstyles-outline-width | number | string | The line thickness |
labelstyles-overflowwrap | OverflowWrapStyle | Overflow wrap |
labelstyles-strikethrough | string | Strikethrough style |
labelstyles-strikethrough | LineStyle | Strikethrough style |
labelstyles-textoverflow | TextOverflowStyle | Text overflow |
labelstyles-underline | string | Underline style |
labelstyles-underline | LineStyle | Underline style |
labelstyles-underlineoffset | string | number | Underline offset distance |
labelstyles-whitespace | WhiteSpaceStyle | White space |
labelstyles-wordbreak | WordBreakStyle | Word break |
minimumspan | number | Minimum span distance for labels and ticks |
pipeline | SeismicPipeline | Seismic pipeline |
pipeline-clippingmode | ClippingMode | Clipping mode |
pipeline-colors | ColorMapOptions | Colors |
pipeline-colors-alpha | number | Alpha value |
pipeline-colors-colormap | string | Color map, predefined color map name, color map options or color map instance |
pipeline-colors-colormap | ColorMap | Color map, predefined color map name, color map options or color map instance |
pipeline-colors-colormap-max | number | |
pipeline-colors-colormap-min | number | |
pipeline-colors-colormap-name | string | Color map name |
pipeline-colors-colormap-negativefillstyle | string | Positive fill style |
pipeline-colors-colormap-negativefillstyle | FillStyle | Positive fill style |
pipeline-colors-colormap-positivefillstyle | string | Positive fill style |
pipeline-colors-colormap-positivefillstyle | FillStyle | Positive fill style |
pipeline-colors-colormap-scale | KnownScales | |
pipeline-colors-colormap-size | number | Color map size |
pipeline-colors-colormap-tracelinestyle | string | Trace line style |
pipeline-colors-colormap-tracelinestyle | LineStyle | Trace line style |
pipeline-colors-opacity | number | Opacity value |
pipeline-colors-reversed | boolean | Reversed color map |
pipeline-maximumtracesperpixel | number | Define maximum traces per pixel, which can be displayed in the image |
pipeline-name | string | Pipeline name |
pipeline-normalization | NormalizationOptions | Normalization options |
pipeline-normalization-bias | number | The 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-biastype | BiasType | Bias type, default is BiasType.Relative |
pipeline-normalization-limits | Range | Normalization limits (min,max), which is used for NormalizationType.Limits only |
pipeline-normalization-limits-high | number | Upper range boundary |
pipeline-normalization-limits-low | number | Lower range boundary |
pipeline-normalization-limits-max | number | |
pipeline-normalization-limits-min | number | |
pipeline-normalization-scale | number | Scale factor |
pipeline-normalization-swing | number | The 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-type | NormalizationType | Enum of normalization types |
pipeline-plot | PlotOptions | Plot options |
pipeline-plot-clippingfactor | number | Clipping factor for traces |
pipeline-plot-decimationspacing | number | Decimation 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-densityclippingfactor | number | Clipping factor for density |
pipeline-plot-densitydecimation | boolean | Decimation for traces in density mode |
pipeline-plot-sampledecimation | DecimationType | Define samples decimation type |
pipeline-plot-type | PlotTypeOptions | Plot type |
pipeline-plot-type-interpolateddensity | boolean | Interpolated density |
pipeline-plot-type-negativecolorfill | boolean | Negative color fill |
pipeline-plot-type-negativefill | boolean | Negative fill |
pipeline-plot-type-positivecolorfill | boolean | Positive color fill |
pipeline-plot-type-positivefill | boolean | Positive fill |
pipeline-plot-type-reversed | boolean | Reversed amplitude direction |
pipeline-plot-type-simpledensity | boolean | Simple density |
pipeline-plot-type-wiggle | boolean | Wiggle |
pipeline-plot-wigglesantialiasing | boolean | Wiggles antialiasing flag |
pipeline-rasterizationlimitstype | RasterizationLimitsType | Rasterization limits type |
pipeline-renderingside | RenderingSide | Rendering side |
pipeline-statistics | Statistics | Statistics information |
pipeline-statistics-average | number | Average |
pipeline-statistics-max | number | Maximum |
pipeline-statistics-min | number | Minimum |
pipeline-statistics-rms | number | Rms |
pipeline-traceoffset | number | Original trace offset |
pipeline-version | string | Version |
tag | any | Tag user can specify info associated with current object |
tickstyles | LineStyle | An object containing tick styles for specified grades |
Constructors
• new TraceHeaderTickGenerator(options?)
| Name | Type | Description |
|---|---|---|
Optional options | Options | An object containing the properties to set |
IndexTickGenerator.constructor
• new TraceHeaderTickGenerator(pipeline, headerField?, invalidateHandler?)
| Name | Type | Description |
|---|---|---|
pipeline | SeismicPipeline | pipeline |
Optional headerField | string | number | FieldDesc | header field or name of the header field, or id |
Optional invalidateHandler | () => void | invalidateHandler |
IndexTickGenerator.constructor
Methods
▸ clone(): TraceHeaderTickGenerator
All subclasses should override copyConstructor or provide custom implementation for this method
clone
▸ 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
| Name | Type | Description |
|---|---|---|
style | EventDispatcher | connect style |
type | string | type of event or property |
callback | AttributeCallback<EventDispatcher> | function to be called |
IndexTickGenerator.connectStyle
▸ Protected copyConstructor(src, deepCopy?): TraceHeaderTickGenerator
Copy constructor
| Name | Type | Description |
|---|---|---|
src | TraceHeaderTickGenerator | Source to copy from |
Optional deepCopy | boolean | deep copy |
this
IndexTickGenerator.copyConstructor
▸ disconnectStyle(style, type, callback): TraceHeaderTickGenerator
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 |
IndexTickGenerator.disconnectStyle
▸ dispose(): void
Disposes this node, once disposes a node should not be used anymore.
Clear all listeners, and disconnect styles to avoid memory leaks.
Also aggressively 'cleanup' this node by setting some of its members to null.
void
▸ execute(delegate): TraceHeaderTickGenerator
Executes delegate and returns the result
| Name | Type | Description |
|---|---|---|
delegate | (this: TraceHeaderTickGenerator) => void | execute delegate and return the result |
▸ execute<T>(delegate): T
| Name |
|---|
T |
| Name | Type |
|---|---|
delegate | (this: TraceHeaderTickGenerator) => T |
T
▸ 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.
| Name | Type | Description |
|---|---|---|
parent | IModel | parent axis or grid |
orient | Orientation | orientation |
tickInfo | TickInfo | an info about tick |
tickIndex | number | tickIndex tick index from 0 to count-1, which resetLabels returns |
modelValue | number | model value |
string
formatted label text
IndexTickGenerator.formatLabel
▸ getAdjustLabelAnchor(grade): boolean
Gets adjust label anchor flag for specified label grade
| Name | Type | Description |
|---|---|---|
grade | string | label grade |
boolean
label anchor flag ("true" by default for any grade)
IndexTickGenerator.getAdjustLabelAnchor
▸ getBoundingBox(tickInfo, orient, labelPos, labelText?): Rect
Returns bounding box of label
| Name | Type | Description |
|---|---|---|
tickInfo | TickInfo | info about the tick |
orient | Orientation | orientation |
labelPos | number | label position along index direction |
Optional labelText | string | label text. If not defined labelPos.toString() is used. |
bbox bounding box
IndexTickGenerator.getBoundingBox
▸ getClassName(): string
string
IndexTickGenerator.getClassName
▸ getDisplayValueType(): DisplayValueType
returns type of display value
pipeline
IndexTickGenerator.getDisplayValueType
▸ getFormatLabelHandler(): LabelFormatHandler
Returns label format handler
IndexTickGenerator.getFormatLabelHandler
▸ getGrades(): string[]
Returns valid Tick string : "edge", "major", "intermediate", "minor"
string[]
array of known Tick string
▸ Protected getInvalidateMethod(): AttributeCallback<EventDispatcher>
invalidate Method
AttributeCallback<EventDispatcher>
method to invalidate this object
IndexTickGenerator.getInvalidateMethod
▸ getLabelAnchorType(grade, transformation?): AnchorType
Gets label anchor type
| Name | Type | Description |
|---|---|---|
grade | string | tick grade |
Optional transformation | Transformation | optional transformation from model to device. It is used only for custom label anchor handler |
IndexTickGenerator.getLabelAnchorType
▸ getLabelFormat(): Format
Returns label format
IndexTickGenerator.getLabelFormat
▸ getLabelRotationAngle(tickGrade): number
Returns label rotation angle
| Name | Type | Description |
|---|---|---|
tickGrade | string | Tick grade see TickGenerator.getGrades for valid Tick types |
number
label rotation angle
IndexTickGenerator.getLabelRotationAngle
▸ getLabelStyle(tickGrade): TextStyle
Returns label style
| Name | Type | Description |
|---|---|---|
tickGrade | string | Tick grade see TickGenerator.getGrades for valid Tick types |
label style
IndexTickGenerator.getLabelStyle
▸ getLabelValueTransformer(): ValueTransformer | (modelValue: number) => number
Gets label value transformer (by default: 'undefined' - no transformation is applied to a value)
ValueTransformer | (modelValue: number) => number
transformer label value transformer
IndexTickGenerator.getLabelValueTransformer
▸ getMaxLabelMetrics(parent, orientation, tickInfo, fromValue, toValue): Dimension
Returns maximum label metrics. For internal use only
| Name | Type | Description |
|---|---|---|
parent | IModel | parent axis or grid |
orientation | Orientation | orientation |
tickInfo | TickInfo | info about tick position |
fromValue | number | generate labels from |
toValue | number | generate labels to |
IndexTickGenerator.getMaxLabelMetrics
▸ Protected getMaxLabels(tickInfo, orient, fromValue, toValue): { type: string ; value: string | number }[]
Returns max labels for each type of grades
| Name | Type | Description |
|---|---|---|
tickInfo | TickInfo | info about the tick |
orient | Orientation | orientation |
fromValue | number | generate labels from |
toValue | number | generate labels to |
{ type: string ; value: string | number }[]
IndexTickGenerator.getMaxLabels
▸ getMinimumSpan(): number
Returns min device step
number
IndexTickGenerator.getMinimumSpan
▸ getNeatLimits(min, max, options): Limits
Return nice limits, default implementation is for linear model space
| Name | Type |
|---|---|
min | number |
max | number |
options | Object |
Optional options.precise | boolean |
options.size | number |
options.span | number |
IndexTickGenerator.getNeatLimits
▸ getPipeline(): SeismicPipeline
returns active pipeline
pipeline
IndexTickGenerator.getPipeline
▸ getProperties(): OptionsOut
Gets all the properties pertaining to this object
An object containing the properties
IndexTickGenerator.getProperties
▸ getTag(): any
Returns tag
any
the tag
▸ getTickSize(grade): number
Returns the size of specified tick
| Name | Type | Description |
|---|---|---|
grade | string | Grade of the tick to get the size see TickGenerator.getGrades for valid Tick types |
number
IndexTickGenerator.getTickSize
▸ getTickStyle(tickGrade): LineStyle
Returns tick style
| Name | Type | Description |
|---|---|---|
tickGrade | string | Tick Grade see TickGenerator.getGrades for valid Tick types |
line style
IndexTickGenerator.getTickStyle
▸ getVisibleLabelGrades(supported): string[]
Return an array of the visible label grades
| Name | Type | Description |
|---|---|---|
supported | string[] | supported grades see TickGenerator.getGrades for valid Tick types |
string[]
the visible grades
IndexTickGenerator.getVisibleLabelGrades
▸ getVisibleTickGrades(supported): string[]
Returns an array of the visible tick grades
| Name | Type | Description |
|---|---|---|
supported | string[] | supported grades see TickGenerator.getGrades for valid Tick types |
string[]
the visible grades
IndexTickGenerator.getVisibleTickGrades
▸ 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
IndexTickGenerator.hasEventListener
▸ isDisposed(): boolean
Returns whether this object has been disposed
boolean
▸ isSilent(): boolean
Return true if the event dispatcher doesn't notify any events
boolean
▸ isValid(parent, orient, tickInfo): boolean
Verify tick generator parameters to have better label distribution
| Name | Type | Description |
|---|---|---|
parent | IModel | parent axis or grid |
orient | Orientation | orientation |
tickInfo | TickInfo | tick info |
boolean
true if no label intersection
▸ isVisibleLabelGrade(tickGrade): boolean
Returns visibility of label for a specific tick grade
| Name | Type | Description |
|---|---|---|
tickGrade | string | Tick grade see TickGenerator.getGrades for valid Tick types |
boolean
true if label is visible
IndexTickGenerator.isVisibleLabelGrade
▸ isVisibleTickGrade(tickGrade): boolean
Returns visibility of tick for a specific tick grade
| Name | Type | Description |
|---|---|---|
tickGrade | string | Tick grade see TickGenerator.getGrades for valid Tick types |
boolean
true if the tick is visible
IndexTickGenerator.isVisibleTickGrade
▸ nextLabel(parent, orient, tickInfo, tickIndex): number
Generates information about next label
| Name | Type | Description |
|---|---|---|
parent | IModel | parent axis or grid |
orient | Orientation | orientation |
tickInfo | TickInfo | info about tick |
tickIndex | number | tickIndex tick index from 0 to count-1, which resetLabels returns |
number
the model position of the label
▸ nextTick(parent, orient, tickInfo, tickIndex): number
Generates information about next tick
| Name | Type | Description |
|---|---|---|
parent | IModel | parent axis or grid |
orient | Orientation | orientation |
tickInfo | TickInfo | info about tick |
tickIndex | number | tick index from 0 to count-1, which resetTicks returns |
number
the model position of the tick
▸ notify<E>(type, source, args?): TraceHeaderTickGenerator
Notify listeners
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | event types |
source | TickGenerator | of the event |
Optional args | EventMap[E] | arguments of the event |
this
▸ 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.
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
Optional type | E | type of the event |
Optional callback | (eventType: E, sender: TraceHeaderTickGenerator, args: EventMap[E]) => void | function to be called |
this
▸ 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.
| Name | Type |
|---|---|
E | extends string |
| Name | Type | Description |
|---|---|---|
type | E | type of event or property |
callback | (eventType: E, sender: TraceHeaderTickGenerator, args: EventMap[E]) => void | to be called |
this
▸ reset(parent, orient, tickInfo): string[]
Resets tick generator
| Name | Type | Description |
|---|---|---|
parent | IModel | parent axis or grid |
orient | Orientation | orientation |
tickInfo | TickInfo | tick info |
string[]
a supported tick grade list
▸ resetAsync(parent, orient, tickInfo, callback): void
Resets tick generator asynchronously
| Name | Type | Description |
|---|---|---|
parent | IModel | parent axis or grid |
orient | Orientation | orientation |
tickInfo | TickInfo | tick info |
callback | (x: string[]) => void | calls when asynchronous reset is done |
void
▸ resetLabels(parent, orient, tickInfo): number
Reset labels. This method is called to start iteration by labels. The implementation also sets appropriate TextStyle on labels.
| Name | Type | Description |
|---|---|---|
parent | IModel | parent axis or grid |
orient | Orientation | orientation |
tickInfo | TickInfo | an info about labels. This information is used to pass and receive information about the current tick or label |
number
labels count for the current tick type
IndexTickGenerator.resetLabels
▸ resetMaxLabels(): TraceHeaderTickGenerator
Reset max label info
this
IndexTickGenerator.resetMaxLabels
▸ 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.
| Name | Type | Description |
|---|---|---|
parent | IModel | parent axis or grid |
orient | Orientation | orientation |
tickInfo | TickInfo | an info about labels. This information is used to pass and receive information about the current tick or label |
number
ticks count for the current tick type. The implementation returns 0 if the ticks can not be drawn; a positive number otherwise.
▸ setAdjustLabelAnchor(grade, flag): TraceHeaderTickGenerator
Sets adjust label anchor flag for specified label grade
| Name | Type | Description |
|---|---|---|
grade | string | label grade |
flag | boolean | adjust label anchor flag |
this
IndexTickGenerator.setAdjustLabelAnchor
▸ setDisplayValueType(displayValueType): TraceHeaderTickGenerator
set type of display value, support Original(trace number) and Mapped(trace position)
| Name | Type | Description |
|---|---|---|
displayValueType | DisplayValueType | type of display value |
this
IndexTickGenerator.setDisplayValueType
▸ setFormatLabelHandler(handler): TraceHeaderTickGenerator
Sets format label handler
| Name | Type | Description |
|---|---|---|
handler | LabelFormatHandler | Format | Function called to generate the label of a value. Format type is deprecated since 4.0 use .setLabelFormat() instead |
this
IndexTickGenerator.setFormatLabelHandler
▸ setLabelAnchorType(grade, anchorType): TraceHeaderTickGenerator
Sets label anchor type
| Name | Type | Description |
|---|---|---|
grade | string | tick grade |
anchorType | AnchorType | AnchorStyleHandler | anchorType |
this
IndexTickGenerator.setLabelAnchorType
▸ setLabelFormat(format): TraceHeaderTickGenerator
Sets label format
| Name | Type | Description |
|---|---|---|
format | Format | format |
this
IndexTickGenerator.setLabelFormat
▸ 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);| Name | Type | Description |
|---|---|---|
tickGrade | string | Tick grade see TickGenerator.getGrades for valid Tick types |
angle | number | label rotation angle, in radians |
this
IndexTickGenerator.setLabelRotationAngle
▸ setLabelStyle(tickGrade, labelStyle?, merge?): TraceHeaderTickGenerator
Sets label style
| Name | Type | Description |
|---|---|---|
tickGrade | string | Tick grade see TickGenerator.getGrades for valid Tick types |
Optional labelStyle | Type | tick text style |
Optional merge | boolean | true if you want to merge labelStyle with existing attribute, false by default |
this
IndexTickGenerator.setLabelStyle
▸ setLabelValueTransformer(transformer): TraceHeaderTickGenerator
Sets label value transformer (optional)
| Name | Type | Description |
|---|---|---|
transformer | ValueTransformer | (modelValue: number) => number | label value transformer |
this
IndexTickGenerator.setLabelValueTransformer
▸ setMinimumSpan(minimumSpan): TraceHeaderTickGenerator
Set min device step
| Name | Type | Description |
|---|---|---|
minimumSpan | number | min span between ticks |
this
IndexTickGenerator.setMinimumSpan
▸ setPipeline(pipeline): TraceHeaderTickGenerator
set pipeline
| Name | Type | Description |
|---|---|---|
pipeline | SeismicPipeline | Seismic Pipeline |
this
IndexTickGenerator.setPipeline
▸ setProperties(properties?): TraceHeaderTickGenerator
Sets all the properties pertaining to this object
| Name | Type | Description |
|---|---|---|
Optional properties | Options | An object containing the properties to set |
this
IndexTickGenerator.setProperties
▸ setSilent(bool): TraceHeaderTickGenerator
Set silent mode
| Name | Type | Description |
|---|---|---|
bool | boolean | flag to enable silent mode |
this
▸ setTag(tag): TraceHeaderTickGenerator
Sets tag
| Name | Type | Description |
|---|---|---|
tag | any | user can specify info associated with current object |
this
▸ setTickOptions(properties?, tickGrade?): TraceHeaderTickGenerator
Sets all the properties pertaining to this tick
| Name | Type | Description |
|---|---|---|
Optional properties | Record<string, TickOptions> | An object containing the properties to set |
Optional tickGrade | string | Tick grade |
this
IndexTickGenerator.setTickOptions
▸ setTickSize(grade, size): TraceHeaderTickGenerator
Changes the size of specified ticks
| Name | Type | Description |
|---|---|---|
grade | string | Grade of the tick to set the size see TickGenerator.getGrades for valid Tick types |
size | number | New size |
this
IndexTickGenerator.setTickSize
▸ setTickStyle(tickGrade, lineStyle?, merge?): TraceHeaderTickGenerator
Sets tick style
| Name | Type | Description |
|---|---|---|
tickGrade | string | Tick grade see TickGenerator.getGrades for valid Tick types |
Optional lineStyle | Type | line style for the tick |
Optional merge | boolean | true if you want to merge lineStyle with existing attribute, false by default |
this
IndexTickGenerator.setTickStyle
▸ setVisibleLabelGrade(tickGrade, visible): TraceHeaderTickGenerator
Sets visibility of label for a specific tick grade Implementation of the reset should check visibility of the labels.
| Name | Type | Description |
|---|---|---|
tickGrade | string | Tick grade see TickGenerator.getGrades for valid Tick types |
visible | boolean | tick label visibility flag |
this
IndexTickGenerator.setVisibleLabelGrade
▸ setVisibleTickGrade(tickGrade, visible): TraceHeaderTickGenerator
Sets visibility of tick for a specific tick grade Implementation of the reset should check visibility of the ticks
| Name | Type | Description |
|---|---|---|
tickGrade | string | Tick grade see TickGenerator.getGrades for valid Tick types |
visible | boolean | tick grade visibility flag |
this
IndexTickGenerator.setVisibleTickGrade
▸ Static getClassName(): string
string