org.argouml.swingext
Class DimensionUtilities

java.lang.Object
  |
  +--org.argouml.swingext.DimensionUtilities

public class DimensionUtilities
extends java.lang.Object

A collection of utility methods for Dimensions.


Constructor Summary
DimensionUtilities()
           
 
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

DimensionUtilities

public DimensionUtilities()
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.

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.

Returns:
The resulting Dimension.


ArgoUML © 1996-2003 (20030919)ArgoUML Project HomeArgoUML Cookbook