<h2>org.autoplot.layout.LayoutUtil</h2><p>utility methods for adjusting canvas layout.</p>
<h2>LayoutUtil( )</h2>
<p></p>

<hr>
<a name="autolayout"></a>
<h2>autolayout</h2>
autolayout( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/DasCanvas.html'>org.das2.graph.DasCanvas</a> canvas, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/DasRow.html'>org.das2.graph.DasRow</a> marginRow, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/DasColumn.html'>org.das2.graph.DasColumn</a> marginColumn ) &rarr; void

<p>resets the layout on the canvas so that labels are not clipped (somewhat).
 Child row and columns are inspected as well, and it's assumed that adjusting
 this row and column (Autoplot's margin row and column), that everyone will be correctly adjusted.
 
 We calculate bounds on each component dependent on the row and column, then
 the region outside the canvas determines how much the row and column should
 be brought in.</p>

<h3>Parameters</h3>
canvas - a DasCanvas
<br>
marginRow - a DasRow
<br>
marginColumn - a DasColumn

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=autolayout&unscoped_q=autolayout">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/layout/LayoutUtil.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/layout/LayoutUtil.html#autolayout">[view on old javadoc]</a>
<br>
<br>
<hr>
<a name="getChildBounds"></a>
<h2>getChildBounds</h2>
getChildBounds( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/DasColumn.html'>org.das2.graph.DasColumn</a> col ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Rectangle.html'>java.awt.Rectangle</a>

<p>look for attached columns, get the bounds of all attachments.  For 
 example, this includes the bounds of a colorbar attached to the plot.</p>

<h3>Parameters</h3>
col - a DasColumn

<h3>Returns:</h3>
the bounds of all children, or null.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=getChildBounds&unscoped_q=getChildBounds">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/layout/LayoutUtil.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/layout/LayoutUtil.html#getChildBounds">[view on old javadoc]</a>
<br>
<br>
getChildBounds( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/DasRow.html'>org.das2.graph.DasRow</a> row ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/awt/Rectangle.html'>java.awt.Rectangle</a><br>
<hr>
<a name="getChildColumns"></a>
<h2>getChildColumns</h2>
getChildColumns( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/DasDevicePosition.html'>org.das2.graph.DasDevicePosition</a> col ) &rarr; <a href='https://docs.oracle.com/javase/8/docs/api/java/util/List.html'>java.util.List</a>

<p>Return a list of DasColumns where the parent is the given column.</p>

<h3>Parameters</h3>
col - the column

<h3>Returns:</h3>
list of columns.
<br><br>
<a href="https://github.com/autoplot/dev/search?q=getChildColumns&unscoped_q=getChildColumns">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/layout/LayoutUtil.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/layout/LayoutUtil.html#getChildColumns">[view on old javadoc]</a>
<br>
<br>
<hr>
<a name="normalizeRows"></a>
<h2>normalizeRows</h2>
normalizeRows( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/dom/Canvas.html'>org.autoplot.dom.Canvas</a> canvas ) &rarr; void

<p>preserve pixel locations of the rows, with corrections to the marginRow.</p>

<h3>Parameters</h3>
canvas - a Canvas

<h3>Returns:</h3>
void (returns nothing)

<br><br>
<a href="https://github.com/autoplot/dev/search?q=normalizeRows&unscoped_q=normalizeRows">[search for examples]</a>
 <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/layout/LayoutUtil.md">[view on GitHub]</a>
 <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/layout/LayoutUtil.html#normalizeRows">[view on old javadoc]</a>
<br>
<br>
normalizeRows( double em, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/das2/graph/DasRow.html'>org.das2.graph.DasRow</a> marginRow, <a href='https://docs.oracle.com/javase/8/docs/api/java/util/List.html'>java.util.List</a> rows ) &rarr; void<br>