com.mxgraph.view
Class mxLayoutManager
- java.lang.Object
-
- com.mxgraph.util.mxEventSource
-
- com.mxgraph.view.mxLayoutManager
-
public class mxLayoutManager extends mxEventSource
Implements a layout manager that updates the layout for a given transaction. The following example installs an automatic tree layout in a graph:new mxLayoutManager(graph) { mxCompactTreeLayout layout = new mxCompactTreeLayout(graph); public mxIGraphLayout getLayout(Object parent) { if (graph.getModel().getChildCount(parent) > 0) { return layout; } return null; } };This class fires the following event: mxEvent.LAYOUT_CELLS fires between begin- and endUpdate after all cells have been layouted in layoutCells. Thecellsproperty contains all cells that have been passed to layoutCells.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mxgraph.util.mxEventSource
mxEventSource.mxIEventListener
-
-
Constructor Summary
Constructors Constructor and Description mxLayoutManager(mxGraph graph)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voiddestroy()mxGraphgetGraph()booleanisBubbling()booleanisEnabled()voidsetBubbling(boolean value)voidsetEnabled(boolean value)voidsetGraph(mxGraph value)-
Methods inherited from class com.mxgraph.util.mxEventSource
addListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSource
-
-
-
-
Constructor Detail
-
mxLayoutManager
public mxLayoutManager(mxGraph graph)
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
- Returns:
- the enabled
-
setEnabled
public void setEnabled(boolean value)
- Parameters:
value- the enabled to set
-
isBubbling
public boolean isBubbling()
- Returns:
- the bubbling
-
setBubbling
public void setBubbling(boolean value)
- Parameters:
value- the bubbling to set
-
getGraph
public mxGraph getGraph()
- Returns:
- the graph
-
setGraph
public void setGraph(mxGraph value)
- Parameters:
value- the graph to set
-
destroy
public void destroy()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG