All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class pinball.part.SoundCardGraph

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----pinball.part.SoundCardGraph

public class SoundCardGraph
extends Canvas
Draw the sound graphs on the screen.


Variable Index

 o sample
The sound sample from the card.

Constructor Index

 o SoundCardGraph(int, int)
Setup the canvas.

Method Index

 o paint(Graphics)
Draw the sound graph.
 o setSample(byte[])
Set the sample.
 o update(Graphics)
Update the display.

Variables

 o sample
 public byte sample[]
The sound sample from the card.

Constructors

 o SoundCardGraph
 public SoundCardGraph(int width,
                       int height)
Setup the canvas.

Parameters:
width - the width of the canvas
height - the height of the canvas.

Methods

 o setSample
 public void setSample(byte sample[])
Set the sample.

Parameters:
sample - Sound sample.
 o update
 public void update(Graphics g)
Update the display.

Parameters:
g - Graphics context.
Overrides:
update in class Component
 o paint
 public void paint(Graphics g)
Draw the sound graph.

Parameters:
g - Graphics context.
Overrides:
paint in class Canvas

All Packages  Class Hierarchy  This Package  Previous  Next  Index