mxGraph
Public Member Functions | List of all members
com.mxgraph.mxIGraphLayout Interface Reference

Defines the requirements for an object that implements a graph layout. More...

Inheritance diagram for com.mxgraph.mxIGraphLayout:
com.mxgraph.mxFastOrganicLayout

Public Member Functions

void execute (Object parent)
 Executes the layout for the children of the specified parent. More...
 
void move (Object cell, double x, double y)
 Notified when a cell is being moved in a parent that has automatic layout to update the cell state (eg. index) so that the outcome of the layout will position the vertex as close to the point (x, y) as possible. More...
 

Detailed Description

Defines the requirements for an object that implements a graph layout.

Member Function Documentation

◆ execute()

void com.mxgraph.mxIGraphLayout.execute ( Object  parent)

Executes the layout for the children of the specified parent.

Parameters
parentParent cell that contains the children to be layed out.

Implemented in com.mxgraph.mxFastOrganicLayout.

◆ move()

void com.mxgraph.mxIGraphLayout.move ( Object  cell,
double  x,
double  y 
)

Notified when a cell is being moved in a parent that has automatic layout to update the cell state (eg. index) so that the outcome of the layout will position the vertex as close to the point (x, y) as possible.

Parameters
cellCell which is being moved.
xX-coordinate of the new cell location.
yY-coordinate of the new cell location.

Implemented in com.mxgraph.mxFastOrganicLayout.


The documentation for this interface was generated from the following file: