public interface SpectrogramMarkObserver
Modifier and Type | Field and Description |
---|---|
static int |
MOUSE_DOWN |
static int |
MOUSE_DRAG |
static int |
MOUSE_UP |
Modifier and Type | Method and Description |
---|---|
boolean |
canMark() |
java.lang.String |
getMarkObserverName() |
boolean |
spectrogramNotification(SpectrogramDisplay display,
java.awt.event.MouseEvent mouseEvent,
int downUp,
int channel,
long startMilliseconds,
long duration,
double f1,
double f2)
Receive notifications from the spectrogram display when the mouse is pressed and dragged on the display.
|
static final int MOUSE_DOWN
static final int MOUSE_UP
static final int MOUSE_DRAG
boolean spectrogramNotification(SpectrogramDisplay display, java.awt.event.MouseEvent mouseEvent, int downUp, int channel, long startMilliseconds, long duration, double f1, double f2)
Modified, 3 Jan 2014 to be sent for all buttons. Button number is coded into high word of downUp. Normal Java button numbers are 1,2,3. The actual code used is downUp = oldDownUp + (button-1)<<16 so existing button1 commands will not be affected in any way but it's now possible to program up more advanced responses based on other buttons.
display
- spectrogram displaymouseEvent
- Full mouse event - allows more flexibility in user functionsdownUp
- 0 = mouse down, 1 = mouse up, 2 = drag + button number in upper 16 bits.channel
- channel numberstartMilliseconds
- start time in milliseconds.duration
- duration in milliseconds.f1
- min frequency in Hzf2
- max frequency in Hzjava.lang.String getMarkObserverName()
boolean canMark()