Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ClassifierElement

Hierarchy

Index

Constructors

constructor

Properties

caret

caret: boolean = false

cursor

cursor: Cursor = "pointer"

newProperty

newProperty: Property | null = null

selectedProperty

selectedProperty: Property | null = null

typeComplete

typeComplete: string = ""

typeCompleteSelection

typeCompleteSelection: string = ""

typeEditing

typeEditing: boolean = false

Static defaultMaxListeners

defaultMaxListeners: number

Accessors

bounds

contents

fill

font

hovered

  • get hovered(): boolean

modelElement

ownedElements

owningElement

selected

  • get selected(): boolean

stroke

topLeft

Methods

addListener

  • addListener(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

appendChild

  • appendChild(child: Element): void

calcAllElementBounds

  • calcAllElementBounds(): Bounds

center

containsPoint

  • containsPoint(px: number, py: number): boolean

createHandles

deselect

  • deselect(): void

Private drawCaret

  • drawCaret(canvas: Canvas, x: number, y: number): void

Private drawCompletion

  • drawCompletion(canvas: Canvas, x: number, y: number): void

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eventNames

  • eventNames(): (string | symbol)[]
  • Returns ( string | symbol ) []

getElementAtPosition

getHref

  • getHref(): string | undefined

getID

  • getID(): string | undefined

getMaxListeners

  • getMaxListeners(): number
  • Returns number

getOrigin

  • getOrigin(): string | undefined

Private getTypeHints

  • getTypeHints(): string[]

getTypeName

  • getTypeName(): string | undefined

getTypeURI

  • getTypeURI(): string | undefined

Private getVisibilitySymbol

  • getVisibilitySymbol(kind: string): string

hover

  • hover(val: boolean): void

listenerCount

  • listenerCount(type: string | symbol): number
  • Parameters

    • type: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

merge

move

  • move(dx: number, dy: number): void

on

  • on(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

onKeyPress

onMouseLeave

onMouseMove

onTick

once

  • once(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

prependListener

  • prependListener(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

removeAllListeners

  • removeAllListeners(event?: string | symbol): this
  • Parameters

    • Optional event: string | symbol

    Returns this

removeChild

  • removeChild(child: Element): boolean

removeListener

  • removeListener(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

render

  • render(canvas: Canvas): void

renderContents

  • renderContents(canvas: Canvas): void

Private renderOperations

  • renderOperations(operations: Set<Operation>, canvas: Canvas, offsetY: number): number

Private renderParameters

  • renderParameters(parameters: Parameter[], canvas: Canvas, offsetX: number, y: number): number

Private renderProperties

  • renderProperties(attributes: Set<Property>, canvas: Canvas, offsetY: number): number

Private renderProperty

  • renderProperty(attribute: Property, canvas: Canvas, offsetY: number): number

Private renderSeparator

  • renderSeparator(canvas: Canvas, offsetY: number): number

select

  • select(): void

setID

  • setID(ID: string | undefined): void

setMaxListeners

  • setMaxListeners(n: number): this
  • Parameters

    • n: number

    Returns this

setOrigin

  • setOrigin(origin: string): void

setTypeName

  • setTypeName(name: string | undefined): void

setTypeURI

  • setTypeURI(uri: string | undefined): void

toString

  • toString(): string

Static listenerCount

  • listenerCount(emitter: EventEmitter, event: string | symbol): number
  • Parameters

    • emitter: EventEmitter
    • event: string | symbol

    Returns number

Generated using TypeDoc