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 constructor based on whether the edge or one of its terminals has an HTML label in the container.
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.
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
null
for special cases, such as when called from ElbowEdgeHandler.createVirtualBend.null
for virtual handles.Only images and rectangles should be returned if support for HTML labels with not foreign objects is required.
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.
Returns the index of the handle for the given event.
Returns the point for the given event.
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.
Updates the given preview state taking into account the state of the constraint handler.
Returns EdgeHandlerConfig.selectionColor.
Returns true if the given event allows virtual bends to be added. This implementation returns true.
Returns true if the given event allows custom handles to be changed. 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.
Handles 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.
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.