com.mxgraph.layout
Class mxFastOrganicLayout
- java.lang.Object
-
- com.mxgraph.layout.mxGraphLayout
-
- com.mxgraph.layout.mxFastOrganicLayout
-
- All Implemented Interfaces:
- mxIGraphLayout
public class mxFastOrganicLayout extends mxGraphLayout
Fast organic layout algorithm.
-
-
Constructor Summary
Constructors Constructor and Description mxFastOrganicLayout(mxGraph graph)Constructs a new fast organic layout for the specified graph.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidexecute(java.lang.Object parent)Executes the layout for the children of the specified parent.doublegetForceConstant()doublegetInitialTemp()doublegetMaxDistanceLimit()doublegetMaxIterations()doublegetMinDistanceLimit()booleanisDisableEdgeStyle()booleanisResetEdges()booleanisUseInputOrigin()booleanisVertexIgnored(java.lang.Object vertex)Returns a boolean indicating if the givenshould be ignored as a vertex. voidmoveCell(java.lang.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.voidsetDisableEdgeStyle(boolean value)voidsetForceConstant(double value)voidsetInitialTemp(double value)voidsetMaxDistanceLimit(double maxDistanceLimit)voidsetMaxIterations(double value)voidsetMinDistanceLimit(double value)voidsetResetEdges(boolean value)voidsetUseInputOrigin(boolean value)-
Methods inherited from class com.mxgraph.layout.mxGraphLayout
arrangeGroups, getConstraint, getConstraint, getGraph, getParentOffset, getVertexBounds, isEdgeIgnored, isUseBoundingBox, isVertexMovable, setEdgePoints, setEdgeStyleEnabled, setOrthogonalEdge, setUseBoundingBox, setVertexLocation
-
-
-
-
Constructor Detail
-
mxFastOrganicLayout
public mxFastOrganicLayout(mxGraph graph)
Constructs a new fast organic layout for the specified graph.
-
-
Method Detail
-
isVertexIgnored
public boolean isVertexIgnored(java.lang.Object vertex)
Returns a boolean indicating if the givenshould be ignored as a vertex. This returns true if the cell has no connections. - Overrides:
isVertexIgnoredin classmxGraphLayout- Parameters:
vertex- Object that represents the vertex to be tested.- Returns:
- Returns true if the vertex should be ignored.
-
isUseInputOrigin
public boolean isUseInputOrigin()
-
setUseInputOrigin
public void setUseInputOrigin(boolean value)
- Parameters:
value-
-
isResetEdges
public boolean isResetEdges()
-
setResetEdges
public void setResetEdges(boolean value)
- Parameters:
value-
-
isDisableEdgeStyle
public boolean isDisableEdgeStyle()
-
setDisableEdgeStyle
public void setDisableEdgeStyle(boolean value)
- Parameters:
value-
-
getMaxIterations
public double getMaxIterations()
-
setMaxIterations
public void setMaxIterations(double value)
- Parameters:
value-
-
getForceConstant
public double getForceConstant()
-
setForceConstant
public void setForceConstant(double value)
- Parameters:
value-
-
getMinDistanceLimit
public double getMinDistanceLimit()
-
setMinDistanceLimit
public void setMinDistanceLimit(double value)
- Parameters:
value-
-
getMaxDistanceLimit
public double getMaxDistanceLimit()
- Returns:
- the maxDistanceLimit
-
setMaxDistanceLimit
public void setMaxDistanceLimit(double maxDistanceLimit)
- Parameters:
maxDistanceLimit- the maxDistanceLimit to set
-
getInitialTemp
public double getInitialTemp()
-
setInitialTemp
public void setInitialTemp(double value)
- Parameters:
value-
-
moveCell
public void moveCell(java.lang.Object cell, double x, double y)Description copied from interface:mxIGraphLayoutNotified 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.- Specified by:
moveCellin interfacemxIGraphLayout- Overrides:
moveCellin classmxGraphLayout- Parameters:
cell- Cell which is being moved.x- X-coordinate of the new cell location.y- Y-coordinate of the new cell location.
-
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.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG