|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectp_views.PaddleView
public class PaddleView
Implements PaddleViewSpecification
For teaching MVC design pattern.
Field Summary |
---|
Fields inherited from interface p_abstractions.PaddleViewSpecification |
---|
BORDER, VIEW_HEIGHT, VIEW_WIDTH |
Constructor Summary | |
---|---|
PaddleView(PaddleSpecification rvPaddle)
|
Method Summary | |
---|---|
javax.swing.JFrame |
getFrame()
|
void |
updateView()
update the canvas on which the view is painted |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PaddleView(PaddleSpecification rvPaddle)
rvPaddle
- is the Paddle
model which is to be associated with the viewMethod Detail |
---|
public javax.swing.JFrame getFrame()
getFrame
in interface PaddleViewSpecification
public void updateView()
PaddleViewSpecification
updateView
in interface PaddleViewSpecification
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |