p_views
Class PaddleView

java.lang.Object
  extended by p_views.PaddleView
All Implemented Interfaces:
PaddleViewSpecification

public class PaddleView
extends java.lang.Object
implements PaddleViewSpecification

Implements PaddleViewSpecification

For teaching MVC design pattern.

Version:
1.0.0
Author:
J Paul Gibson

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

PaddleView

public PaddleView(PaddleSpecification rvPaddle)
Parameters:
rvPaddle - is the Paddle model which is to be associated with the view
Method Detail

getFrame

public javax.swing.JFrame getFrame()
Specified by:
getFrame in interface PaddleViewSpecification
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

public void updateView()
Description copied from interface: PaddleViewSpecification
update the canvas on which the view is painted

Specified by:
updateView in interface PaddleViewSpecification