org.tigris.swidgets

Class DimensionUtilities


public class DimensionUtilities
extends java.lang.Object

A collection of utility methods for Dimensions.
Author:
Eugenio Alvarez

Method Summary

static Dimension
add(Dimension original, 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 Dimension
add(Dimension original, 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.

Method Details

add

public static Dimension add(Dimension original,
                            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 Dimension add(Dimension original,
                            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.