gov.noaa.pmel.util
Class Rectangle2D.Double

java.lang.Object
  |
  +--gov.noaa.pmel.util.Rectangle2D
        |
        +--gov.noaa.pmel.util.Rectangle2D.Double
Enclosing class:
Rectangle2D

public static class Rectangle2D.Double
extends Rectangle2D

Inner class that implements Rectangle2D for type double.

Since:
sgt 1.0

Inner classes inherited from class gov.noaa.pmel.util.Rectangle2D
Rectangle2D.Double
 
Field Summary
 double height
          height of rectangle
 double width
          width of rectangle
 double x
          x coordinate of rectangle
 double y
          y coordinate of rectangle
 
Constructor Summary
Rectangle2D.Double()
          Default constructor
Rectangle2D.Double(double width, double height)
           
Rectangle2D.Double(double x, double y, double width, double height)
           
Rectangle2D.Double(Rectangle2D.Double r)
           
 
Method Summary
 boolean equals(Rectangle2D.Double r)
          Test for equality.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

height

public double height
height of rectangle

width

public double width
width of rectangle

x

public double x
x coordinate of rectangle

y

public double y
y coordinate of rectangle
Constructor Detail

Rectangle2D.Double

public Rectangle2D.Double()
Default constructor

Rectangle2D.Double

public Rectangle2D.Double(double x,
                          double y,
                          double width,
                          double height)

Rectangle2D.Double

public Rectangle2D.Double(double width,
                          double height)

Rectangle2D.Double

public Rectangle2D.Double(Rectangle2D.Double r)
Method Detail

equals

public boolean equals(Rectangle2D.Double r)
Test for equality. Height, width, x, and y must be equal for equality.

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 
Overrides:
toString in class java.lang.Object
Following copied from class: java.lang.Object
Returns:
a string representation of the object.


Send comments about the Scientific Graphics toolkit to dwd@pmel.noaa.gov. For more information about Java Development in the EPIC Group see the EPIC Software Page
Generated on December 13 2001