All Packages Class Hierarchy This Package Previous Next Index
Class sg.Square
java.lang.Object
|
+----sg.Quadrilateral
|
+----sg.Trapezoid
|
+----sg.Parallelogram
|
+----sg.Rectangle
|
+----sg.Square
- public class Square
- extends Rectangle
Creates a square object.
-
Square(Pixel, Pixel, Pixel, Pixel)
- Four parameter constructor insures that new object is a square.
Square
public Square(Pixel pt1,
Pixel pt2,
Pixel pt3,
Pixel pt4)
- Four parameter constructor insures that new object is a square.
If not, throws IllegalArgumentException.
All Packages Class Hierarchy This Package Previous Next Index