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.
-
sample
- The sound sample from the card.
-
SoundCardGraph(int, int)
- Setup the canvas.
-
paint(Graphics)
- Draw the sound graph.
-
setSample(byte[])
- Set the sample.
-
update(Graphics)
- Update the display.
sample
public byte sample[]
- The sound sample from the card.
SoundCardGraph
public SoundCardGraph(int width,
int height)
- Setup the canvas.
- Parameters:
- width - the width of the canvas
- height - the height of the canvas.
setSample
public void setSample(byte sample[])
- Set the sample.
- Parameters:
- sample - Sound sample.
update
public void update(Graphics g)
- Update the display.
- Parameters:
- g - Graphics context.
- Overrides:
- update in class Component
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