Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UILegendBoxPanel <TitleType, DefaultEntryType >

Index

Properties

engine

engine: PublicEngine

pixelScale

pixelScale: Vec2<Scale>

uiScale

uiScale: Vec2<Scale>

Methods

add

  • add(value: Attachable | Chart | Dashboard, disposeOnClick: undefined | false | true, tag: undefined | string, builder: UIElementBuilder<EntryType>): EntryType | EntryType[] | EntryType[][]
  • Type parameters

    Parameters

    • value: Attachable | Chart | Dashboard
    • Optional disposeOnClick: undefined | false | true
    • Optional tag: undefined | string
    • Optional builder: UIElementBuilder<EntryType>

    Returns EntryType | EntryType[] | EntryType[][]

    Entry attached to a Series or Collection of Entries in case of Chart or Dashboard

addLegendBox

  • Type parameters

    • UIElementType: UIPart

    Parameters

    Returns UIElementType & UIElement

    LegendBox that fulfills interfaces: UIElementType (typeparam) and UIElement

addUIElement

  • Type parameters

    • UIElementType: UIPart

    Parameters

    Returns UIElementType & UIElement

    Object that fulfills interfaces: UIElementType (typeparam) and UIElement

dispose

  • dispose(): this
  • Returns this

    Object itself for fluent interface

getBackgroundFillStyle

getBackgroundStrokeStyle

  • getBackgroundStrokeStyle(): LineStyle
  • Returns LineStyle

    LineStyle

getMinimumSize

  • getMinimumSize(): undefined
  • Returns undefined

    Legendbox minimum x & y dimensions as Vec2.

offResize

  • offResize(token: Token): boolean
  • Parameters

    • token: Token

    Returns boolean

    True if the listener is successfully removed and false if it is not found

onResize

  • onResize(handler: function): Token
  • Parameters

    • handler: function
        • Parameters

          • obj: this
          • width: pixel
          • height: pixel
          • engineWidth: pixel
          • engineHeight: pixel

          Returns void

    Returns Token

    Token of subscription

saveToFile

  • saveToFile(fileName: string, type: undefined | string, encoderOptions: undefined | number): this
  • Parameters

    • fileName: string
    • Optional type: undefined | string
    • Optional encoderOptions: undefined | number

    Returns this

setBackgroundFillStyle

setBackgroundStrokeStyle

  • setBackgroundStrokeStyle(value: LineStyle | ImmutableMutator<LineStyle>): this
  • Parameters

    Returns this

    Object itself

setMinimumSize

  • setMinimumSize(minimumSize: Point): this
  • Parameters

    Returns this