All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.player.adjustable.AdjustableDrawingCanvas

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----pinball.player.DrawingCanvas
                           |
                           +----pinball.player.adjustable.AdjustableDrawingCanvas

public class AdjustableDrawingCanvas
extends DrawingCanvas
Draws the image and image information to the screen.


Variable Index

 o adjustableBuffinfo
The special bufferinfo.
 o adjustments
Used to make the adjustments for the polygons for the flippers.
 o leftAdjust
When the ball is in this polygon, the left flipper flips.
 o rightAdjust
When the ball is in this polygon, the right flipper flips.

Constructor Index

 o AdjustableDrawingCanvas(int, int)
Initalize the canvas.

Method Index

 o setAdjustments(AdjustableFlippers)
Setup the adjustable flippers.
 o updateFrame(BufferInfo)
Update the image's data.

Variables

 o leftAdjust
 protected Polygon leftAdjust
When the ball is in this polygon, the left flipper flips.

 o rightAdjust
 protected Polygon rightAdjust
When the ball is in this polygon, the right flipper flips.

 o adjustments
 protected AdjustableFlippers adjustments
Used to make the adjustments for the polygons for the flippers.

 o adjustableBuffinfo
 protected AdjustableBufferInfo adjustableBuffinfo
The special bufferinfo.

Constructors

 o AdjustableDrawingCanvas
 public AdjustableDrawingCanvas(int w,
                                int h)
Initalize the canvas.

Parameters:
w - width of the image.
h - height of the image.

Methods

 o setAdjustments
 public void setAdjustments(AdjustableFlippers adjustments)
Setup the adjustable flippers.

Parameters:
adjustments - the flippers to setup.
 o updateFrame
 public void updateFrame(BufferInfo buffinfo)
Update the image's data. Draw to the off screen image.

Overrides:
updateFrame in class DrawingCanvas

All Packages  Class Hierarchy  This Package  Previous  Next  Index