mxPerimeterFunction

Defines the requirements for a perimeter function.

Summary
mxPerimeterFunctionDefines the requirements for a perimeter function.
Functions
applyImplements a perimeter function.
mxRectanglePerimeterImplements a rectangular perimeter for the given bounds.
mxEllipsePerimeterImplements an elliptic perimeter.
mxRhombusPerimeterImplements a rhombus (aka diamond) perimeter.
mxTrianglePerimeterImplements a triangle perimeter.
mxPerimeterProvides various perimeter functions to be used in a style as the value of mxConstants.STYLE_PERIMETER.
Variables
RectanglePerimeterProvides a rectangular perimeter.
EllipsePerimeterProvides an elliptic perimeter.
RhombusPerimeterProvides a rhombus (aka diamond) perimeter.
TrianglePerimeterProvides a triangle perimeter.

Functions

apply

public function apply($bounds,
$vertex,
$next,
$orthogonal)

Implements a perimeter function.

Parameters

boundsmxRectangle that represents the absolute bounds of the vertex.
vertexmxCellState that represents the vertex.
nextmxPoint that represents the nearest neighbour point on the given edge.
orthogonalBoolean 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.

mxRectanglePerimeter

Implements a rectangular perimeter for the given bounds.

mxEllipsePerimeter

Implements an elliptic perimeter.  See <RectanglePerimeter> for a description of the parameters.

mxRhombusPerimeter

Implements a rhombus (aka diamond) perimeter.  See <RectanglePerimeter> for a description of the parameters.

mxTrianglePerimeter

Implements a triangle perimeter.  See <RectanglePerimeter> for a description of the parameters.

mxPerimeter

Provides various perimeter functions to be used in a style as the value of mxConstants.STYLE_PERIMETER.

The parameters are explained in RectanglePerimeter.

Summary
Variables
RectanglePerimeterProvides a rectangular perimeter.
EllipsePerimeterProvides an elliptic perimeter.
RhombusPerimeterProvides a rhombus (aka diamond) perimeter.
TrianglePerimeterProvides a triangle perimeter.

Variables

RectanglePerimeter

public static $RectanglePerimeter

Provides a rectangular perimeter.

EllipsePerimeter

public static $EllipsePerimeter

Provides an elliptic perimeter.

RhombusPerimeter

public static $RhombusPerimeter

Provides a rhombus (aka diamond) perimeter.

TrianglePerimeter

public static $TrianglePerimeter

Provides a triangle perimeter.  See RectanglePerimeter for a description of the parameters.

public function apply($bounds,
$vertex,
$next,
$orthogonal)
Implements a perimeter function.
public static $STYLE_PERIMETER
Defines the key for the perimeter style.
public static $RectanglePerimeter
Provides a rectangular perimeter.
public static $EllipsePerimeter
Provides an elliptic perimeter.
public static $RhombusPerimeter
Provides a rhombus (aka diamond) perimeter.
public static $TrianglePerimeter
Provides a triangle perimeter.
Implements a 2-dimensional rectangle with double precision coordinates.
Represents the current state of a cell in a given mxGraphView.
Implements a 2-dimensional point with double precision coordinates.
Close