p_abstractions
Interface PaddleViewSpecification
- All Known Implementing Classes:
- PaddleView
public interface PaddleViewSpecification
Specification of a simple paddle view for use in a video game:
- View is 640*640 square with a 20 pixel border around it
For teaching MVC design pattern.
- Version:
- 1.0.0
- Author:
- J Paul Gibson
Method Summary |
javax.swing.JFrame |
getFrame()
|
void |
updateView()
update the canvas on which the view is painted |
VIEW_WIDTH
static final int VIEW_WIDTH
- See Also:
- Constant Field Values
VIEW_HEIGHT
static final int VIEW_HEIGHT
- See Also:
- Constant Field Values
BORDER
static final int BORDER
- See Also:
- Constant Field Values
getFrame
javax.swing.JFrame getFrame()
- Returns:
- the frame which contains the canvas in which the view is to be painted and which generates the
events that need to be handled by the controller
updateView
void updateView()
- update the canvas on which the view is painted