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.
-
adjustableBuffinfo
- The special bufferinfo.
-
adjustments
- Used to make the adjustments for the polygons for the flippers.
-
leftAdjust
- When the ball is in this polygon, the left flipper flips.
-
rightAdjust
- When the ball is in this polygon, the right flipper flips.
-
AdjustableDrawingCanvas(int, int)
-
Initalize the canvas.
-
setAdjustments(AdjustableFlippers)
-
Setup the adjustable flippers.
-
updateFrame(BufferInfo)
- Update the image's data.
leftAdjust
protected Polygon leftAdjust
- When the ball is in this polygon, the left flipper flips.
rightAdjust
protected Polygon rightAdjust
- When the ball is in this polygon, the right flipper flips.
adjustments
protected AdjustableFlippers adjustments
- Used to make the adjustments for the polygons for the flippers.
adjustableBuffinfo
protected AdjustableBufferInfo adjustableBuffinfo
- The special bufferinfo.
AdjustableDrawingCanvas
public AdjustableDrawingCanvas(int w,
int h)
- Initalize the canvas.
- Parameters:
- w - width of the image.
- h - height of the image.
setAdjustments
public void setAdjustments(AdjustableFlippers adjustments)
- Setup the adjustable flippers.
- Parameters:
- adjustments - the flippers to setup.
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