Package javafx.scene.input

Examples of javafx.scene.input.KeyCodeCombination


    private final ImageAnalyzerController controller;

    public Back(ImageAnalyzerController controller) {
        super("Back");
        setGraphic(new ImageView(BACK_IMAGE));
        setAccelerator(new KeyCodeCombination(KeyCode.LEFT, KeyCodeCombination.ALT_DOWN));
        this.controller = controller;
        disabledProperty().bind(controller.getCanRetreat().not());
    }
View Full Code Here


                MenuItem categoryItem = new MenuItem(cat.getDisplayName());
                categoryItem.setOnAction((ActionEvent t) -> {
                    final CategorizeAction categorizeAction = new CategorizeAction();
                    categorizeAction.addTag(cat.getTagName(), NO_COMMENT);
                });
                categoryItem.setAccelerator(new KeyCodeCombination(cat.getHotKeycode()));
                getItems().add(categoryItem);
            }
        }
View Full Code Here

    private final ImageAnalyzerController controller;

    public Forward(ImageAnalyzerController controller) {
        super("Forward");
        setGraphic(new ImageView(BACK_IMAGE));
        setAccelerator(new KeyCodeCombination(KeyCode.RIGHT, KeyCodeCombination.ALT_DOWN));
        this.controller = controller;
        disabledProperty().bind(controller.getCanAdvance().not());
    }
View Full Code Here

        tlrv.setController(controller);
        Platform.runLater(() -> {
            jFXVizPanel.getScene().addEventFilter(KeyEvent.KEY_PRESSED, (
                                                  KeyEvent event) -> {
                                                      if (new KeyCodeCombination(KeyCode.LEFT, KeyCodeCombination.ALT_DOWN).match(event)) {
                                                          new Back(controller).handle(new ActionEvent());
                                                      } else if (new KeyCodeCombination(KeyCode.BACK_SPACE).match(event)) {
                                                          new Back(controller).handle(new ActionEvent());
                                                      } else if (new KeyCodeCombination(KeyCode.RIGHT, KeyCodeCombination.ALT_DOWN).match(event)) {
                                                          new Forward(controller).handle(new ActionEvent());
                                                      } else if (new KeyCodeCombination(KeyCode.BACK_SPACE, KeyCodeCombination.SHIFT_DOWN).match(event)) {
                                                          new Forward(controller).handle(new ActionEvent());
                                                      }
                                                  });
            controller.getViewMode().addListener((Observable observable) -> {
                if (controller.getViewMode().get().equals(VisualizationMode.COUNTS)) {
View Full Code Here

    private final TimeLineController controller;

    public Forward(TimeLineController controller) {
        super("Forward");
        setGraphic(new ImageView(BACK_IMAGE));
        setAccelerator(new KeyCodeCombination(KeyCode.RIGHT, KeyCodeCombination.ALT_DOWN));
        this.controller = controller;
        disabledProperty().bind(controller.getCanAdvance().not());
        setEventHandler((ActionEvent t) -> {
            controller.advance();
        });
View Full Code Here

    private final TimeLineController controller;

    public Back(TimeLineController controller) {
        super("Back");
        setGraphic(new ImageView(BACK_IMAGE));
        setAccelerator(new KeyCodeCombination(KeyCode.LEFT, KeyCodeCombination.ALT_DOWN));
        this.controller = controller;
        disabledProperty().bind(controller.getCanRetreat().not());
        setEventHandler((ActionEvent t) -> {
            controller.retreat();
        });
View Full Code Here

TOP

Related Classes of javafx.scene.input.KeyCodeCombination

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.