Class Size2D

  extended by com.jrefinery.ui.Size2D

public class Size2D
extends java.lang.Object

A simple class for representing the dimensions of an object. I would use Dimension2D, but refer to Bug ID 4189446 on the Java Developer Connection for why not (last checked 20 July 2000, maybe it's been fixed now).

Field Summary
 double height
          The height;
 double width
          The width;
Constructor Summary
Size2D(double width, double height)
          Standard constructor - builds a Size2D with the specified width and height.
Method Summary
 double getHeight()
          Returns the height;
 double getWidth()
          Returns the width;
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail


public double width
The width;


public double height
The height;

Constructor Detail


public Size2D(double width,
              double height)
Standard constructor - builds a Size2D with the specified width and height.

width - The width;
height - The height;
Method Detail


public double getHeight()
Returns the height;


public double getWidth()
Returns the width;

Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.