mxPerimeter.mxPerimeterFunction (JGraph X 2.1.0.7 API Specification)
Date: 2013-07-31

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JGraph X 2.1.0.7
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.mxgraph.view
Interface mxPerimeter.mxPerimeterFunction

Enclosing class:
  mxPerimeter

    public static interface mxPerimeter.mxPerimeterFunction

Defines the requirements for a perimeter function.

Method Summary
`mxPoint` | `apply(mxRectangle bounds, mxCellState vertex, mxPoint next, boolean orthogonal)` Implements a perimeter function.

Method Detail

### apply

    mxPoint apply(mxRectangle bounds,
                  mxCellState vertex,
                  mxPoint next,
                  boolean orthogonal)

  Implements a perimeter function.

  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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JGraph X 2.1.0.7
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) 2010 Gaudenz Alder. All rights reserved.