com.jrefinery.ui
Class Size2D

java.lang.Object
  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

width

public double width
The width;


height

public double height
The height;

Constructor Detail

Size2D

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

Parameters:
width - The width;
height - The height;
Method Detail

getHeight

public double getHeight()
Returns the height;


getWidth

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.