Specifies if adding bends by shift-click is enabled.
Note: This experimental feature is not recommended for production use.
Specifies if the bounds of handles should be used for hit-detection in IE.
Holds the Shapes that represent the points.
Specifies if cloning by control-drag is enabled.
Holds the ConstraintHandler used for drawing and highlighting constraints.
Specifies if removing bends by double click is enabled.
Holds the current validation error while a connection is being changed.
Reference to the enclosing Graph.
Optional Image to be used as handles.
Holds the Shape that represents the label position.
Specifies if the label handle should be moved if it intersects with another handle. Uses checkLabelHandle for checking and moving.
Holds the CellMarker which is used for highlighting terminals.
Specifies if removing bends by dropping them on other bends is enabled.
Specifies if connections to the outline of a highlighted target should be enabled. This will allow to place the connection point along the outline of the highlighted target.
Specifies if the parent should be highlighted if a child cell is selected.
Specifies if bends should be added to the graph container. This is updated in init based on whether the edge or one of its terminals has an HTML label in the container.
Specifies if removing bends by shift-click is enabled.
Note: This experimental feature is not recommended for production use.
Holds the Shape that represents the preview edge.
Specifies if waypoints should snap to the routing centers of terminals.
Reference to the CellState being modified.
Specifies if removing bends by creating straight segments should be enabled. If enabled, this can be overridden by holding down the alt key while moving.
Optional tolerance for hit-detection in getHandleForEvent.
Opacity to be used for virtual bends (see virtualBendsEnabled).
Specifies if virtual bends should be added in the center of each segment. These bends can then be used to add new waypoints.
Adds a control point for the given state and event.
Adds a control point at the given point.
Checks if the label handle intersects the given bounds and moves it if it intersects.
Changes the terminal or terminal point of the given edge in the graph model.
Cell that represents the edge to be reconnected.
Cell that represents the new terminal.
Boolean indicating if the new terminal is the source or target terminal.
Boolean indicating if the new connection should be a clone of the old edge.
MouseEvent that contains the mouse up event.
Creates and returns the bends used for modifying the edge. This is typically an array of RectangleShape.
Returns an array of custom handles. This implementation returns an empty array.
Creates the shape used to display the given bend. Note that the index may be null for special cases, such as when called from ElbowEdgeHandler#createVirtualBend. Only images and rectangles should be returned if support for HTML labels with not foreign objects is required. Index if null for virtual handles.
Optional
index: numberCreates the shape used to display the label handle.
Creates and returns the CellMarker used in marker.
Creates the shape used to draw the selection border.
Creates and returns the bends used for modifying the edge. This is typically an array of RectangleShape.
Destroys all elements in bends.
Creates and returns the CellMarker used in marker.
Updates the given preview state taking into account the state of the constraint handler.
Point that contains the current pointer position.
Optional
me: InternalMouseEventOptional MouseEvent that contains the current event.
Returns EdgeHandlerConfig.selectionColor.
Returns true if the given cell allows new connections to be created. This implementation always returns true.
Returns true if the given cell is connectable. This is a hook to disable floating connections. This implementation returns true.
Returns true if the given custom handle is visible.
Returns true if outlineConnect is true and the source of the event is the outline shape or shift is pressed.
Returns EdgeHandlerConfig.selectionDashed.
Returns true if snapToTerminals is true and if alt is not pressed.
Returns true if virtual bends should be added. This returns true if virtualBendsEnabled is true and the current style allows and renders custom waypoints.
Optional
evt: EventHandles the event by checking if a special element of the handler was clicked, in which case the index parameter is non-null. The indices may be one of InternalEvent.LABEL_HANDLE or the number of the respective control point. The source and target points are used for reconnecting the edge.
Handles the event by updating the preview.
Handles the event to applying the previewed changes on the edge by using moveLabel, connect or changePoints.
Changes the coordinates for the label of the given edge.
Integer that specifies the x-coordinate of the new location.
Integer that specifies the y-coordinate of the new location.
Removes the control point at the given index from the given state.
Hook for subclassers do show details while the handler is active.
Updates the highlight of the parent if parentHighlightEnabled is true.
Updates the given preview state taking into account the state of the constraint handler.
Returns the error message or an empty string if the connection for the given source, target pair is not valid. Otherwise, it returns null. This implementation uses Graph#getEdgeValidationError.
Graph event handler that reconnects edges, modifies control points and the edge label location.
Uses CellMarker for finding and highlighting new source and target vertices.
This handler is automatically created in Graph.createHandler for each selected edge.
Some elements of this handler and its subclasses can be configured using EdgeHandlerConfig.