p_abstractions
Interface PaddleViewSpecification

All Known Implementing Classes:
PaddleView

public interface PaddleViewSpecification

Specification of a simple paddle view for use in a video game:

For teaching MVC design pattern.

Version:
1.0.0
Author:
J Paul Gibson

Field Summary
static int BORDER
           
static int VIEW_HEIGHT
           
static int VIEW_WIDTH
           
 
Method Summary
 javax.swing.JFrame getFrame()
           
 void updateView()
          update the canvas on which the view is painted
 

Field Detail

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
Method Detail

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