Interface mxPerimeter.mxPerimeterFunction

  • Enclosing class:

    public static interface mxPerimeter.mxPerimeterFunction
    Defines the requirements for a perimeter function.
    • Method Detail

      • apply

        mxPoint apply​(mxRectangle bounds,
                      mxCellState vertex,
                      mxPoint next,
                      boolean orthogonal)
        Implements a perimeter function.
        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.
        Returns the perimeter point.