public class mxCircleLayout extends mxGraphLayout
Modifier and Type | Field and Description |
---|---|
protected boolean |
disableEdgeStyle
Specifies if the STYLE_NOEDGESTYLE flag should be set on edges that are
modified by the result.
|
protected boolean |
moveCircle
Boolean specifying if the circle should be moved to the top,
left corner specified by x0 and y0.
|
protected double |
radius
Integer specifying the size of the radius.
|
protected boolean |
resetEdges
Specifies if all edge points of traversed edges should be removed.
|
protected double |
x0
Integer specifying the left coordinate of the circle.
|
protected double |
y0
Integer specifying the top coordinate of the circle.
|
graph, parent, useBoundingBox
Constructor and Description |
---|
mxCircleLayout(mxGraph graph)
Constructs a new stack layout layout for the specified graph,
spacing, orientation and offset.
|
mxCircleLayout(mxGraph graph,
double radius)
Constructs a new stack layout layout for the specified graph,
spacing, orientation and offset.
|
Modifier and Type | Method and Description |
---|---|
void |
circle(Object[] vertices,
double r,
double left,
double top)
Executes the circular layout for the specified array
of vertices and the given radius.
|
void |
execute(Object parent)
Executes the layout for the children of the specified parent.
|
double |
getRadius() |
double |
getX0() |
double |
getY0() |
boolean |
isDisableEdgeStyle() |
boolean |
isMoveCircle() |
boolean |
isResetEdges() |
void |
setDisableEdgeStyle(boolean disableEdgeStyle) |
void |
setMoveCircle(boolean moveCircle) |
void |
setRadius(double radius) |
void |
setResetEdges(boolean resetEdges) |
void |
setX0(double x0) |
void |
setY0(double y0) |
arrangeGroups, getConstraint, getConstraint, getGraph, getParentOffset, getVertexBounds, isEdgeIgnored, isUseBoundingBox, isVertexIgnored, isVertexMovable, moveCell, setEdgePoints, setEdgeStyleEnabled, setOrthogonalEdge, setUseBoundingBox, setVertexLocation
protected double radius
protected boolean moveCircle
protected double x0
protected double y0
protected boolean resetEdges
protected boolean disableEdgeStyle
public mxCircleLayout(mxGraph graph)
public mxCircleLayout(mxGraph graph, double radius)
public double getRadius()
public void setRadius(double radius)
radius
- the radius to setpublic boolean isMoveCircle()
public void setMoveCircle(boolean moveCircle)
moveCircle
- the moveCircle to setpublic double getX0()
public void setX0(double x0)
x0
- the x0 to setpublic double getY0()
public void setY0(double y0)
y0
- the y0 to setpublic boolean isResetEdges()
public void setResetEdges(boolean resetEdges)
resetEdges
- the resetEdges to setpublic boolean isDisableEdgeStyle()
public void setDisableEdgeStyle(boolean disableEdgeStyle)
disableEdgeStyle
- the disableEdgeStyle to setpublic void execute(Object parent)
mxIGraphLayout
execute
in interface mxIGraphLayout
execute
in class mxGraphLayout
parent
- Parent cell that contains the children to be layed out.public void circle(Object[] vertices, double r, double left, double top)
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.