public static interface mxPerimeter.mxPerimeterFunction
Modifier and Type | Method and Description |
---|---|
mxPoint |
apply(mxRectangle bounds,
mxCellState vertex,
mxPoint next,
boolean orthogonal)
Implements a perimeter function.
|
mxPoint apply(mxRectangle bounds, mxCellState vertex, mxPoint next, boolean orthogonal)
bounds
- Rectangle that represents the absolute bounds of the
vertex.vertex
- Cell state that represents the vertex.next
- Point 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.Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.