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
-
Square(int, int, int)
- normal constructor ; x, y, is top left; size of zero > 1
-
debug()
-
-
display(Graphics)
- used by the ScrollableTopLevel to paint the object, or can be used to
draw the object to somewhere else.
Square
public Square(int x,
int y,
int side)
- normal constructor ; x, y, is top left; size of zero > 1
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
debug
public void debug()
- Overrides:
- debug in class DrawableObject
All Packages Class Hierarchy This Package Previous Next Index