Options
All
  • Public
  • Public/Protected
  • All
Menu

Draws an axis title using our WebGL Rendering engine

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected desiredHeightProperty

desiredHeightProperty: number = 0

The height taken by the text considering current orientation orientation including padding

Protected desiredWidthProperty

desiredWidthProperty: number = 0

The width taken by the text considering current orientation orientation including padding

drawDebug

drawDebug: boolean = false

lineSpacing

lineSpacing: number = 1.1

Protected nativeLineSpacing

nativeLineSpacing: number

The line spacing for native text calculated during measure

Protected nativeTextShiftX

nativeTextShiftX: number

Protected nativeTextShiftY

nativeTextShiftY: number

Protected originalTextStyle

originalTextStyle: TAxisTitleStyle

Current not adjusted text style for the title

parentSurface

parentSurface: SciChartSurface

For internal use

Protected text

text: string | string[]

Current title

Protected textHeight

textHeight: number = 0

The height taken by the text with normal(horizontal) orientation including padding

Protected textStyle

textStyle: TAxisTitleStyle

Adjusted text style for the title

Protected textWidth

textWidth: number = 0

The width taken by the text with normal(horizontal) orientation including padding

Protected texture

texture: TTextureObject

The text texture corresponding to current title and text style.

remarks

The texture is created if {@link textStyle.useNativeText} is set to false

Protected textureManager

textureManager: TextureManager

Protected titlePosition

titlePosition: ETitlePosition

useCache

useCache: boolean = true

Protected useNativeTextProperty

useNativeTextProperty: boolean = false

Protected viewRectProperty

viewRectProperty: Rect = Rect.createZero()

Protected webAssemblyContext

webAssemblyContext: TSciChart

Accessors

desiredHeight

  • get desiredHeight(): number
  • set desiredHeight(value: number): void
  • Returns number

  • Parameters

    • value: number

    Returns void

desiredWidth

  • get desiredWidth(): number
  • set desiredWidth(value: number): void
  • Returns number

  • Parameters

    • value: number

    Returns void

useNativeText

  • get useNativeText(): boolean
  • set useNativeText(value: boolean): void
  • Returns boolean

  • Parameters

    • value: boolean

    Returns void

viewRect

  • get viewRect(): Rect

Methods

delete

  • delete(): void

draw

Protected drawInternal

Protected drawTitleDebugViewRect

Protected drawWithNativeText

Protected drawWithTexture

Protected getTextSize

Protected getTitleTexture

  • getTitleTexture(): { bitmapTexture: TSRTexture; textureHeight: number; textureWidth: number }
  • Returns { bitmapTexture: TSRTexture; textureHeight: number; textureWidth: number }

    • bitmapTexture: TSRTexture
    • textureHeight: number
    • textureWidth: number

Protected getViewRect

invalidateCache

  • invalidateCache(): void

layout

  • layout(rect: Rect): void

measure

onDpiChanged

resetCache

  • resetCache(): void

Generated using TypeDoc