|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.microedition.lcdui.Displayable
javax.microedition.lcdui.Canvas
projectpossibility.Graph
public class Graph
The Graph class displays microphone input on screen. Also it controls some of the data processing.
| Field Summary |
|---|
| Fields inherited from class javax.microedition.lcdui.Canvas |
|---|
DOWN, FIRE, GAME_A, GAME_B, GAME_C, GAME_D, KEY_NUM0, KEY_NUM1, KEY_NUM2, KEY_NUM3, KEY_NUM4, KEY_NUM5, KEY_NUM6, KEY_NUM7, KEY_NUM8, KEY_NUM9, KEY_POUND, KEY_STAR, LEFT, RIGHT, UP |
| Constructor Summary | |
|---|---|
Graph()
Constructor sets width and height based on the display |
|
| Method Summary | |
|---|---|
double |
getLoudestFrequency()
|
DFTpair[] |
sortByAmp()
Sorts an array of Freq Amp pairs by their amplitudes. |
void |
update()
Refreshes the canvas |
void |
updateFrequencies()
Compute frequencies using a discrete fourier transform. |
void |
updateStreamData(byte[] array)
Updates data based on new sample input |
void |
warning()
|
| Methods inherited from class javax.microedition.lcdui.Canvas |
|---|
getGameAction, getKeyCode, getKeyName, hasPointerEvents, hasPointerMotionEvents, hasRepeatEvents, isDoubleBuffered, repaint, repaint, serviceRepaints, setCommandListener, setFullScreenMode |
| Methods inherited from class javax.microedition.lcdui.Displayable |
|---|
addCommand, getHeight, getTicker, getTitle, getWidth, isShown, removeCommand, setTicker, setTitle |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Graph()
| Method Detail |
|---|
public void updateStreamData(byte[] array)
public void update()
public void updateFrequencies()
public double getLoudestFrequency()
public DFTpair[] sortByAmp()
public void warning()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||