org.virbo.autoplot.layout
Class LayoutUtil

java.lang.Object
  extended by org.virbo.autoplot.layout.LayoutUtil

public class LayoutUtil
extends java.lang.Object


Constructor Summary
LayoutUtil()
           
 
Method Summary
static void autolayout(edu.uiowa.physics.pw.das.graph.DasCanvas canvas, edu.uiowa.physics.pw.das.graph.DasRow r, edu.uiowa.physics.pw.das.graph.DasColumn c)
          resets the layout on the canvas so that labels are not clipped (somewhat).
static java.awt.Rectangle getChildBounds(edu.uiowa.physics.pw.das.graph.DasColumn col)
          look for attached columns, get the bounds of all attachments.
static java.awt.Rectangle getChildBounds(edu.uiowa.physics.pw.das.graph.DasRow row)
          look for attached columns, get the bounds of all attachments.
static java.util.List<edu.uiowa.physics.pw.das.graph.DasDevicePosition> getChildColumns(edu.uiowa.physics.pw.das.graph.DasDevicePosition col, boolean doCol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutUtil

public LayoutUtil()
Method Detail

autolayout

public static void autolayout(edu.uiowa.physics.pw.das.graph.DasCanvas canvas,
                              edu.uiowa.physics.pw.das.graph.DasRow r,
                              edu.uiowa.physics.pw.das.graph.DasColumn c)
resets the layout on the canvas so that labels are not clipped (somewhat).

Parameters:
canvas -
c -
r -

getChildColumns

public static java.util.List<edu.uiowa.physics.pw.das.graph.DasDevicePosition> getChildColumns(edu.uiowa.physics.pw.das.graph.DasDevicePosition col,
                                                                                               boolean doCol)
Parameters:
col -
Returns:

getChildBounds

public static java.awt.Rectangle getChildBounds(edu.uiowa.physics.pw.das.graph.DasColumn col)
look for attached columns, get the bounds of all attachments.

Parameters:
col -
Returns:
the bounds of all children, or null.

getChildBounds

public static java.awt.Rectangle getChildBounds(edu.uiowa.physics.pw.das.graph.DasRow row)
look for attached columns, get the bounds of all attachments.

Parameters:
row -
Returns:
the bounds of all children, or null.