fang
Class Size2D

java.lang.Object
  extended by java.awt.geom.Dimension2D
      extended by fang.Size2D
All Implemented Interfaces:
Cloneable

public class Size2D
extends Dimension2D

This class represents an width by height area within some space.

Author:
Robert c. Duvall

Constructor Summary
Size2D()
           
Size2D(double size)
           
Size2D(double width, double height)
           
Size2D(Size2D other)
           
 
Method Summary
 boolean equals(Object o)
           
 double getHeight()
           
 double getWidth()
           
 void setSize(double width, double height)
           
 String toString()
           
 
Methods inherited from class java.awt.geom.Dimension2D
clone, setSize
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Size2D

public Size2D()

Size2D

public Size2D(double size)

Size2D

public Size2D(double width,
              double height)

Size2D

public Size2D(Size2D other)
Method Detail

getWidth

public double getWidth()
Specified by:
getWidth in class Dimension2D

getHeight

public double getHeight()
Specified by:
getHeight in class Dimension2D

equals

public boolean equals(Object o)
Overrides:
equals in class Object

setSize

public void setSize(double width,
                    double height)
Specified by:
setSize in class Dimension2D

toString

public String toString()
Overrides:
toString in class Object