The Matrix window is a special Window with extra functionality.

Hierarchy-Diagram

UML class diagram of MatrixWindow
Legend
icon for a class in the UML class diagram class
icon for a public property in the UML class diagram public property
icon for a public method in the UML class diagram public method
icon for a protected method in the UML class diagram protected method

Hierarchy (view full)

Constructors

Properties

func: any = null
id: string = ""
initialised: boolean = false
initialMoved: boolean = false
initialResized: boolean = false
isOpen: boolean = false
localizer: ILocalizer = null
math: IMath = null
messager: IMessager = null
parameters: any = null
parent: any = null
parser: IParser = null
services: ISelectedServices = null
silent: boolean = false

Accessors

  • get handlers(): {
        onClose: any;
        onMove: any;
        onOpen: any;
        onResize: any;
    }
  • Builds an object from the events to be provided when the panel is created.

    Returns {
        onClose: any;
        onMove: any;
        onOpen: any;
        onResize: any;
    }

    • onClose: any
    • onMove: any
    • onOpen: any
    • onResize: any
  • get panelFunc(): any
  • Returns the bound panel (one of : panel, window, dialog) function.

    Returns any

  • get styles(): any
  • Queries the styles option of the panel.

    Returns any

  • set styles(styles): void
  • Sets the styles option of the panel.

    Parameters

    • styles: any

    Returns void

Methods

  • This function handles the desktop use case. It initiates a resize for a workaround to problems only taking place in this case. And it centers the panels.

    Returns void

  • Used to localize an option.

    Place this service into this base class to get access everywhere. TODO: use Utility function.

    Parameters

    • option: string
    • id: any = null
    • func: any = null

    Returns string

  • The handler of move events, invoked when the panel is moved.

    This delegates to the Parameters instance.

    Parameters

    • left: number
    • top: number

    Returns void

  • The handler of resize events, invoked when the panel is resized.

    This delegates to the Parameters instance.

    Parameters

    • width: number
    • height: number

    Returns void

  • Transfers the Matrix displayed in the Matrix window to the Editor.

    Returns boolean

  • Updates the Matrix window with given rows and columns values.

    Parameters

    • rows: number = undefined

      the number of matrix rows

    • cols: number = undefined

      the number of matrix columns

    Returns Promise<void>