Class pmr.simplegraph.Square
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pmr.simplegraph.Square

java.lang.Object
   |
   +----pmr.simplegraph.DrawableObject
           |
           +----pmr.simplegraph.Square

public class Square
extends DrawableObject
example of DrawableObject
Author:
(C) P. Murray-Rust, 1996

Constructor Index

 o Square(int, int, int)
normal constructor ; x, y, is top left; size of zero > 1

Method Index

 o debug()
 o display(Graphics)
used by the ScrollableTopLevel to paint the object, or can be used to draw the object to somewhere else.

Constructors

 o Square
  public Square(int x,
                int y,
                int side)
normal constructor ; x, y, is top left; size of zero > 1

Methods

 o display
  public void display(Graphics g)
used by the ScrollableTopLevel to paint the object, or can be used to draw the object to somewhere else. By using the Scaler2D approach it is possible to draw the object to any desired screen location
Overrides:
display in class DrawableObject
 o debug
  public void debug()
Overrides:
debug in class DrawableObject

All Packages  Class Hierarchy  This Package  Previous  Next  Index