Lines Matching refs:buttons

208      * Presses one or more mouse buttons.  The mouse buttons should
211 * @param buttons the Button mask; a combination of one or more
214 * It is allowed to use only a combination of valid values as a {@code buttons} parameter.
223 * <li> If support for extended mouse buttons is
228 * <li> If support for extended mouse buttons is
231 * and masks for existing extended mouse buttons, if the mouse has more then three buttons.
232 * In that way, it is allowed to use the button masks corresponding to the buttons
249 * @throws IllegalArgumentException if the {@code buttons} mask contains the mask for extra mouse button
250 * and support for extended mouse buttons is {@link Toolkit#areExtraMouseButtonsEnabled() disabled} by Java
251 * @throws IllegalArgumentException if the {@code buttons} mask contains the mask for extra mouse button
252 * that does not exist on the mouse and support for extended mouse buttons is {@link Toolkit#areExtraMouseButtonsEnabled() enabled} by Java
259 public synchronized void mousePress(int buttons) {
260 checkButtonsArgument(buttons);
261 peer.mousePress(buttons);
266 * Releases one or more mouse buttons.
268 * @param buttons the Button mask; a combination of one or more
271 * It is allowed to use only a combination of valid values as a {@code buttons} parameter.
280 * <li> If the support for extended mouse buttons is
285 * <li> If the support for extended mouse buttons is
288 * and masks for existing extended mouse buttons, if the mouse has more then three buttons.
289 * In that way, it is allowed to use the button masks corresponding to the buttons
306 * @throws IllegalArgumentException if the {@code buttons} mask contains the mask for extra mouse button
307 * and support for extended mouse buttons is {@link Toolkit#areExtraMouseButtonsEnabled() disabled} by Java
308 * @throws IllegalArgumentException if the {@code buttons} mask contains the mask for extra mouse button
309 * that does not exist on the mouse and support for extended mouse buttons is {@link Toolkit#areExtraMouseButtonsEnabled() enabled} by Java
316 public synchronized void mouseRelease(int buttons) {
317 checkButtonsArgument(buttons);
318 peer.mouseRelease(buttons);
322 private void checkButtonsArgument(int buttons) {
323 if ( (buttons|LEGAL_BUTTON_MASK) != LEGAL_BUTTON_MASK ) {