Defines the requirements for an edge style function.
mxEdgeStyleFunction | Defines the requirements for an edge style function. |
Functions | |
apply | Implements an edge style function. |
mxEntityRelation | Implements an entity relation style for edges (as used in database schema diagrams). |
mxLoop | Implements a self-reference, aka. |
mxElbowConnector | Uses either <SideToSide> or <TopToBottom> depending on the horizontal flag in the cell style. |
mxSideToSide | Implements a vertical elbow edge. |
mxTopToBottom | Implements a horizontal elbow edge. |
mxEdgeStyle | Provides various edge styles to be used as the values for mxConstants.STYLE_EDGE in a cell style. |
Variables | |
EntityRelation | Provides an entity relation style for edges (as used in database schema diagrams). |
Loop | Provides a self-reference, aka. |
ElbowConnector | Provides an elbow connector. |
SideToSide | Provides a side to side connector. |
TopToBottom | Provides a top to bottom connector. |
public function apply( $state, $source, $target, $points, & $result )
Implements an edge style function. At the time the function is called, the result array contains a placeholder (null) for the first absolute point, that is, the point where the edge and source terminal are connected. The implementation of the style then adds all intermediate waypoints except for the last point, that is, the connection point between the edge and the target terminal. The first ant the last point in the result array are then replaced with mxPoints that take into account the terminal’s perimeter and next point on the edge.
state | mxCellState that represents the edge to be updated. |
source | mxCellState that represents the source terminal. |
target | mxCellState that represents the target terminal. |
points | List of relative control points. |
result | Array of mxPoints that represent the actual points of the edge. |
Implements an entity relation style for edges (as used in database schema diagrams). At the time the function is called, the result array contains a placeholder (null) for the first absolute point, that is, the point where the edge and source terminal are connected. The implementation of the style then adds all intermediate waypoints except for the last point, that is, the connection point between the edge and the target terminal. The first ant the last point in the result array are then replaced with mxPoints that take into account the terminal’s perimeter and next point on the edge.
Provides various edge styles to be used as the values for mxConstants.STYLE_EDGE in a cell style.
Variables | |
EntityRelation | Provides an entity relation style for edges (as used in database schema diagrams). |
Loop | Provides a self-reference, aka. |
ElbowConnector | Provides an elbow connector. |
SideToSide | Provides a side to side connector. |
TopToBottom | Provides a top to bottom connector. |
Implements an edge style function.
public function apply( $state, $source, $target, $points, & $result )
Defines the key for the edge style.
public static $STYLE_EDGE
Provides an entity relation style for edges (as used in database schema diagrams).
public static $EntityRelation
Provides a self-reference, aka.
public static $Loop
Provides an elbow connector.
public static $ElbowConnector
Provides a side to side connector.
public static $SideToSide
Provides a top to bottom connector.
public static $TopToBottom