|
Breakout Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object breakout.BasicBrick breakout.RoundBrick
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 |
public RoundBrick(int width, int height)
Method Detail |
public java.awt.Shape getShape()
BasicBrick
getShape
in interface BreakoutComponent
getShape
in class BasicBrick
public void paint(java.awt.Graphics g)
BasicBrick
paint
in interface BreakoutComponent
paint
in class BasicBrick
g
- Graphics object for this ball's coordinate frame(ie, already located where we are).
|
Breakout Problem Set Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |