}
@Override
public void commitEvent(Event event) {
logger.fine("Interior mouse commitEvent, event = " + event);
final MouseEvent3D me3d = (MouseEvent3D) event;
// When user has control all events over the interior are sent to the app.
// First send it to the app's view for conversion to a 2D event.
if (view != null) {
if (view.getWindow().getApp().getControlArb().hasControl()) {
SwingUtilities.invokeLater(new Runnable () {
public void run () {
if (view != null) {
view.deliverEvent(view.getWindow(), me3d);
}
}
});
return;
}
}
MouseEvent me = (MouseEvent) me3d.getAwtEvent();
// Handle miscellaneous events over interior when user doesn't have control
Action action = determineIfMiscAction(me, me3d);
if (action != null) {
performMiscAction(action, me, me3d);