Class mxCircleLayout
java.lang.Object
com.mxgraph.layout.mxGraphLayout
com.mxgraph.layout.mxCircleLayout
- All Implemented Interfaces:
mxIGraphLayout
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanSpecifies if the STYLE_NOEDGESTYLE flag should be set on edges that are modified by the result.protected booleanBoolean specifying if the circle should be moved to the top, left corner specified by x0 and y0.protected doubleInteger specifying the size of the radius.protected booleanSpecifies if all edge points of traversed edges should be removed.protected doubleInteger specifying the left coordinate of the circle.protected doubleInteger specifying the top coordinate of the circle.Fields inherited from class mxGraphLayout
graph, parent, useBoundingBox -
Constructor Summary
ConstructorsConstructorDescriptionmxCircleLayout(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. -
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes the circular layout for the specified array of vertices and the given radius.voidExecutes the layout for the children of the specified parent.doubledoublegetX0()doublegetY0()booleanbooleanbooleanvoidsetDisableEdgeStyle(boolean disableEdgeStyle) voidsetMoveCircle(boolean moveCircle) voidsetRadius(double radius) voidsetResetEdges(boolean resetEdges) voidsetX0(double x0) voidsetY0(double y0) Methods inherited from class mxGraphLayout
arrangeGroups, getConstraint, getConstraint, getGraph, getParentOffset, getVertexBounds, isEdgeIgnored, isUseBoundingBox, isVertexIgnored, isVertexMovable, moveCell, setEdgePoints, setEdgeStyleEnabled, setOrthogonalEdge, setUseBoundingBox, setVertexLocation
-
Field Details
-
radius
protected double radiusInteger specifying the size of the radius. Default is 100. -
moveCircle
protected boolean moveCircleBoolean specifying if the circle should be moved to the top, left corner specified by x0 and y0. Default is false. -
x0
protected double x0Integer specifying the left coordinate of the circle. Default is 0. -
y0
protected double y0Integer specifying the top coordinate of the circle. Default is 0. -
resetEdges
protected boolean resetEdgesSpecifies if all edge points of traversed edges should be removed. Default is true. -
disableEdgeStyle
protected boolean disableEdgeStyleSpecifies if the STYLE_NOEDGESTYLE flag should be set on edges that are modified by the result. Default is true.
-
-
Constructor Details
-
mxCircleLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset. -
mxCircleLayout
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
-
-
Method Details
-
getRadius
public double getRadius()- Returns:
- the radius
-
setRadius
public void setRadius(double radius) - Parameters:
radius- the radius to set
-
isMoveCircle
public boolean isMoveCircle()- Returns:
- the moveCircle
-
setMoveCircle
public void setMoveCircle(boolean moveCircle) - Parameters:
moveCircle- the moveCircle to set
-
getX0
public double getX0()- Returns:
- the x0
-
setX0
public void setX0(double x0) - Parameters:
x0- the x0 to set
-
getY0
public double getY0()- Returns:
- the y0
-
setY0
public void setY0(double y0) - Parameters:
y0- the y0 to set
-
isResetEdges
public boolean isResetEdges()- Returns:
- the resetEdges
-
setResetEdges
public void setResetEdges(boolean resetEdges) - Parameters:
resetEdges- the resetEdges to set
-
isDisableEdgeStyle
public boolean isDisableEdgeStyle()- Returns:
- the disableEdgeStyle
-
setDisableEdgeStyle
public void setDisableEdgeStyle(boolean disableEdgeStyle) - Parameters:
disableEdgeStyle- the disableEdgeStyle to set
-
execute
Description copied from interface:mxIGraphLayoutExecutes the layout for the children of the specified parent.- Specified by:
executein interfacemxIGraphLayout- Overrides:
executein classmxGraphLayout- Parameters:
parent- Parent cell that contains the children to be layed out.
-
circle
Executes the circular layout for the specified array of vertices and the given radius.
-