Defines the requirements for a perimeter function.
mxPerimeterFunction | Defines the requirements for a perimeter function. |
Functions | |
apply | Implements a perimeter function. |
mxRectanglePerimeter | Implements a rectangular perimeter for the given bounds. |
mxEllipsePerimeter | Implements an elliptic perimeter. |
mxRhombusPerimeter | Implements a rhombus (aka diamond) perimeter. |
mxTrianglePerimeter | Implements a triangle perimeter. |
mxPerimeter | Provides various perimeter functions to be used in a style as the value of mxConstants.STYLE_PERIMETER. |
Variables | |
RectanglePerimeter | Provides a rectangular perimeter. |
EllipsePerimeter | Provides an elliptic perimeter. |
RhombusPerimeter | Provides a rhombus (aka diamond) perimeter. |
TrianglePerimeter | Provides a triangle perimeter. |
public function apply( $bounds, $vertex, $next, $orthogonal )
Implements a perimeter function.
bounds | mxRectangle that represents the absolute bounds of the vertex. |
vertex | mxCellState that represents the vertex. |
next | mxPoint that represents the nearest neighbour point on the given edge. |
orthogonal | Boolean that specifies if the orthogonal projection onto the perimeter should be returned. If this is false then the intersection of the perimeter and the line between the next and the center point is returned. |
Provides various perimeter functions to be used in a style as the value of mxConstants.STYLE_PERIMETER.
The parameters are explained in RectanglePerimeter.
Variables | |
RectanglePerimeter | Provides a rectangular perimeter. |
EllipsePerimeter | Provides an elliptic perimeter. |
RhombusPerimeter | Provides a rhombus (aka diamond) perimeter. |
TrianglePerimeter | Provides a triangle perimeter. |
public static $TrianglePerimeter
Provides a triangle perimeter. See RectanglePerimeter for a description of the parameters.
Implements a perimeter function.
public function apply( $bounds, $vertex, $next, $orthogonal )
Defines the key for the perimeter style.
public static $STYLE_PERIMETER
Provides a rectangular perimeter.
public static $RectanglePerimeter
Provides an elliptic perimeter.
public static $EllipsePerimeter
Provides a rhombus (aka diamond) perimeter.
public static $RhombusPerimeter
Provides a triangle perimeter.
public static $TrianglePerimeter