Class PlanPerimeterFunction

  • All Implemented Interfaces:
    com.mxgraph.view.mxPerimeter.mxPerimeterFunction

    public class PlanPerimeterFunction
    extends java.lang.Object
    implements com.mxgraph.view.mxPerimeter.mxPerimeterFunction
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.mxgraph.util.mxPoint apply​(com.mxgraph.util.mxRectangle bounds, com.mxgraph.view.mxCellState vertex, com.mxgraph.util.mxPoint next, boolean orthogonal)
      Implements a perimeter function.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlanPerimeterFunction

        public PlanPerimeterFunction()
    • Method Detail

      • apply

        public com.mxgraph.util.mxPoint apply​(com.mxgraph.util.mxRectangle bounds,
                                              com.mxgraph.view.mxCellState vertex,
                                              com.mxgraph.util.mxPoint next,
                                              boolean orthogonal)
        Implements a perimeter function.
        Specified by:
        apply in interface com.mxgraph.view.mxPerimeter.mxPerimeterFunction
        Parameters:
        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:
        Returns the perimeter point.