gov.noaa.pmel.util
Class Rectangle2D.Float

java.lang.Object
  extended by gov.noaa.pmel.util.Rectangle2D
      extended by gov.noaa.pmel.util.Rectangle2D.Float
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Enclosing class:
Rectangle2D

public static class Rectangle2D.Float
extends Rectangle2D

Inner class that implements Rectangle2D for type float.

Since:
sgt 1.0
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class gov.noaa.pmel.util.Rectangle2D
Rectangle2D.Double, Rectangle2D.Float
 
Field Summary
 float height
          height of rectangle
 float width
          width of rectangle
 float x
          x coordinate of rectangle
 float y
          y coordinate of rectangle
 
Constructor Summary
Rectangle2D.Float()
          Default constructor
Rectangle2D.Float(float width, float height)
           
Rectangle2D.Float(float x, float y, float width, float height)
           
Rectangle2D.Float(Rectangle2D.Float r)
           
 
Method Summary
 Rectangle2D copy()
          Make a copy of the Rectangle2D.
 boolean equals(java.lang.Object r)
           
 boolean equals(Rectangle2D.Float r)
          Test for equality.
 float getHeight()
           
 float getWidth()
           
 float getX()
           
 float getY()
           
 void setHeight(float h)
           
 void setWidth(float w)
           
 void setX(float x)
           
 void setY(float y)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

height

public float height
height of rectangle


width

public float width
width of rectangle


x

public float x
x coordinate of rectangle


y

public float y
y coordinate of rectangle

Constructor Detail

Rectangle2D.Float

public Rectangle2D.Float()
Default constructor


Rectangle2D.Float

public Rectangle2D.Float(float x,
                         float y,
                         float width,
                         float height)

Rectangle2D.Float

public Rectangle2D.Float(float width,
                         float height)

Rectangle2D.Float

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

equals

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


equals

public boolean equals(java.lang.Object r)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

setWidth

public void setWidth(float w)
Since:
3.0

getWidth

public float getWidth()
Since:
3.0

setHeight

public void setHeight(float h)
Since:
3.0

getHeight

public float getHeight()
Since:
3.0

setX

public void setX(float x)
Since:
3.0

getX

public float getX()
Since:
3.0

setY

public void setY(float y)
Since:
3.0

getY

public float getY()
Since:
3.0

copy

public Rectangle2D copy()
Make a copy of the Rectangle2D.

Specified by:
copy in class Rectangle2D