lab7Lecture - LAB 7 Pick up lab 5 / Hand in lab 6. Next...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
LAB 7 Pick up lab 5 / Hand in lab 6. Next week is last week of labs. Start lab 7 as soon as possible – Not a trivial lab!
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Classes For this lab we will have 3 classes: Billiards – contains paint method and it is given to you. No modifications need to be made here. BilliardTable - creates and draws a billiard table. public class BilliardTable { private Color tc; private int tx, ty, tw, th; public BilliardTable (Color tc, int tx, int ty, int tw, int th) { this.tc = tc; // complete for the rest of the arguments! } public void draw (Graphics g) public Color getTableColor () public int getTablex () { return tx; } public int getTabley () public int getTablew () public int getTableh () } NOTE: The written in blue is not in your assign description, it is a help for you. The other methods are similar to these ones.
Background image of page 2
BilliardBall class implements a billiard ball that bounces off the walls of the billiard table. public class BilliardBall
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 10/12/2009 for the course CSC CSC 110 taught by Professor Anne during the Fall '04 term at University of Victoria.

Page1 / 5

lab7Lecture - LAB 7 Pick up lab 5 / Hand in lab 6. Next...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online