Example usage for javafx.scene.input KeyCode PAGE_DOWN

List of usage examples for javafx.scene.input KeyCode PAGE_DOWN

Introduction

In this page you can find the example usage for javafx.scene.input KeyCode PAGE_DOWN.

Prototype

KeyCode PAGE_DOWN

To view the source code for javafx.scene.input KeyCode PAGE_DOWN.

Click Source Link

Document

Constant for the Page Down key.

Usage

From source file:view.FXApplicationController.java

public void keyAction(KeyEvent ke) {
    if (ke.getCode() == KeyCode.RIGHT) {
        goToEpoch(currentEpoch + 1);//  w  w w  . j  a  v  a2  s  .com
    }

    if (ke.getCode() == KeyCode.LEFT) {
        goToEpoch(currentEpoch - 1);
    }

    if (ke.getCode() == KeyCode.H) {
        hypnogramAction();
    }

    if (ke.getCode() == KeyCode.E) {
        showEvaluationWindowAction();
    }

    if (ke.getCode() == KeyCode.L) {
        help1OnAction();
    }

    if (ke.getCode() == KeyCode.K) {
        kComplexOnAction();

    }

    if (ke.getCode() == KeyCode.UP) {
        refreshZoom(+1);
    }

    if (ke.getCode() == KeyCode.DOWN) {
        refreshZoom(-1);
    }

    if (ke.getCode() == KeyCode.W) {
        awakeButtonOnAction();
        if (featureModel.getLabel(currentEpoch) == -1) {
            goToEpoch(currentEpoch + 1);
        }
    }

    if (ke.getCode() == KeyCode.R) {
        remButtonOnAction();
        if (featureModel.getLabel(currentEpoch) == -1) {
            goToEpoch(currentEpoch + 1);
        }
    }

    if (ke.getCode() == KeyCode.DIGIT1) {
        s1ButtonOnAction();
        if (featureModel.getLabel(currentEpoch) == -1) {
            goToEpoch(currentEpoch + 1);
        }
    }

    if (ke.getCode() == KeyCode.DIGIT2) {
        s2ButtonOnAction();
        if (featureModel.getLabel(currentEpoch) == -1) {
            goToEpoch(currentEpoch + 1);
        }
    }

    if (ke.getCode() == KeyCode.DIGIT3) {
        s3ButtonOnAction();
        if (featureModel.getLabel(currentEpoch) == -1) {
            goToEpoch(currentEpoch + 1);
        }
    }

    if (ke.getCode() == KeyCode.A) {
        artefactButtonOnAction();
    }

    if (ke.getCode() == KeyCode.M) {
        arousalButtonOnAction();
    }

    if (ke.getCode() == KeyCode.D) {
        stimulationButtonOnAction();
    }

    if (ke.getCode() == KeyCode.C) {
        clearButtonOnAction();
    }

    if (ke.getCode() == KeyCode.PAGE_DOWN) {
        goToEpoch(currentEpoch - 10);
    }

    if (ke.getCode() == KeyCode.PAGE_UP) {
        goToEpoch(currentEpoch + 10);
    }

    if (ke.getCode() == KeyCode.END) {
        goToEpoch(dataModel.getNumberOf30sEpochs() - 1);
    }

    if (ke.getCode() == KeyCode.HOME) {
        goToEpoch(0);
    }

    if (ke.getCode() == KeyCode.F6) {
        visualizeButtonAction();
    }
    if (ke.getCode() == KeyCode.F7) {
        filterButtonAction();
    }
    if (ke.getCode() == KeyCode.F8) {
        dcRemoveButtonAction();
    }
    if (ke.getCode() == KeyCode.F9) {
        kcMarkersButtonAction();
    }
    if (ke.getCode() == KeyCode.F12) {
        electrodeConfiguratorButtonAction();
    }
}