org.tigris.swidgets
Class DimensionUtility

java.lang.Object
  extended byorg.tigris.swidgets.DimensionUtility

public class DimensionUtility
extends java.lang.Object

A collection of utility methods for Dimensions.


Constructor Summary
DimensionUtility()
           
 
Method Summary
static java.awt.Dimension add(java.awt.Dimension original, java.awt.Dimension add)
          Create a new Dimension from an existing Dimension with its width and height increased by the width and height of another Dimension.
static java.awt.Dimension add(java.awt.Dimension original, java.awt.Insets add)
          Create a new Dimension from an existing Dimension with its width and height increased by the width and height of an Insets object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DimensionUtility

public DimensionUtility()
Method Detail

add

public static java.awt.Dimension add(java.awt.Dimension original,
                                     java.awt.Dimension add)
Create a new Dimension from an existing Dimension with its width and height increased by the width and height of another Dimension.

Parameters:
original - The Dimension to be added to.
add - The Dimension whose length and breadth are to be taken as the added values.
Returns:
The resulting Dimension.

add

public static java.awt.Dimension add(java.awt.Dimension original,
                                     java.awt.Insets add)
Create a new Dimension from an existing Dimension with its width and height increased by the width and height of an Insets object.

Parameters:
original - The Dimension to be added to.
add - The Insets object whose width and height are to be taken as the added values.
Returns:
The resulting Dimension.