Examples of MouseButton


Examples of com.ardor3d.input.MouseButton

        return height - e.getY();
    }

    private void setStateForButton(final MouseEvent e, final EnumMap<MouseButton, ButtonState> buttons,
            final ButtonState buttonState) {
        final MouseButton button = getButtonForEvent(e);
        buttons.put(button, buttonState);
    }
View Full Code Here

Examples of com.ardor3d.input.MouseButton

        final MouseButton button = getButtonForEvent(e);
        buttons.put(button, buttonState);
    }

    private MouseButton getButtonForEvent(final MouseEvent e) {
        MouseButton button;
        switch (e.getButton()) {
            case MouseEvent.BUTTON1:
                button = MouseButton.LEFT;
                break;
            case MouseEvent.BUTTON2:
View Full Code Here

Examples of com.trolltech.qt.core.Qt.MouseButton

   * Emits the mouse left and right clicked signals.
   * @param event Used for determining, which button was clicked.
   */
  @Override
  public void mousePressEvent(QGraphicsSceneMouseEvent event) {
    MouseButton button = event.button();
   
    switch(button) {
      case LeftButton:
        mLeftButtonPressed.emit(mCoord);
      break;
View Full Code Here

Examples of org.fest.swing.core.MouseButton

* @author Alex Ruiz
*/
public class JTreeDriver_clickPath_withMouseButton_Test extends JTreeDriver_clickCell_TestCase {
  @Test(expected = NullPointerException.class)
  public void should_throw_error_if_MouseButton_is_null() {
    MouseButton button = null;
    driver.clickPath(tree, "root", button);
  }
View Full Code Here

Examples of org.fest.swing.core.MouseButton

* @author Alex Ruiz
*/
public class JTreeDriver_clickRow_withMouseButton_Test extends JTreeDriver_clickCell_TestCase {
  @Test(expected = NullPointerException.class)
  public void should_throw_error_if_MouseButton_is_null() {
    MouseButton button = null;
    driver.clickRow(tree, 1, button);
  }
View Full Code Here

Examples of org.jemmy.interfaces.Mouse.MouseButton

     * TODO Provide javadoc
     * @param button
     * @return
     */
    public MouseButton convertMouseButton(int button) {
        MouseButton res = int2button.get(button);
        if (res == null) {
            throw new JemmyException("Unable to recognize mouse button", button);
        }
        return res;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.