Specifies if adding bends by shift-click is enabled. Default is false. Note: This experimental feature is not recommended for production use.
Specifies if the bounds of handles should be used for hit-detection in IE Default is true.
Holds the {@link Shapes} that represent the points.
Specifies if cloning by control-drag is enabled. Default is true.
Holds the ConstraintHandler used for drawing and highlighting constraints.
Specifies if removing bends by double click is enabled. Default is false.
Holds the current validation error while a connection is being changed.
Reference to the enclosing Graph.
Optional {@link Image} to be used as handles. Default is null.
Holds the Shape that represents the label position.
Specifies if the label handle should be moved if it intersects with another
handle. Uses
Holds the {@link TerminalMarker} which is used for highlighting terminals.
Specifies if removing bends by dropping them on other bends is enabled. Default is false.
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. Default is false.
Specifies if the parent should be highlighted if a child cell is selected. Default is false.
Specifies if bends should be added to the graph container. This is updated
in
Specifies if removing bends by shift-click is enabled. Default is false. 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. Default is false.
Reference to the
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. Default is false.
Optional tolerance for hit-detection in
Opacity to be used for virtual bends (see
Specifies if virtual bends should be added in the center of each segments. These bends can then be used to add new waypoints. Default is false.
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.
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.
{@link MouseEvent} that contains the mouse up event.
Creates and returns the bends used for modifying the edge. This is typically an array of {@link RectangleShapes}.
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 {@link 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.
Creates the shape used to display the the label handle.
Creates and returns the CellMarker used in {@link arker}.
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 {@link RectangleShapes}.
Destroys all elements in
Redraws the preview.
Creates and returns the CellMarker used in {@link arker}.
Returns the fillcolor for the handle at the given index.
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 {@link MouseEvent} that contains the current event.
Updates the given preview state taking into account the state of the constraint handler.
Returns {@link Constants#EDGE_SELECTION_COLOR}.
Returns {@link Constants#EDGE_SELECTION_STROKEWIDTH}.
Returns the tolerance for the guides. Default value is gridSize * scale / 2.
Returns true if the given event is a trigger to add a new Point. This implementation returns true if shift is pressed.
Returns true if the given event allows virtual bends to be added. This implementation returns true.
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 event allows custom handles to be changed. This implementation returns true.
Returns true if the given custom handle is visible.
Returns true if
Creates the shape used to display the given bend.
Returns true if the handle at the given index is visible.
Returns true if
Returns true if the parent highlight should be visible. This implementation always returns true.
Returns true if the given event is a trigger to remove a point. This implementation returns true if shift is pressed.
Returns {@link Constants#EDGE_SELECTION_DASHED}.
Returns true if
Returns true if virtual bends should be added. This returns true if
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
Handles the event by updating the preview.
Handles the event to applying the previewed changes on the edge by
using {@link oveLabel},
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.
Destroys the handler and all its resources and DOM nodes. This does normally not need to be called as handlers are destroyed automatically when the corresponding cell is deselected.
Redraws the preview, and the bends- and label control points.
Redraws the handles.
Refreshes the bends of this handler.
Hooks for subclassers to hide details when the handler gets inactive.
Removes the control point at the given index from the given state.
Resets the state of this handler.
Hook for rounding the unscaled width or height. This uses Math.round.
Shortcut to
Sets the color of the preview to the given value.
Starts the handling of the mouse gesture.
Hook for subclassers do show details while the handler is active.
Updates the highlight of the parent if
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 {@link Graph#getEdgeValidationError}.
Generated using TypeDoc
Graph event handler that reconnects edges and modifies control points and the edge label location. Uses {@link TerminalMarker} for finding and highlighting new source and target vertices. This handler is automatically created in mxGraph.createHandler for each selected edge. To enable adding/removing control points, the following code can be used
Note: This experimental feature is not recommended for production use.