Extends mxGraphLayout to implement a circluar layout for a given radius. The vertices do not need to be connected for this layout to work and all connections between vertices are not taken into account.
var layout = new mxCircleLayout(graph); layout.execute(graph.getDefaultParent());
mxCircleLayout | Extends mxGraphLayout to implement a circluar layout for a given radius. |
Functions | |
mxCircleLayout | Constructs a new circular layout for the specified radius. |
Variables | |
radius | Integer specifying the size of the radius. |
moveCircle | Boolean specifying if the circle should be moved to the top, left corner specified by x0 and y0. |
x0 | Integer specifying the left coordinate of the circle. |
y0 | Integer specifying the top coordinate of the circle. |
resetEdges | Specifies if all edge points of traversed edges should be removed. |
disableEdgeStyle | Specifies if the STYLE_NOEDGESTYLE flag should be set on edges that are modified by the result. |
Functions | |
execute | Implements mxGraphLayout.execute. |
circle | Executes the circular layout for the specified array of vertices and the given radius. |
function mxCircleLayout( graph, radius )
Constructs a new circular layout for the specified radius.
graph | mxGraph that contains the cells. |
radius | Optional radius as an int. Default is 100. |
mxCircleLayout.prototype.execute = function( parent )
Implements mxGraphLayout.execute.
mxCircleLayout.prototype.circle = function( vertices, r, left, top )
Executes the circular layout for the specified array of vertices and the given radius. This is called from execute.
Constructs a new circular layout for the specified radius.
function mxCircleLayout( graph, radius )
Integer specifying the size of the radius.
mxCircleLayout.prototype.radius
Boolean specifying if the circle should be moved to the top, left corner specified by x0 and y0.
mxCircleLayout.prototype.moveCircle
Integer specifying the left coordinate of the circle.
mxCircleLayout.prototype.x0
Integer specifying the top coordinate of the circle.
mxCircleLayout.prototype.y0
Specifies if all edge points of traversed edges should be removed.
mxCircleLayout.prototype.resetEdges
Specifies if the STYLE_NOEDGESTYLE flag should be set on edges that are modified by the result.
mxCircleLayout.prototype.disableEdgeStyle
Implements mxGraphLayout.execute.
mxCircleLayout.prototype.execute = function( parent )
Executes the layout algorithm for the children of the given parent.
mxGraphLayout.prototype.execute = function( parent )
Executes the circular layout for the specified array of vertices and the given radius.
mxCircleLayout.prototype.circle = function( vertices, r, left, top )