Breakout Problem Set Javadocs

breakout
Class RoundBrick

java.lang.Object
  extended bybreakout.BasicBrick
      extended bybreakout.RoundBrick
All Implemented Interfaces:
BreakoutComponent, Brick

public class RoundBrick
extends BasicBrick

Subclasses BasicBrick to provide functionality for an oval-shaped brick.


Field Summary
 
Fields inherited from class breakout.BasicBrick
location, size
 
Constructor Summary
RoundBrick(int width, int height)
           
 
Method Summary
 java.awt.Shape getShape()
          Gets the java.awt.Shape of this BasicBrick.
 void paint(java.awt.Graphics g)
          Paints the BasicBrick.
 
Methods inherited from class breakout.BasicBrick
getLocation, getSize, hit, setLocation, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundBrick

public RoundBrick(int width,
                  int height)
Method Detail

getShape

public java.awt.Shape getShape()
Description copied from class: BasicBrick
Gets the java.awt.Shape of this BasicBrick.

Specified by:
getShape in interface BreakoutComponent
Overrides:
getShape in class BasicBrick
Returns:
a new Shape label at the same location and of the same size/shape as this BasicBrick.

paint

public void paint(java.awt.Graphics g)
Description copied from class: BasicBrick
Paints the BasicBrick.

Specified by:
paint in interface BreakoutComponent
Overrides:
paint in class BasicBrick
Parameters:
g - Graphics object for this ball's coordinate frame(ie, already located where we are).

Breakout Problem Set Javadocs