com.mxgraph.layout
Class mxCircleLayout
- java.lang.Object
-
- com.mxgraph.layout.mxGraphLayout
-
- com.mxgraph.layout.mxCircleLayout
-
- All Implemented Interfaces:
- mxIGraphLayout
public class mxCircleLayout extends mxGraphLayout
-
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcircle(java.lang.Object[] vertices, double r, double left, double top)Executes the circular layout for the specified array of vertices and the given radius.voidexecute(java.lang.Object parent)Executes the layout for the children of the specified parent.doublegetRadius()doublegetX0()doublegetY0()booleanisDisableEdgeStyle()booleanisMoveCircle()booleanisResetEdges()voidsetDisableEdgeStyle(boolean disableEdgeStyle)voidsetMoveCircle(boolean moveCircle)voidsetRadius(double radius)voidsetResetEdges(boolean resetEdges)voidsetX0(double x0)voidsetY0(double y0)-
Methods inherited from class com.mxgraph.layout.mxGraphLayout
arrangeGroups, getConstraint, getConstraint, getGraph, getParentOffset, getVertexBounds, isEdgeIgnored, isUseBoundingBox, isVertexIgnored, isVertexMovable, moveCell, setEdgePoints, setEdgeStyleEnabled, setOrthogonalEdge, setUseBoundingBox, setVertexLocation
-
-
-
-
Constructor Detail
-
mxCircleLayout
public mxCircleLayout(mxGraph graph)
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
-
mxCircleLayout
public mxCircleLayout(mxGraph graph, double radius)
Constructs a new stack layout layout for the specified graph, spacing, orientation and offset.
-
-
Method Detail
-
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
public void execute(java.lang.Object parent)
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
public void circle(java.lang.Object[] vertices, double r, double left, double top)Executes the circular layout for the specified array of vertices and the given radius.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG