|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.event.MouseAdapter
jview.JExtremaSelect.MouseSlider
private class JExtremaSelect.MouseSlider
The mouse listener on the power canvas that grabs the position and calculates the period, which is then passed to the expression canvas, that displays the phase plot.
| Field Summary | |
|---|---|
private boolean |
slidemax
Slide to maximum. |
private int |
smooth
The number of parabels to fit around the maximum. |
private int |
xindex
xindex in vector. |
private int |
yindex
yindex in vector. |
| Constructor Summary | |
|---|---|
private |
JExtremaSelect.MouseSlider(int xi,
int yi,
boolean up,
int nr)
|
| Method Summary | |
|---|---|
void |
mouseClicked(MouseEvent me)
If the mouse is clicked in the powerplot, we convert the mouse x pixel into a frequency, find the maximum or minimum close to it, then smooth parabolas to get to the true maximum. |
| Methods inherited from class java.awt.event.MouseAdapter |
|---|
mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int xindex
private int yindex
private boolean slidemax
private int smooth
| Constructor Detail |
|---|
private JExtremaSelect.MouseSlider(int xi,
int yi,
boolean up,
int nr)
| Method Detail |
|---|
public void mouseClicked(MouseEvent me)
mouseClicked in interface MouseListenermouseClicked in class MouseAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||