< prev index next >

modules/javafx.graphics/src/main/java/javafx/scene/input/MouseEvent.java

Print this page




 794      * responsible for this event while this method indicates whether the
 795      * primary button is depressed.
 796      *
 797      * @return {@code true} if primary button (button 1, usually the left)
 798      * is currently pressed
 799      */
 800     public final boolean isPrimaryButtonDown() {
 801         return primaryButtonDown;
 802     }
 803 
 804     /**
 805      * {@code true} if secondary button (button 3, usually the right) is currently
 806      * pressed. Note that this is different from the {@link #getButton() button}
 807      * variable in that the {@code button} variable indicates which button press was
 808      * responsible for this event while this variable indicates whether the
 809      * primary button is depressed.
 810      */
 811     private final boolean secondaryButtonDown;
 812 
 813     /**
 814      * Returns {@code true} if secondary button (button 1, usually the right)
 815      * is currently pressed. Note that this is different from the
 816      * {@code getButton()} method that indicates which button press was
 817      * responsible for this event while this method indicates whether the
 818      * secondary button is depressed.
 819      *
 820      * @return {@code true} if secondary button (button 3, usually the right)
 821      * is currently pressed
 822      */
 823     public final boolean isSecondaryButtonDown() {
 824         return secondaryButtonDown;
 825     }
 826 
 827     /**
 828      * {@code true} if middle button (button 2) is currently pressed.
 829      * Note that this is different from the {@link #getButton() button} variable in
 830      * that the {@code button} variable indicates which button press was
 831      * responsible for this event while this variable indicates whether the
 832      * middle button is depressed.
 833      */
 834     private final boolean middleButtonDown;




 794      * responsible for this event while this method indicates whether the
 795      * primary button is depressed.
 796      *
 797      * @return {@code true} if primary button (button 1, usually the left)
 798      * is currently pressed
 799      */
 800     public final boolean isPrimaryButtonDown() {
 801         return primaryButtonDown;
 802     }
 803 
 804     /**
 805      * {@code true} if secondary button (button 3, usually the right) is currently
 806      * pressed. Note that this is different from the {@link #getButton() button}
 807      * variable in that the {@code button} variable indicates which button press was
 808      * responsible for this event while this variable indicates whether the
 809      * primary button is depressed.
 810      */
 811     private final boolean secondaryButtonDown;
 812 
 813     /**
 814      * Returns {@code true} if secondary button (button 3, usually the right)
 815      * is currently pressed. Note that this is different from the
 816      * {@code getButton()} method that indicates which button press was
 817      * responsible for this event while this method indicates whether the
 818      * secondary button is depressed.
 819      *
 820      * @return {@code true} if secondary button (button 3, usually the right)
 821      * is currently pressed
 822      */
 823     public final boolean isSecondaryButtonDown() {
 824         return secondaryButtonDown;
 825     }
 826 
 827     /**
 828      * {@code true} if middle button (button 2) is currently pressed.
 829      * Note that this is different from the {@link #getButton() button} variable in
 830      * that the {@code button} variable indicates which button press was
 831      * responsible for this event while this variable indicates whether the
 832      * middle button is depressed.
 833      */
 834     private final boolean middleButtonDown;


< prev index next >