interrupt draw()-method
in
Core Library Questions
•
2 years ago
Hello,
how can I interrupt/terminate the draw()-method, e.g. when a double click is experienced and I want to query a model, thus just before the double click event occurs the draw()-method should be terminated (and in my model I specify noLoop() at the beginning and loop() at the end, thus I hope it doesn't tries to draw() while the model method is going to be executed, even so at the same time I specified:
regards,
Johannes
how can I interrupt/terminate the draw()-method, e.g. when a double click is experienced and I want to query a model, thus just before the double click event occurs the draw()-method should be terminated (and in my model I specify noLoop() at the beginning and loop() at the end, thus I hope it doesn't tries to draw() while the model method is going to be executed, even so at the same time I specified:
- /**
* Implements processing mouseEntered.
*
* @see processing.core.PApplet#mouseEntered
*
* @param paramEvent
* The {@link MouseEvent}.
*/
void mouseEntered(final MouseEvent paramEvent) {
mParent.loop();
}
/**
* Implements processing mouseExited.
*
* @see processing.core.PApplet#mouseExited
*
* @param paramEvent
* The {@link MouseEvent}.
*/
void mouseExited(final MouseEvent paramEvent) {
mParent.noLoop();
}
regards,
Johannes
1