Options
All
  • Public
  • Public/Protected
  • All
Menu

Handles constraints on connection targets. This class is in charge of showing fixed points when the mouse is over a vertex and handles constraints to establish new connections.

Hierarchy

  • mxConstraintHandler

Index

Constructors

constructor

Properties

constraints

constraints: mxConnectionConstraint[]

currentConstraint

currentConstraint: mxConnectionConstraint

currentFocus

currentFocus: mxCellState

currentFocusArea

currentFocusArea: mxRectangle

currentPoint

currentPoint: mxPoint

enabled

enabled: boolean

Specifies if events are handled. Default is true.

focusPoints

focusPoints: mxPoint[]

graph

graph: mxGraph

Reference to the enclosing mxGraph.

highlightColor

highlightColor: string

Specifies the color for the highlight. Default is mxConstants.DEFAULT_VALID_COLOR.

pointImage

pointImage: mxImage

mxImage to be used as the image for fixed connection points.

Methods

createHighlightShape

destroy

  • destroy(): void

destroyFocusHighlight

  • destroyFocusHighlight(): void

destroyIcons

  • destroyIcons(): void

getCellForEvent

getImageForConstraint

getTolerance

intersects

isEnabled

  • isEnabled(): boolean

isEventIgnored

  • isEventIgnored(me: mxMouseEvent, source: boolean): boolean

isKeepFocusEvent

isStateIgnored

  • isStateIgnored(state: mxCellState, source: boolean): boolean

redraw

  • redraw(): void
  • Transfers the focus to the given state as a source or target terminal. If the handler is not enabled then the outline is painted, but the constraints are ignored.

    Returns void

reset

  • reset(): void

setEnabled

  • setEnabled(enabled: boolean): void
  • Enables or disables event handling. This implementation updates enabled.

    Parameters:

    Parameters

    • enabled: boolean

      Boolean that specifies the new enabled state.

    Returns void

setFocus

update

Generated using TypeDoc