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.


Constructor Index

 o Square(Pixel, Pixel, Pixel, Pixel)
Four parameter constructor insures that new object is a square.

Constructors

 o 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