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.


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
 

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 (c) 1996-2002
ArgoUML Project Home
ArgoUML Cookbook