net.infonode.gui.layout
Class LayoutUtil

java.lang.Object
  extended by net.infonode.gui.layout.LayoutUtil

public class LayoutUtil
extends java.lang.Object


Constructor Summary
private LayoutUtil()
           
 
Method Summary
static java.awt.Dimension add(java.awt.Dimension dim, java.awt.Insets insets)
           
static java.lang.String getBorderLayoutOrientation(Direction direction)
           
static java.awt.Component getChildContaining(java.awt.Component parent, java.awt.Component component)
           
static java.awt.Rectangle getInteriorArea(java.awt.Container container)
           
static java.awt.Dimension getInteriorSize(java.awt.Container container)
           
static java.awt.Dimension getMaxMinimumSize(java.awt.Component[] components)
           
static java.awt.Dimension getMaxPreferredSize(java.awt.Component[] components)
           
static java.awt.Dimension getMinMaximumSize(java.awt.Component[] components)
           
static java.awt.Dimension getValidSize(java.awt.Dimension dim, java.awt.Component component)
           
static java.awt.Component[] getVisibleChildren(java.awt.Component[] components)
           
static java.awt.Component[] getVisibleChildren(java.awt.Container parent)
           
static boolean isDescendingFrom(java.awt.Component component, java.awt.Component parent)
           
static java.awt.Dimension rotate(java.awt.Dimension dim, boolean horizontal)
           
static java.awt.Dimension rotate(java.awt.Dimension dim, Direction dir)
           
static java.awt.Insets rotate(Direction dir, java.awt.Insets insets)
           
static java.awt.Insets unrotate(Direction dir, java.awt.Insets insets)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayoutUtil

private LayoutUtil()
Method Detail

getVisibleChildren

public static java.awt.Component[] getVisibleChildren(java.awt.Container parent)

getVisibleChildren

public static java.awt.Component[] getVisibleChildren(java.awt.Component[] components)

getInteriorArea

public static java.awt.Rectangle getInteriorArea(java.awt.Container container)

getInteriorSize

public static java.awt.Dimension getInteriorSize(java.awt.Container container)

rotate

public static java.awt.Dimension rotate(java.awt.Dimension dim,
                                        Direction dir)

rotate

public static java.awt.Dimension rotate(java.awt.Dimension dim,
                                        boolean horizontal)

isDescendingFrom

public static boolean isDescendingFrom(java.awt.Component component,
                                       java.awt.Component parent)

getMaxMinimumSize

public static java.awt.Dimension getMaxMinimumSize(java.awt.Component[] components)

getMaxPreferredSize

public static java.awt.Dimension getMaxPreferredSize(java.awt.Component[] components)

getMinMaximumSize

public static java.awt.Dimension getMinMaximumSize(java.awt.Component[] components)

rotate

public static java.awt.Insets rotate(Direction dir,
                                     java.awt.Insets insets)

unrotate

public static java.awt.Insets unrotate(Direction dir,
                                       java.awt.Insets insets)

add

public static java.awt.Dimension add(java.awt.Dimension dim,
                                     java.awt.Insets insets)

getValidSize

public static java.awt.Dimension getValidSize(java.awt.Dimension dim,
                                              java.awt.Component component)

getChildContaining

public static java.awt.Component getChildContaining(java.awt.Component parent,
                                                    java.awt.Component component)

getBorderLayoutOrientation

public static java.lang.String getBorderLayoutOrientation(Direction direction)