fang
Class Size2D
java.lang.Object
java.awt.geom.Dimension2D
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
Size2D
public Size2D()
Size2D
public Size2D(double size)
Size2D
public Size2D(double width,
double height)
Size2D
public Size2D(Size2D other)
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