Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RubberBandHandler

Event handler that selects rectangular regions. This is not built-into [mxGraph]. To enable rubberband selection in a graph, use the following code.

Hierarchy

  • RubberBandHandler

Implements

  • GraphPlugin

Index

Constructors

constructor

Properties

currentX

currentX: number = 0

Holds the value of the x argument in the last call to .

currentY

currentY: number = 0

Holds the value of the y argument in the last call to .

defaultOpacity

defaultOpacity: number = 20

Specifies the default opacity to be used for the rubberband div. Default is 20.

destroyed

destroyed: boolean = false

div

div: null | HTMLElement = null

Holds the DIV element which is currently visible.

dragHandler

dragHandler: null | ((evt: MouseEvent) => void) = null

dropHandler

dropHandler: null | ((evt: MouseEvent) => void) = null

enabled

enabled: boolean = true

Specifies if events are handled. Default is true.

fadeOut

fadeOut: boolean = false

Optional fade out effect. Default is false.

first

first: null | Point = null

forceRubberbandHandler

forceRubberbandHandler: Function

gestureHandler

gestureHandler: Function

graph

graph: Graph

height

height: number = 0

panHandler

panHandler: Function

sharedDiv

sharedDiv: null | HTMLElement = null

Holds the DIV element which is used to display the rubberband.

width

width: number = 0

x

x: number = 0

y

y: number = 0

Static pluginId

pluginId: string = 'RubberBandHandler'

Methods

createShape

  • createShape(): HTMLElement

execute

  • execute(evt: MouseEvent): void

isActive

isEnabled

  • isEnabled(): boolean

isForceRubberbandEvent

mouseDown

mouseMove

mouseUp

onDestroy

  • onDestroy(): void
  • Destroys the handler and all its resources and DOM nodes. This does normally not need to be called, it is called automatically when the window unloads.

    Returns void

repaint

  • repaint(): void

reset

  • reset(): void

setEnabled

  • setEnabled(enabled: boolean): void

start

  • start(x: number, y: number): void

update

  • update(x: number, y: number): void

Generated using TypeDoc