Java Code Examples for javafx.scene.Scene#removeEventFilter()

The following examples show how to use javafx.scene.Scene#removeEventFilter() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DragDropGesture.java    From gef with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void doUnhookScene(Scene scene) {
	scene.removeEventFilter(DragEvent.DRAG_ENTERED, dragEnteredFilter);
	scene.removeEventFilter(DragEvent.DRAG_EXITED, dragExitedFilter);
	scene.removeEventFilter(DragEvent.DRAG_OVER, dragOverFilter);
	scene.removeEventFilter(DragEvent.DRAG_DROPPED, dragDroppedFilter);
}
 
Example 2
Source File: ClickDragGesture.java    From gef with Eclipse Public License 2.0 5 votes vote down vote up
@Override
protected void doUnhookScene(Scene scene) {
	scene.removeEventFilter(MouseEvent.ANY, mouseFilter);
	scene.removeEventFilter(MouseEvent.MOUSE_MOVED,
			indicationCursorMouseMoveFilter);
	scene.removeEventFilter(KeyEvent.ANY, indicationCursorKeyFilter);
}
 
Example 3
Source File: TypeStrokeGesture.java    From gef with Eclipse Public License 2.0 5 votes vote down vote up
private void unhook(Scene scene) {
	if (pressedFilterMap.containsKey(scene)) {
		scene.removeEventFilter(KeyEvent.KEY_PRESSED,
				pressedFilterMap.remove(scene));
	}
	if (releasedFilterMap.containsKey(scene)) {
		scene.removeEventFilter(KeyEvent.KEY_RELEASED,
				releasedFilterMap.remove(scene));
	}
	if (typedFilterMap.containsKey(scene)) {
		scene.removeEventFilter(KeyEvent.KEY_TYPED,
				typedFilterMap.remove(scene));
	}
}
 
Example 4
Source File: HoverGesture.java    From gef with Eclipse Public License 2.0 4 votes vote down vote up
@Override
protected void doUnhookScene(Scene scene) {
	scene.removeEventFilter(MouseEvent.ANY, hoverFilters.remove(scene));
}
 
Example 5
Source File: RotateGesture.java    From gef with Eclipse Public License 2.0 4 votes vote down vote up
@Override
protected void doUnhookScene(Scene scene) {
	scene.removeEventFilter(RotateEvent.ANY, rotateFilters.remove(scene));
}
 
Example 6
Source File: PinchSpreadGesture.java    From gef with Eclipse Public License 2.0 4 votes vote down vote up
@Override
protected void doUnhookScene(Scene scene) {
	scene.removeEventFilter(ZoomEvent.ANY, zoomFilters.remove(scene));
}
 
Example 7
Source File: KeyButtonEventHandler.java    From jfxvnc with Apache License 2.0 4 votes vote down vote up
public void unregister(Scene scene) {
  scene.removeEventFilter(KeyEvent.KEY_PRESSED, keyEventHandler);
  scene.removeEventFilter(KeyEvent.KEY_TYPED, keyEventHandler);
  scene.removeEventFilter(KeyEvent.KEY_RELEASED, keyEventHandler);
}