<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><AHREF="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">com.mxgraph.util.mxEventSource</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><B>com.mxgraph.view.mxLayoutManager</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>mxLayoutManager</B><DT>extends <AHREF="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</A></DL>
</PRE>
<P>
Implements a layout manager that updates the layout for a given transaction.
The following example installs an automatic tree layout in a graph:
<code>
new mxLayoutManager(graph) {
mxCompactTreeLayout layout = new mxCompactTreeLayout(graph);
public mxIGraphLayout getLayout(Object parent)
{
if (graph.getModel().getChildCount(parent) > 0) {
return layout;
}
return null;
}
};
</code>
This class fires the following event:
mxEvent.LAYOUT_CELLS fires between begin- and endUpdate after all cells have
been layouted in layoutCells. The <code>cells</code> property contains all
<THALIGN="left"><B>Nested classes/interfaces inherited from class com.mxgraph.util.<AHREF="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html"title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</A></CODE></TD>
<CODE>protected <AHREF="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html"title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</A></CODE></FONT></TD>
<CODE>protected <AHREF="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html"title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</A></CODE></FONT></TD>
<THALIGN="left"><B>Fields inherited from class com.mxgraph.util.<AHREF="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</A></B></TH>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxLayoutManager.html#mxLayoutManager(com.mxgraph.view.mxGraph)">mxLayoutManager</A></B>(<AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A> graph)</CODE>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxLayoutManager.html#beforeUndo(com.mxgraph.util.mxUndoableEdit)">beforeUndo</A></B>(<AHREF="../../../com/mxgraph/util/mxUndoableEdit.html"title="class in com.mxgraph.util">mxUndoableEdit</A> edit)</CODE>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxLayoutManager.html#cellsMoved(java.lang.Object[], java.awt.Point)">cellsMoved</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>[] cells,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Point.html?is-external=true"title="class or interface in java.awt">Point</A> location)</CODE>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxLayoutManager.html#executeLayout(com.mxgraph.layout.mxIGraphLayout, java.lang.Object)">executeLayout</A></B>(<AHREF="../../../com/mxgraph/layout/mxIGraphLayout.html"title="interface in com.mxgraph.layout">mxIGraphLayout</A> layout,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> parent)</CODE>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html?is-external=true"title="class or interface in java.util">Collection</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxLayoutManager.html#getCellsForChange(com.mxgraph.util.mxUndoableEdit.mxUndoableChange)">getCellsForChange</A></B>(<AHREF="../../../com/mxgraph/util/mxUndoableEdit.mxUndoableChange.html"title="interface in com.mxgraph.util">mxUndoableEdit.mxUndoableChange</A> change)</CODE>
<CODE>protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html?is-external=true"title="class or interface in java.util">Collection</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxLayoutManager.html#getCellsForChanges(java.util.List)">getCellsForChanges</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</A><<AHREF="../../../com/mxgraph/util/mxUndoableEdit.mxUndoableChange.html"title="interface in com.mxgraph.util">mxUndoableEdit.mxUndoableChange</A>> changes)</CODE>
<CODE>protected <AHREF="../../../com/mxgraph/layout/mxIGraphLayout.html"title="interface in com.mxgraph.layout">mxIGraphLayout</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxLayoutManager.html#getLayout(java.lang.Object)">getLayout</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> parent)</CODE>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxLayoutManager.html#layoutCells(java.lang.Object[])">layoutCells</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>[] cells)</CODE>
<TD><CODE><B><AHREF="../../../com/mxgraph/view/mxLayoutManager.html#setGraph(com.mxgraph.view.mxGraph)">setGraph</A></B>(<AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A> value)</CODE>
<THALIGN="left"><B>Methods inherited from class com.mxgraph.util.<AHREF="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</A></B></TH>
<THALIGN="left"><B>Methods inherited from class java.lang.<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</A></CODE></TD>
protected <AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A><B>graph</B></PRE>
<DL>
<DD>Defines the type of the source or target terminal. The type is a string
passed to mxCell.is to check if the rule applies to a cell.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="enabled"><!----></A><H3>
enabled</H3>
<PRE>
protected boolean <B>enabled</B></PRE>
<DL>
<DD>Optional string that specifies the value of the attribute to be passed
to mxCell.is to check if the rule applies to a cell. Default is true.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="bubbling"><!----></A><H3>
bubbling</H3>
<PRE>
protected boolean <B>bubbling</B></PRE>
<DL>
<DD>Optional string that specifies the attributename to be passed to
mxCell.is to check if the rule applies to a cell. Default is true.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="undoHandler"><!----></A><H3>
undoHandler</H3>
<PRE>
protected <AHREF="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html"title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</A><B>undoHandler</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<ANAME="moveHandler"><!----></A><H3>
moveHandler</H3>
<PRE>
protected <AHREF="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html"title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</A><B>moveHandler</B></PRE>
protected <AHREF="../../../com/mxgraph/layout/mxIGraphLayout.html"title="interface in com.mxgraph.layout">mxIGraphLayout</A><B>getLayout</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> parent)</PRE>
protected void <B>cellsMoved</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>[] cells,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/awt/Point.html?is-external=true"title="class or interface in java.awt">Point</A> location)</PRE>
protected void <B>beforeUndo</B>(<AHREF="../../../com/mxgraph/util/mxUndoableEdit.html"title="class in com.mxgraph.util">mxUndoableEdit</A> edit)</PRE>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html?is-external=true"title="class or interface in java.util">Collection</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>><B>getCellsForChanges</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</A><<AHREF="../../../com/mxgraph/util/mxUndoableEdit.mxUndoableChange.html"title="interface in com.mxgraph.util">mxUndoableEdit.mxUndoableChange</A>> changes)</PRE>
protected <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/util/Collection.html?is-external=true"title="class or interface in java.util">Collection</A><<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>><B>getCellsForChange</B>(<AHREF="../../../com/mxgraph/util/mxUndoableEdit.mxUndoableChange.html"title="interface in com.mxgraph.util">mxUndoableEdit.mxUndoableChange</A> change)</PRE>
protected void <B>layoutCells</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A>[] cells)</PRE>
protected void <B>executeLayout</B>(<AHREF="../../../com/mxgraph/layout/mxIGraphLayout.html"title="interface in com.mxgraph.layout">mxIGraphLayout</A> layout,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> parent)</PRE>