FileDocCategorySizeDatePackage
Dimension2D.javaAPI DocAndroid 1.5 API2270Wed May 06 22:41:54 BST 2009java.awt.geom

Dimension2D

public abstract class Dimension2D extends Object implements Cloneable
The Class Dimension2D represents a size (width and height) of a geometric object. It stores double-valued data in order to be compatible with high-precision geometric operations.
since
Android 1.0

Fields Summary
Constructors Summary
protected Dimension2D()
Instantiates a new dimension 2d with no data.

    
Methods Summary
public java.lang.Objectclone()

        try {
            return super.clone();
        } catch (CloneNotSupportedException e) {
            throw new InternalError();
        }
    
public abstract doublegetHeight()
Gets the height.

return
the height.

public abstract doublegetWidth()
Gets the width.

return
the width.

public abstract voidsetSize(double width, double height)
Sets the width and height.

param
width the width.
param
height the height.

public voidsetSize(java.awt.geom.Dimension2D d)
Sets the width and height based on the data of another Dimension2D object.

param
d the Dimension2D object providing the data to copy into this Dimension2D object.

        setSize(d.getWidth(), d.getHeight());